%global modname tinymce Name: django-tinymce Version: 1.5.1b4 Release: 1%{?dist} Summary: A Django application that contains a widget to render a form field as a TinyMCE editor. Group: Development/Libraries License: MIT URL: http://pypi.python.org/pypi/django-tinymce Source0: http://pypi.python.org/packages/source/d/%{name}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools %description django-tinymce is a Django application that contains a widget to render a form field as a TinyMCE editor. %prep %setup -q -n %{name}-%{version} # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info %build %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root=%{buildroot} %check %{__python} setup.py test # Remove tests once done with them rm -rf %{buildroot}%{python_sitelib}/testtinymce/ %files %doc docs/ LICENSE.txt %{python_sitelib}/%{modname}/ %{python_sitelib}/django_tinymce-%{version}* %changelog * Mon Feb 04 2013 Ralph Bean - 1.5.1b4-1 - Initial packaging for Fedora