2 Summary: Ticket and Ticket Change Deletion Plugin
3 Name: trac-plugin-ticketdelete
7 Group: Applications/WWW
8 # Source0Download: http://trac-hacks.org/changeset/latest/ticketdeleteplugin?old_path=/&filename=ticketdeleteplugin&format=zip
9 Source0: ticketdeleteplugin.zip
10 # Source0-md5: 5ea5299648bae63f2ac85c2b0af0fe81
11 URL: http://trac-hacks.org/wiki/TicketDeletePlugin
12 BuildRequires: python-devel
13 BuildRequires: python-modules
14 BuildRequires: python-setuptools
15 BuildRequires: rpm-pythonprov
17 Requires: trac >= %{trac_ver}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 This is a small plugin to allow deleting tickets from within Trac.
23 Though I don't advocate this as a method of dealing with tickets very
24 often, it is a commonly requested feature, and it is needed on rare
25 occasions (generally dealing with spam).
27 It also supports deleting individual changes, including comments.
30 %setup -q -n ticketdeleteplugin
34 %{__python} setup.py build
35 %{__python} setup.py egg_info
38 rm -rf $RPM_BUILD_ROOT
40 %{__python} setup.py install \
41 --single-version-externally-managed \
43 --root=$RPM_BUILD_ROOT
48 rm -rf $RPM_BUILD_ROOT
51 if [ "$1" = "1" ]; then
52 %banner -e %{name} <<-'EOF'
53 Don't forget to enable ticketdelete in conf/trac.ini:
56 ticketdelete.* = enabled
62 %defattr(644,root,root,755)
63 %{py_sitescriptdir}/ticketdelete
64 %{py_sitescriptdir}/TracTicketDelete-*.egg-info