Blob Blame History Raw
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           trac-tickettemplate-plugin
Version:        0.7
Release:        0.2.svn8364%{?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 -r8364 http://trac-hacks.org/svn/tractickettemplateplugin/0.11 tractickettemplateplugin-0.11'
# tar -czvf trac-tractickettemplateplugin-0.11.svn8364.tar.gz tractickettemplateplugin-0.11
Source0:        trac-tractickettemplateplugin-0.11.svn8364.tar.gz
Source1:        README.license
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python-devel, python-setuptools
Requires:       trac >= 0.11

%description
A trac plugin to allow for ticket templates to be defined via the web admin
interface

%prep
%setup -q -n tractickettemplateplugin-0.11
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
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-0.2.svn8364
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Thu Dec 09 2010 Jesse Keating <jkeating@redhat.com> - 0.7-0.1.svn8364
- New upstream release/snapshot for trac 0.12

* 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