packages: trac-plugin-git/trac-plugin-git.spec (NEW) - trac git plugin

glen glen at pld-linux.org
Thu Mar 4 14:42:13 CET 2010


Author: glen                         Date: Thu Mar  4 13:42:13 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- trac git plugin

---- Files affected:
packages/trac-plugin-git:
   trac-plugin-git.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/trac-plugin-git/trac-plugin-git.spec
diff -u /dev/null packages/trac-plugin-git/trac-plugin-git.spec:1.1
--- /dev/null	Thu Mar  4 14:42:13 2010
+++ packages/trac-plugin-git/trac-plugin-git.spec	Thu Mar  4 14:42:08 2010
@@ -0,0 +1,73 @@
+# $Revision$, $Date$
+%define		trac_ver	0.11
+%define		plugin		gitplugin
+Summary:	GIT version control plugin for Trac %{trac_ver}
+Name:		trac-plugin-git
+Version:	%{trac_ver}.0.2
+Release:	0.3
+License:	GPL v2
+Group:		Applications/WWW
+# Source0Download:	http://trac-hacks.org/changeset/latest/gitplugin?old_path=/&filename=gitplugin&format=zip
+Source0:	%{plugin}.zip
+# Source0-md5:	b4d3ae110223606a46a1c7a413e8994d
+Patch0:		http://trac-hacks.org/attachment/ticket/6402/trac-git-plugin-python2.4.patch?format=raw
+URL:		http://trac-hacks.org/wiki/GitPlugin
+BuildRequires:	python-devel >= 1:2.4
+Requires:	trac >= %{trac_ver}
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+
+%prep
+%setup -q -n %{plugin}
+%patch0 -p1
+
+%build
+cd %{trac_ver}
+%{__python} setup.py build
+%{__python} setup.py egg_info
+
+%install
+rm -rf $RPM_BUILD_ROOT
+cd %{trac_ver}
+%{__python} setup.py install \
+	--single-version-externally-managed \
+	--optimize 2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_postclean
+
+# warning: install_data: setup script did not provide a directory for 'COPYING'
+# warning: install_data: setup script did not provide a directory for 'README'
+rm $RPM_BUILD_ROOT%{_prefix}/{COPYING,README}
+
+%clean
+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]
+	tracext.git.* = enabled
+EOF
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc %{trac_ver}/README
+%dir %{py_sitescriptdir}/tracext
+%{py_sitescriptdir}/tracext/git
+%{py_sitescriptdir}/TracGit-*.egg-info
+%{py_sitescriptdir}/TracGit-*-nspkg.pth
+
+%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  2010/03/04 13:42:08  glen
+- trac git plugin
================================================================


More information about the pld-cvs-commit mailing list