%if 0%{?fedora} > 12 %global with_python3 1 %endif %global pkgname django-tagging Name: python-django-tagging Version: 0.4.6 Release: 1.el7rhgs Summary: A generic tagging application for Django projects Group: Development/Languages License: MIT URL: http://code.google.com/p/django-tagging/ Source0: http://pypi.python.org/packages/source/d/%{pkgname}/%{pkgname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel %if 0%{?with_python3} BuildRequires: python3-devel %endif Requires: python-django Provides: %{pkgname} = %{version}-%{release} %description A generic tagging application for Django projects, which allows association of a number of tags with any Model instance and makes retrieval of tags simple. %if 0%{?with_python3} %package -n python3-django-tagging Summary: A generic tagging application for Django projects Group: Development/Languages Requires: python3-django %description -n python3-django-tagging A generic tagging application for Django projects, which allows association of a number of tags with any Model instance and makes retrieval of tags simple. %endif %prep %setup -q -n %{pkgname}-%{version} %if 0%{?with_python3} cp -a . %{py3dir} %endif %build %{__python} setup.py build %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py build popd %endif %install %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT popd %endif %files %doc CHANGELOG.txt LICENSE.txt README.rst docs/* %{python_sitelib}/tagging %{python_sitelib}/django_tagging-%{version}-py?.?.egg-info %if 0%{?with_python3} %files -n python3-django-tagging %doc CHANGELOG.txt LICENSE.txt README.rst docs/* %{python3_sitelib}/tagging %{python3_sitelib}/django_tagging-%{version}-py?.?.egg-info %endif %changelog * Mon Nov 26 2018 Timothy Asir - 0.4.6-1 - Rebuild for tendrl * Mon Mar 14 2016 Timothy Asir - 0.3.1-11.1 - Rebuilt for RHSCON-2 * Mon Dec 23 2013 Jakub Dorňák - 0.3.1-11 - use builtin next(i) instead of i.next() for compatibility with Py3 * Thu Dec 5 2013 Jakub Dorňák - 0.3.1-9 - fixed use of types which are not available in Py3 * Sun Dec 1 2013 Jakub Dorňák - 0.3.1-8 - added python3 subpackage * Thu Feb 14 2013 Fedora Release Engineering - 0.3.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Sep 06 2012 Matthias Runge - 0.3.1-6 - correct wrong obsoletes - requires python-django * Sat Jul 21 2012 Fedora Release Engineering - 0.3.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Mar 03 2012 Matthias Runge 0.3.1-4 - package rename to python-django-tagging * Fri Jan 13 2012 Fedora Release Engineering - 0.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Jul 14 2011 Matthias Runge - 0.3.1-2 - add dist-tag * Sun Jun 26 2011 Matthias Runge - 0.3.1-1 - update to version 0.3.1 * Tue Feb 08 2011 Fedora Release Engineering - 0.3-4.20080217svnr154 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Jul 21 2010 David Malcolm - 0.3-3.20080217svnr154 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Fri Jul 24 2009 Fedora Release Engineering - 0.3-2.20080217svnr154 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Mar 02 2009 Ignacio Vazquez-Abrams 0.3-1.20080217svnr154 - Add Requires: Django * Wed Feb 18 2009 Ignacio Vazquez-Abrams 0.3-0.20080217svnr154 - Initial RPM release