%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define tarver 0.1 %define tarrev r1131 %define tarname TracDupPlugin-%{tarver} Summary: Duplicate plugin for Trac Name: trac-dup-plugin Version: %{tarver} Release: 0.1.%{tarrev}%{?dist} Group: Applications/Internet License: BSD URL: https://thomas.apestaart.org/thomas/trac/browser/tests/trac/tracdupplugin/ # Source comes from svn right now: # svn co https://thomas.apestaart.org/thomas/svn/tests/trac/tracdupplugin/0.10 # cd 0.10; python setup.py sdist # mv dist/* . Source0: %{tarname}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires: python-setuptools Requires: trac >= 0.10 # Must have setuptools to build the package # The build portions moved to a subpackage in F-8 %if 0%{?fedora} >= 8 BuildRequires: python-setuptools-devel %else BuildRequires: python-setuptools %endif BuildArch: noarch BuildRequires: python-devel %description This Trac plugin provides support for Duplicates. %prep %setup -q -n %{tarname} %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install --skip-build --root %{buildroot} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README %{python_sitelib}/* %changelog * Wed Mar 11 2009 Matthias Saou 0.1-0.1.r1131 - Initial RPM release.