%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define tarver 1.0.0 %define tarrev r32289 %define tarname TracXMLRPC-%{tarver} Summary: XML-RPC plugin for Trac Name: trac-xmlrpc-plugin Version: %{tarver} Release: 0.1.%{tarrev}%{?dist} Group: Applications/Internet License: BSD URL: http://trac-hacks.org/wiki/XmlRpcPlugin # Source comes from svn right now: # svn co http://trac-hacks.org/svn/xmlrpcplugin/trunk # cd trunk; python setup.py sdist # mv dist/* . Source: %{tarname}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires: python-setuptools Requires: trac >= 0.11 # 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 XML-RPC. %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 PKG-INFO %{python_sitelib}/* %changelog * Tue Mar 10 2009 Matthias Saou 1.0.0-0.1.r32289 - Initial RPM release.