template-specs: trac-plugin.spec - updated with trac-enableplugin
glen
glen at pld-linux.org
Wed Apr 7 11:55:32 CEST 2010
Author: glen Date: Wed Apr 7 09:55:32 2010 GMT
Module: template-specs Tag: HEAD
---- Log message:
- updated with trac-enableplugin
---- Files affected:
template-specs:
trac-plugin.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: template-specs/trac-plugin.spec
diff -u template-specs/trac-plugin.spec:1.2 template-specs/trac-plugin.spec:1.3
--- template-specs/trac-plugin.spec:1.2 Thu Jan 15 16:30:04 2009
+++ template-specs/trac-plugin.spec Wed Apr 7 11:55:26 2010
@@ -12,7 +12,8 @@
# Source0-md5: 9f706e733d205d4467ce6534772cb505
URL: http://trac-hacks.org/wiki/PLUGIN_NAME
BuildRequires: python-devel
-Requires: trac >= %{trac_ver}
+# if 0.12 cames into play, can sanitize this again
+Requires: trac >= %{trac_ver}.7-3
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -20,6 +21,7 @@
%prep
%setup -q -n %{plugin}plugin
+%setup -q -n trac%{plugin}plugin
%build
cd %{plugin}/%{version}
@@ -29,8 +31,8 @@
%install
rm -rf $RPM_BUILD_ROOT
-cd %{trac_ver}
cd %{plugin}/%{version}
+cd %{trac_ver}
%{__python} setup.py install \
--single-version-externally-managed \
--optimize 2 \
@@ -42,14 +44,8 @@
rm -rf $RPM_BUILD_ROOT
%post
-if [ "$1" = "1" ]; then
- %banner -e %{name} <<-'EOF'
- To enable the %{plugin} plugin, add to conf/trac.ini:
-
- [components]
- %{plugin}.* = enabled
-EOF
-fi
+# XXX: try to figure out from .egg-info / __init__py at build time
+trac-enableplugin %{plugin}.Trac%{plugin}Module
%files
%defattr(644,root,root,755)
@@ -62,6 +58,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2010/04/07 09:55:26 glen
+- updated with trac-enableplugin
+
Revision 1.2 2009/01/15 15:30:04 glen
- simplify
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/template-specs/trac-plugin.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list