# sitelib for noarch packages, sitearch for others (remove the unneeded one) %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define svnrev 6442 Name: trac-git-plugin Version: 0.11.0.2 Release: 5.20091016svn%{svnrev}%{?dist} Summary: GIT version control plugin for Trac Group: Applications/Internet License: GPLv2+ URL: http://trac-hacks.org/wiki/GitPlugin # Source comes from SVN right now: svn co -r %{svnrev} http://trac-hacks.org/svn/gitplugin; \ # cd gitplugin/0.11/; \ # python setup.py sdist --formats gztar # The above has to be done on EL5 due to regressions in setuptools Source0: TracGit-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools Requires: git-core, trac >= 0.11, python-setuptools %description This Trac plugin provides support for the GIT SCM. %prep %setup -n TracGit-%{version} -q %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT # skip-build doesn't work on el4 %{__python} setup.py install -O1 --root $RPM_BUILD_ROOT # Remove installed doc files, we grab them later rm $RPM_BUILD_ROOT/usr/COPYING rm $RPM_BUILD_ROOT/usr/README %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING README # For noarch packages: sitelib %{python_sitelib}/* %changelog * Fri Oct 16 2009 Tim Niemueller - 0.11.0.2-5.20091016svn6442 - Update to latest trunk version * Mon May 11 2009 Jesse Keating - 0.11.0.2-2.20090511svn5396 - Drop COPYING, it doesn't make it into the tarball. * Mon May 11 2009 Jesse Keating - 0.11.0.2-1.20090511svn5396 - Update for trac 0.11. Drop patches as those are in the 0.11 branch. * Wed Feb 25 2009 Fedora Release Engineering - 0.0.1-8.20070705svn1536 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.0.1-7.20070705svn1536 - Rebuild for Python 2.6 * Mon Sep 8 2008 Tom "spot" Callaway - 0.0.1-6.20070705svn1536 - fix license tag * Fri May 16 2008 Jesse Keating - 0.0.1-5.20070705svn1536 - Add patches from http://nanosleep.org/proj/trac-git-plugin * Mon Nov 26 2007 Jesse Keating - 0.0.1-4.20070705svn1536 - Add a patch to prevent tracebacks when using this plugin * Thu Jul 05 2007 Jesse Keating - 0.0.1-3.20070705svn1536 - Require trac and python-setuptools as well * Thu Jul 05 2007 Jesse Keating - 0.0.1-2.20070705svn1536 - Require git-core * Thu Jul 05 2007 Jesse Keating - 0.0.1-1.20070705svn1536 - Initial build