%global srcname django-multiselectfield Name: python-%{srcname} Version: 0.1.3 Release: 10%{?dist} Summary: A multi-select form field and model for Django Group: Applications/Internet License: LGPLv3 URL: https://github.com/goinnn/django-multiselectfield Source0: https://pypi.python.org/packages/source/d/%{srcname}/%{srcname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-setuptools BuildRequires: python2-django(abi) = 1.6 Requires: python2-django(abi) = 1.6 # Patches going upstream # Fedora-specific patches %description A new model and form field. With this you can get a multiple select from a choices %package -n python2-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} %{description} %prep %autosetup -n %{srcname}-%{version} # Remove packaged egg-info so it's regenerated by setup.py rm -Rf django_multiselectfield.egg-info.egg-info %build %py2_build %install %py2_install %find_lang django %files -n python2-%{srcname} -f django.lang %defattr(-,root,root,-) %doc CHANGES.rst README.rst %license COPYING.LGPLv3 %{python2_sitelib}/django_multiselectfield*.egg-info/ %{python2_sitelib}/multiselectfield %changelog * Mon Jan 15 2018 Stephen Gallagher - 0.1.3-10 - Prepare for modules * Fri Dec 04 2015 Stephen Gallagher 0.1.3-5 - Fix BuildRequires for python-setuptools * Thu Dec 03 2015 Stephen Gallagher 0.1.3-4 - Change to using newer python macros - Produce python2-django-multiselectfield subpackage * Thu Dec 03 2015 Stephen Gallagher 0.1.3-3 - Changes from second round of package review - Remove buildroot cleanup * Thu Dec 03 2015 Stephen Gallagher 0.1.3-2 - Changes from first round of package review - Use %%{__python2} macro consistently - Properly own translation directories * Mon Nov 30 2015 Stephen Gallagher 0.1.3-1 - Initial release of 0.1.3