%global pkgname django-ckeditor Name: python-django-ckeditor Version: 4.0.2 Release: 2%{?dist} Summary: Django admin CKEditor integration Group: Development/Languages # ckeditor included can be GPLv2+ or LGPLv2+ or MPLv1.1 # jush are licensed under Apache license # jquery are licensed under MIT license # all the remaining source code is licensed under BSD License: BSD and (GPLv2+ or LGPLv2+ or MPLv1.1) and MIT and ASL 2.0 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 * Tue Jul 09 2013 Eduardo Echeverria - 4.0.2-2 - Change the license field with the correct licenses. * Sun Jul 07 2013 Eduardo Echeverria - 4.0.2-1 - Initial packaging