%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%define tarver 0.11
%define tarrev r10481
%define tarname TracKeywordsPlugin-%{tarver}
Summary: Keywords plugin for Trac
Name: trac-keywords-plugin
Version: %{tarver}
Release: 0.1.%{tarrev}%{?dist}
Group: Applications/Internet
License: BSD
URL: http://trac-hacks.org/wiki/TracKeywordsPlugin
# To get the source :
# Source comes from svn right now :
# svn export -r %{tarrev} http://trac-hacks.org/svn/trackeywordsplugin/0.11 %{tarname}
# tar -cvf %{tarname}.tar.gz %{tarname}
Source: %{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 Keywords.
%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
* Tue Jul 19 2011 James Laska 0.1-0.1.r10481
- Update to 0.11
* Wed Mar 11 2009 Matthias Saou 0.1-0.1.r2634
- Initial RPM release.