%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: trac-tickettemplate-plugin
Version: 0.5
Release: 0.1.svn6332%{?dist}
Summary: Allow for ticket templating
Group: Applications/Internet
# Licensing situation unclear, BSD per email from upstream, included in %%doc
License: BSD
URL: http://trac-hacks.org/wiki/TracTicketTemplatePlugin
# Produce via 'svn export -r6332 http://trac-hacks.org/svn/tractickettemplateplugin/0.10 tractickettemplateplugin-0.10'
# tar -czvf trac-tractickettemplateplugin-0.10.svn6329.tar.gz tractickettemplateplugin-0.10
Source0: trac-tractickettemplateplugin-0.10.svn6332.tar.gz
Source1: README.license
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel, python-setuptools
Requires: trac >= 0.10
# Only for 0.10
Requires: trac-webadmin
%description
A trac plugin to allow for ticket templates to be defined via the web admin
interface
%prep
%setup -q -n tractickettemplateplugin-0.10
cp %{SOURCE1} .
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
# Remove the documentation files that got installed
rm $RPM_BUILD_ROOT%{python_sitelib}/tickettemplate/readme.txt
rm $RPM_BUILD_ROOT%{python_sitelib}/tickettemplate/version.txt
rm $RPM_BUILD_ROOT%{python_sitelib}/tickettemplate/changelog.txt
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{python_sitelib}/*
%doc tickettemplate/readme.txt tickettemplate/changelog.txt tickettemplate/version.txt README.license
%changelog
* Thu Aug 6 2009 Jon Stanley <jonstanley@gmail.com> - 0.5-0.1.svn6332
- Include README.license, move to new SVN checkout to clear up licensing
* Thu Aug 6 2009 Jon Stanley <jonstanley@gmail.com> - 0.5-0.1.svn6329
- Initial package