[trac-sensitivetickets-plugin] Fixed python2/python3 ambiguity mentioned in RHBZ 887543, comment 1
Patrick Uiterwijk
puiterwijk at fedoraproject.org
Thu Dec 20 21:42:07 UTC 2012
commit c5f5988125ee87b9aecb8ce33c876d721ae9f7d9
Author: Patrick Uiterwijk <puiterwijk at gmail.com>
Date: Thu Dec 20 22:41:50 2012 +0100
Fixed python2/python3 ambiguity mentioned in RHBZ 887543, comment 1
.gitignore | 1 +
sources | 1 +
trac-sensitivetickets-plugin.spec | 55 +++++++++++++++++++++++++++++++++++++
3 files changed, 57 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..6b2dca8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/trac-sensitivetickets-plugin-0.21.svn12442.tar.gz
diff --git a/sources b/sources
index e69de29..9f65f6b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+cc7c1368a9d542c6a9f4496cd87c7c6e trac-sensitivetickets-plugin-0.21.svn12442.tar.gz
diff --git a/trac-sensitivetickets-plugin.spec b/trac-sensitivetickets-plugin.spec
new file mode 100644
index 0000000..46736cc
--- /dev/null
+++ b/trac-sensitivetickets-plugin.spec
@@ -0,0 +1,55 @@
+%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 at gmail.com> - 0.21-2.20121220svn
+- Fixed python2/python3 ambiguity mentioned in RHBZ 887543, comment 1
+
+* Mon Dec 17 2012 Patrick Uiterwijk <puiterwijk at gmail.com> - 0.21-1.20121220svn
+- Initial packaging effort
+
More information about the scm-commits
mailing list