SPECS: template-trac-plugin.spec (NEW) - new

glen glen at pld-linux.org
Thu Jan 15 16:25:19 CET 2009


Author: glen                         Date: Thu Jan 15 15:25:19 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   template-trac-plugin.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/template-trac-plugin.spec
diff -u /dev/null SPECS/template-trac-plugin.spec:1.1
--- /dev/null	Thu Jan 15 16:25:19 2009
+++ SPECS/template-trac-plugin.spec	Thu Jan 15 16:25:14 2009
@@ -0,0 +1,71 @@
+# $Revision$, $Date$
+%define		trac_ver	0.11
+%define		plugin		PLUGIN_NAME
+Summary:	PLUGIN_NAME Plugin for Trac
+Name:		trac-plugin-%{plugin}
+Version:	0.1
+Release:	0.1
+License:	BSD-like
+Group:		Applications/WWW
+# Source0Download:	http://trac-hacks.org/changeset/latest/wikirenameplugin?old_path=/&filename=wikirenameplugin&format=zip
+Source0:	%{plugin}plugin.zip
+# Source0-md5:	9f706e733d205d4467ce6534772cb505
+URL:		http://trac-hacks.org/wiki/PLUGIN_NAME
+BuildRequires:	python-devel
+Requires:	trac >= %{trac_ver}
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+
+%prep
+%setup -q -n %{plugin}plugin
+
+%build
+cd %{plugin}/%{version}
+cd %{trac_ver}
+%{__python} setup.py build
+%{__python} setup.py egg_info
+
+%install
+rm -rf $RPM_BUILD_ROOT
+cd %{trac_ver}
+cd %{plugin}/%{version}
+%{__python} setup.py install \
+	--single-version-externally-managed \
+	--optimize 2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ "$1" = "1" ]; then
+	%banner -e %{name} <<-'EOF'
+	Don't forget to enable %{plugin} in conf/trac.ini:
+
+	[components]
+	trac%{plugin}.* = enabled
+
+	Run trac-admin <env> upgrade on your Trac environment.
+
+	Restart your web server.
+EOF
+#' - vim
+fi
+
+%files
+%defattr(644,root,root,755)
+%{py_sitescriptdir}/trac%{plugin}
+%{py_sitescriptdir}/*-*.egg-info
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/01/15 15:25:14  glen
+- new
================================================================


More information about the pld-cvs-commit mailing list