%global pkgname PottyMouth Name: python-pottymouth Version: 2.2.1 Release: 1%{?dist} Summary: Transform unstructured, untrusted text to safe, valid XHTML Group: Development/Languages License: BSD URL: http://glyphobet.net/pottymouth/dist/ Source0: http://glyphobet.net/pottymouth/dist/%{pkgname}-%{version}.tar.gz BuildArch: noarch Requires: python2 BuildRequires: python2-devel BuildRequires: python-setuptools Provides: %{pkgname} = %{version}-%{release} %description PottyMouth transforms completely unstructured and untrusted text to valid, nice-looking, completely safe XHTML. PottyMouth is designed to handle input text from non-technical, potentially careless or malicious users. It produces HTML that is completely safe, programmatically and visually, to include on any web page. And you don't need to make your users read any instructions before they start typing. They don't even need to know that PottyMouth is being used %prep %setup -q -n %{pkgname}-%{version} %build python setup.py build %check %{__python} setup.py test %install python setup.py install --skip-build --root $RPM_BUILD_ROOT %files %defattr(0644,root,root,-) %doc %{_defaultdocdir}/python-pottymouth/* %{python_sitelib}/PottyMouth-2.2.1-py2.7.egg-info %{python_sitelib}/pottymouth.pyc %{python_sitelib}/pottymouth.pyo %attr(0755,root,root) %{python_sitelib}/pottymouth.py %changelog * Tue Sep 11 2012 Eduardo Echeverria - 2.2.1-1 - initial packaging