[packages/gitolite3] package contrib/ to -contrib
glen
glen at pld-linux.org
Sat Nov 2 19:58:26 CET 2013
commit 6ebe85faad3806e8471a6b310f20eedee61799de
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Nov 2 20:58:01 2013 +0200
package contrib/ to -contrib
gitolite3.spec | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/gitolite3.spec b/gitolite3.spec
index 27cf529..3a297b8 100644
--- a/gitolite3.spec
+++ b/gitolite3.spec
@@ -3,7 +3,7 @@ Summary: Software for hosting git repositories
Summary(pl.UTF-8): Narzędzie do hostowania repozytoriów git
Name: gitolite3
Version: 3.5.3.1
-Release: 1
+Release: 2
License: GPL v2
Group: Development/Tools
Source0: http://github.com/sitaramc/gitolite/tarball/v%{version}/gitolite-%{version}.tar.gz
@@ -52,6 +52,14 @@ oprogramowania poza samym gitem i Perlem.
Gitolite 3.x to kod Gitolite napisany od nowa, dokumentacja online
wyjaśnia proces aktualizacji.
+%package contrib
+Summary: Contributed scripts for Gitolite
+Group: Networking
+Requires: %{name} = %{version}-%{release}
+
+%description contrib
+Contributed scripts for Gitolite.
+
%prep
%setup -qc
mv sitaramc-gitolite-*/* .
@@ -66,8 +74,7 @@ echo "v%{version}" > src/VERSION # add '-pld' suffix or something if patched
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir},%{perl_vendorlib}}
-
-install check-g2-compat convert-gitosis-conf $RPM_BUILD_ROOT%{_bindir}
+install -p check-g2-compat convert-gitosis-conf $RPM_BUILD_ROOT%{_bindir}
cp -a src $RPM_BUILD_ROOT%{_datadir}/gitolite
mv $RPM_BUILD_ROOT%{_datadir}/gitolite/lib/* $RPM_BUILD_ROOT%{perl_vendorlib}
@@ -76,6 +83,8 @@ rmdir $RPM_BUILD_ROOT%{_datadir}/gitolite/lib
ln -sf %{_datadir}/gitolite/gitolite $RPM_BUILD_ROOT%{_bindir}
ln -sf %{_datadir}/gitolite/gitolite-shell $RPM_BUILD_ROOT%{_bindir}
+cp -a contrib $RPM_BUILD_ROOT%{_datadir}/gitolite
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -106,3 +115,7 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_datadir}/gitolite/triggers/post-compile
%attr(755,root,root) %{_datadir}/gitolite/triggers/post-compile/*
%{perl_vendorlib}/Gitolite
+
+%files contrib
+%defattr(644,root,root,755)
+%{_datadir}/gitolite/contrib
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gitolite3.git/commitdiff/6ebe85faad3806e8471a6b310f20eedee61799de
More information about the pld-cvs-commit
mailing list