packages: trac-plugin-ticketchange/trac-plugin-ticketchange.spec - fix deps

glen glen at pld-linux.org
Tue Feb 1 22:00:25 CET 2011


Author: glen                         Date: Tue Feb  1 21:00:25 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix deps

---- Files affected:
packages/trac-plugin-ticketchange:
   trac-plugin-ticketchange.spec (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: packages/trac-plugin-ticketchange/trac-plugin-ticketchange.spec
diff -u packages/trac-plugin-ticketchange/trac-plugin-ticketchange.spec:1.12 packages/trac-plugin-ticketchange/trac-plugin-ticketchange.spec:1.13
--- packages/trac-plugin-ticketchange/trac-plugin-ticketchange.spec:1.12	Mon Jan 24 00:08:19 2011
+++ packages/trac-plugin-ticketchange/trac-plugin-ticketchange.spec	Tue Feb  1 22:00:19 2011
@@ -1,20 +1,21 @@
 # $Revision$, $Date$
 %define		trac_ver	0.12
+%define		plugin		ticketchange
 Summary:	Change ticket comments in Trac
-Name:		trac-plugin-ticketchange
+Name:		trac-plugin-%{plugin}
 Version:	0.0.4
-Release:	6
+Release:	7
 License:	BSD
 Group:		Applications/WWW
-# svn export http://trac-hacks.org/svn/ticketchangeplugin/0.11 ticketchangeplugin
-Source0:	ticketchangeplugin.tar.bz2
-# Source0-md5:	2ba34c00b96da755230a9c7916fe575e
+Source0:	http://trac-hacks.org/changeset/latest/ticketchangeplugin?old_path=/&format=zip#/%{plugin}-%{version}.zip
+# Source0-md5:	f59788ca5f34354c0126f05d890862a7
 URL:		http://trac-hacks.org/wiki/TicketChangePlugin
 BuildRequires:	python-devel
 BuildRequires:	python-modules
 BuildRequires:	python-setuptools
 BuildRequires:	rpm-pythonprov
-Requires:	trac = %{trac_ver}
+BuildRequires:	rpmbuild(macros) >= 1.595
+Requires:	trac >= %{trac_ver}
 Requires:	trac-plugin-ticketdelete
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -23,7 +24,8 @@
 Provides a web interface to change ticket comments in Trac.
 
 %prep
-%setup -q -n ticketchangeplugin
+%setup -qc
+mv %{plugin}plugin/0.11/* .
 
 %build
 %{__python} setup.py build
@@ -42,15 +44,13 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ "$1" = "1" ]; then
-	%banner -e %{name} <<-'EOF'
-	Don't forget to enable ticketdelete in conf/trac.ini:
+%banner -o -e %{name} <<-'EOF'
+Don't forget to enable ticketdelete in conf/trac.ini:
 
-	[components]
-	ticketchange.* = enabled
+[components]
+ticketchange.* = enabled
 EOF
-#' - vim
-fi
+#'vim
 
 %files
 %defattr(644,root,root,755)
@@ -63,6 +63,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.13  2011/02/01 21:00:19  glen
+- fix deps
+
 Revision 1.12  2011/01/23 23:08:19  sparky
 - BR: python-modules, python-setuptools, rpm-pythonprov
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/trac-plugin-ticketchange/trac-plugin-ticketchange.spec?r1=1.12&r2=1.13&f=u



More information about the pld-cvs-commit mailing list