%global pkgname django-ckeditor Name: python-django-ckeditor Version: 4.0.2 Release: 1%{?dist} Summary: Django admin CKEditor integration Group: Development/Languages License: BSD URL: https://pypi.python.org/pypi/django-ckeditor Source0: https://pypi.python.org/packages/source/d/%{pkgname}/%{pkgname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools %if 0%{?fedora} >= 19 Requires: python-pillow %else Requires: python-imaging %endif %if 0%{?fedora} >= 18 Requires: python-django BuildRequires: python-django %else Requires: Django BuildRequires: Django %endif %description Provides a RichTextField and CKEditorWidget utilizing CKEditor with image upload and browsing support included %prep %setup -qn %{pkgname}-%{version} #empty files echo "# Just a comment" > ckeditor/models.py # Remove bundled egg rm -rf django_ckeditor.egg-info %build %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root %{buildroot} # Remove Ds_Store files find %{buildroot} -iname "*.Ds_Store" | xargs rm -f %files %doc LICENSE README.rst AUTHORS.rst CHANGELOG.rst PKG-INFO %{python_sitelib}/ckeditor %{python_sitelib}/django_ckeditor-*.egg-info %changelog * Sun Jul 07 2013 Eduardo Echeverria - 4.0.2-1 - Initial packaging