[packages/trac-plugin-git] - up to 0.12.0.5dev
glen
glen at pld-linux.org
Wed Aug 15 19:12:16 CEST 2012
commit 28530c734c951fe2237a65fe0f1356d319a74ce6
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Aug 15 20:12:11 2012 +0300
- up to 0.12.0.5dev
trac-plugin-git.spec | 26 ++++++++++++--------------
1 file changed, 12 insertions(+), 14 deletions(-)
---
diff --git a/trac-plugin-git.spec b/trac-plugin-git.spec
index 1a9c181..8e3ce46 100644
--- a/trac-plugin-git.spec
+++ b/trac-plugin-git.spec
@@ -1,14 +1,15 @@
-%define trac_ver 0.11
+%define trac_ver 0.12
%define plugin gitplugin
-Summary: GIT version control plugin for Trac %{trac_ver}
+Summary: GIT version control plugin for Trac
Name: trac-plugin-git
-Version: %{trac_ver}.0.2
+Version: %{trac_ver}.0.5
Release: 1
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
+#Source0: http://trac-hacks.org/changeset/latest/gitplugin?old_path=/&format=zip#/%{plugin}-%{version}.zip
+# TH site is down at this moment, so use fedora mirror
+Source0: http://pkgs.fedoraproject.org/repo/pkgs/trac-git-plugin/TracGit-%{version}dev.tar.gz/b5e624f7c0f3a85240e0f1484492dc15/TracGit-%{version}dev.tar.gz
+# Source0-md5: b5e624f7c0f3a85240e0f1484492dc15
Patch0: trac-git-plugin-python2.4.patch
URL: http://trac-hacks.org/wiki/GitPlugin
BuildRequires: python-devel >= 1:2.4
@@ -21,19 +22,20 @@ BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
+This Trac plugin provides support for the GIT SCM.
%prep
-%setup -q -n %{plugin}
+%setup -qn TracGit-%{version}dev
+%if "%{py_ver}" < "2.5"
%patch0 -p1
+%endif
%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 \
@@ -41,10 +43,6 @@ cd %{trac_ver}
%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
@@ -60,7 +58,7 @@ fi
%files
%defattr(644,root,root,755)
-%doc %{trac_ver}/README
+%doc README
%dir %{py_sitescriptdir}/tracext
%{py_sitescriptdir}/tracext/git
%{py_sitescriptdir}/TracGit-*.egg-info
More information about the pld-cvs-commit
mailing list