%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define tarver 0.5.1 %define tarrev r1611 %define tarname LdapPlugin-%{tarver}dev-%{tarrev} Summary: LDAP plugin for Trac Name: trac-ldap-plugin Version: %{tarver} Release: 0.1.%{tarrev}%{?dist} Group: Applications/Internet License: BSD URL: http://trac-hacks.org/wiki/LdapPlugin # Source comes from svn right now: # svn co http://trac-hacks.org/svn/ldapplugin/0.10 # cd 0.10; python setup.py sdist # mv dist/* . Source: %{tarname}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires: python-setuptools Requires: trac # 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 LDAP. %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 AUTHORS COPYING %{python_sitelib}/* %changelog * Tue Mar 25 2008 Matthias Saou 0.5.1-0.1.r1611 - Initial RPM release.