%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: trac-themeengine-plugin Version: 2.0.1 Release: 20120314svn11382%{?dist} Summary: Simple API and GUI for packaging and configuring Trac themes Group: Applications/Internet License: BSD URL: http://trac-hacks.org/wiki/ThemeEnginePlugin # Produce via 'svn export -r11382 http://trac-hacks.org/svn/themeengineplugin/0.11 themeengineplugin' # tar -czvf trac-themeengine-plugin-2.0.1.svn11382.tar.gz themeengineplugin Source0: %{name}-2.0.1.svn11382.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel, python-setuptools Requires: trac >= 0.11 %description A trac plugin that adds a simple API and GUI for packaging and configuring Trac themes. %prep %setup -q -n themeengineplugin %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README %{python_sitelib}/* %changelog * Wed Mar 14 2012 Andrea Veri - 2.0.1-20120314svn11382 - First package release.