%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define tartrac 0.11 %define tarver 0.7.4 %define tarrev r5353 %define tarname graphvizplugin_%{tartrac}-%{tarver}-%{tarrev} Summary: Graphviz plugin for Trac Name: trac-graphviz-plugin Version: %{tarver} Release: 1.%{tarrev}%{?dist} Group: Applications/Internet License: BSD URL: http://trac-hacks.org/wiki/GraphvizPlugin # Source comes from : # http://trac-hacks.org/changeset/latest/graphvizplugin/0.11-0.7.4?old_path=/&filename=graphvizplugin/0.11-0.7.4&format=zip Source: %{tarname}.zip 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 Graphviz. %prep %setup -q -n graphvizplugin # Everything is in a single sub-directory, so move back %{__mv} %{tartrac}-%{tarver}/* . %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 COPYING README.txt ReleaseNotes.txt %{python_sitelib}/* %changelog * Wed Mar 11 2009 Matthias Saou 0.7.4-1.r5353 - Initial RPM release.