diff --git a/python-django-tastypie.spec b/python-django-tastypie.spec index ef906f1..9d00853 100644 --- a/python-django-tastypie.spec +++ b/python-django-tastypie.spec @@ -1,8 +1,9 @@ %global pypi_name django-tastypie +%global sum A flexible and capable API layer for Django Name: python-%{pypi_name} Version: 0.13.3 -Release: 1%{?dist} -Summary: A flexible and capable API layer for Django +Release: 2%{?dist} +Summary: %{sum} Group: Development/Languages License: BSD @@ -13,7 +14,7 @@ Source0: https://github.com/%{pypi_name}/%{pypi_name}/archive/v%{version} BuildArch: noarch # Let's keep Requires and BuildRequires sorted alphabetically -BuildRequires: python2-devel +BuildRequires: python2-devel python3-devel BuildRequires: python-setuptools BuildRequires: python-sphinx @@ -49,6 +50,24 @@ Requires: %{name} = %{version}-%{release} %description doc This package contains documentation for %{name}. +%package -n python2-%{pypi_name} +Summary: %{sum} +%{?python_provide:%python_provide python2-%{pypi_name}} + +%description -n python2-%{pypi_name} +Tastypie is an webservice API framework for Django. It provides a convenient, +yet powerful and highly customizable, abstraction for creating REST-style +interfaces. + + +%package -n python3-%{pypi_name} +Summary: %{sum} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +Tastypie is an webservice API framework for Django. It provides a convenient, +yet powerful and highly customizable, abstraction for creating REST-style +interfaces. %prep %setup -q -n %{pypi_name}-%{version} @@ -69,21 +88,33 @@ EOF %endif %build -%{__python} setup.py build +%{__python2} setup.py build +%{__python3} setup.py build + %install -%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT -%files +%files -n python2-%{pypi_name} %doc README.rst AUTHORS LICENSE %dir %{python_sitelib}/tastypie -%{python_sitelib}/django_tastypie* -%{python_sitelib}/tastypie/* +%{python2_sitelib}/django_tastypie* +%{python2_sitelib}/tastypie/* + +%files -n python3-%{pypi_name} +%doc README.rst AUTHORS LICENSE +%dir %{python_sitelib}/tastypie +%{python3_sitelib}/django_tastypie* +%{python3_sitelib}/tastypie/* %files doc %doc docs/_build/html %changelog +* Sat Feb 27 2016 Cédric OLIVIER - 0.13.3-2 +- provide python3 subpackage (rhbz#1312325) + * Thu Feb 18 2016 Cédric OLIVIER - 0.13.3-1 - Update to 0.13.3 (rhbz#1308500)