%{!?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.4.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 * Sat Jul 21 2012 Fedora Release Engineering - 0.7-0.4.svn8364 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 0.7-0.3.svn8364 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Feb 09 2011 Fedora Release Engineering - 0.7-0.2.svn8364 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Dec 09 2010 Jesse Keating - 0.7-0.1.svn8364 - New upstream release/snapshot for trac 0.12 * Thu Aug 6 2009 Jon Stanley - 0.5-0.1.svn6332 - Include README.license, move to new SVN checkout to clear up licensing * Thu Aug 6 2009 Jon Stanley - 0.5-0.1.svn6329 - Initial package