%if 0%{?rhel} && 0%{?rhel} <= 5 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif %define svn_rev 12442 Name: trac-sensitivetickets-plugin Version: 0.21 Release: 2.20121220svn%{?dist} Summary: Plugin for Trac that enables sensitive tickets License: GPL+ URL: http://trac-hacks.org/wiki/SensitiveTicketsPlugin # Generate via 'svn export -r%%{svn_rev} http://trac-hacks.org/svn/sensitiveticketsplugin/trunk trac-sensitivetickets-plugin-0.21 && tar -czvf trac-sensitivetickets-plugin-0.21.svn%%{svn_rev}.tar.gz trac-sensitivetickets-plugin-0.21 Source0: trac-sensitivetickets-plugin-0.21.svn%{svn_rev}.tar.gz BuildArch: noarch BuildRequires: python2-devel, python-setuptools Requires: trac >= 0.11.6 %description SensitiveTickets is a plugin that lets users mark tickets as "sensitive" with a checkbox on the ticket form. Sensitive tickets are viewable only to those with the SENSITIVE_VIEW permission. Beware: Hooks that send mail on ticket changes will still send mail for sensitive tickets; this may not be what you want. Beware: if the plugin is removed, disabled, or fails to load, trac will opt to display sensitive tickets ("failing open" instead of "failing closed"). %prep %setup -q %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %files # For noarch packages: sitelib %{python_sitelib}/* %changelog * Tue Dec 18 2012 Patrick Uiterwijk <puiterwijk@gmail.com> - 0.21-2.20121220svn - Fixed python2/python3 ambiguity mentioned in RHBZ 887543, comment 1 * Mon Dec 17 2012 Patrick Uiterwijk <puiterwijk@gmail.com> - 0.21-1.20121220svn - Initial packaging effort