[1741] | 1 | %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
---|
| 2 | |
---|
| 3 | %define alphatag r154 |
---|
| 4 | %define srcname django-tagging |
---|
| 5 | |
---|
| 6 | Name: python-%{srcname} |
---|
| 7 | Version: 0.3 |
---|
[5701] | 8 | Release: 3.20080217svn%{alphatag}%{?_dist_release} |
---|
[1741] | 9 | Summary: A generic tagging application for Django projects |
---|
| 10 | |
---|
| 11 | Group: Development/Languages |
---|
| 12 | License: MIT |
---|
| 13 | URL: http://code.google.com/p/django-tagging/ |
---|
| 14 | # svn export -r154 http://django-tagging.googlecode.com/svn/trunk/ django-tagging-0.3-r154 |
---|
| 15 | # tar zcf django-tagging-0.3-r154.tar.gz django-tagging-0.3-r154 |
---|
| 16 | Source0: %{srcname}-%{version}-%{alphatag}.tar.gz |
---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 18 | |
---|
| 19 | BuildArch: noarch |
---|
| 20 | BuildRequires: python-devel |
---|
[1745] | 21 | Requires: python-django |
---|
[1741] | 22 | |
---|
| 23 | %description |
---|
| 24 | A generic tagging application for Django projects, which allows association |
---|
| 25 | of a number of tags with any Model instance and makes retrieval of tags |
---|
| 26 | simple. |
---|
| 27 | |
---|
| 28 | %prep |
---|
| 29 | %setup -q -n %{srcname}-%{version}-%{alphatag} |
---|
| 30 | |
---|
| 31 | %build |
---|
| 32 | %{__python} setup.py build |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | %install |
---|
| 36 | %__rm -rf $RPM_BUILD_ROOT |
---|
| 37 | %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT |
---|
| 38 | |
---|
| 39 | %clean |
---|
| 40 | %__rm -rf $RPM_BUILD_ROOT |
---|
| 41 | |
---|
| 42 | %files |
---|
| 43 | %defattr(-,root,root,-) |
---|
| 44 | %doc CHANGELOG.txt LICENSE.txt README.txt docs/* |
---|
| 45 | %{python_sitelib}/* |
---|
| 46 | |
---|
| 47 | %changelog |
---|
[5701] | 48 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.3-3.20080217svnr154 |
---|
| 49 | - rebuild with python-2.7.2 |
---|
| 50 | |
---|
[1745] | 51 | * Thu Sep 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 0.3-2.20080217svnr154 |
---|
| 52 | - changed from Django to python-django in Requires: (see changeset r1742) |
---|
| 53 | |
---|
[1741] | 54 | * Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 0.3-1.20080217svnr154 |
---|
| 55 | - initial build based on Fedora development |
---|
| 56 | |
---|
| 57 | * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.3-3.20080217svnr154 |
---|
| 58 | - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild |
---|
| 59 | |
---|
| 60 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-2.20080217svnr154 |
---|
| 61 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 62 | |
---|
| 63 | * Mon Mar 02 2009 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 0.3-1.20080217svnr154 |
---|
| 64 | - Add Requires: Django |
---|
| 65 | |
---|
| 66 | * Wed Feb 18 2009 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> 0.3-0.20080217svnr154 |
---|
| 67 | - Initial RPM release |
---|