diff --git a/python-django-filter.spec b/python-django-filter.spec index 53740e2e63..c4c09d39f7 100644 --- a/python-django-filter.spec +++ b/python-django-filter.spec @@ -4,7 +4,7 @@ Name: python-%{pypi_name} Version: 1.0.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A Django application for allowing users to filter queryset dynamically Group: Development/Languages @@ -18,8 +18,6 @@ BuildRequires: python-django BuildRequires: python-mock BuildRequires: python-setuptools BuildRequires: python-django-rest-framework -Requires: python-django -Requires: python-django-rest-framework %if 0%{?with_python3} BuildRequires: python3-devel @@ -29,24 +27,35 @@ BuildRequires: python3-setuptools BuildRequires: python3-django-rest-framework %endif -Provides: django-filter = %{version}-%{release} -Obsoletes: django-filter < %{obs_ver} - %if 0%{?with_python3} %package -n python3-django-filter Summary: A Django application for allowing users to filter queryset dynamically -Requires: python3-django -Requires: python3-django-rest-framework %description -n python3-django-filter Django-filter is a reusable Django application for allowing users to filter querysets dynamically. This is a Python 3 build of django-filter. %endif -%description -Django-filter is a reusable Django application for allowing users to filter +%global _description\ +Django-filter is a reusable Django application for allowing users to filter\ querysets dynamically. +%description %_description + +%package -n python2-django-filter +Summary: %summary +Requires: python-django +Requires: python-django-rest-framework +Provides: django-filter = %{version}-%{release} +Obsoletes: django-filter < %{obs_ver} +%if 0%{?with_python3} +Requires: python3-django +Requires: python3-django-rest-framework +%endif +%{?python_provide:%python_provide python2-django-filter} + +%description -n python2-django-filter %_description + %prep %autosetup -n %{pypi_name}-%{version} -p1 @@ -82,7 +91,7 @@ pushd %{py3dir} popd %endif -%files +%files -n python2-django-filter %doc CHANGES.rst README.rst LICENSE docs/ %{python_sitelib}/django_filters %{python_sitelib}/django_filter-%{version}-py?.?.egg-info @@ -95,6 +104,10 @@ popd %endif %changelog +* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek - 1.0.2-2 +- Python 2 binary package renamed to python2-django-filter + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Fri Dec 08 2017 Miro Hrončok - 1.0.2-1 - Update to 1.0.2 (#1523407)