123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- %global gitolite_homedir %{_var}/lib/%{name}
- Name: gitolite
- Version: 3.4
- Release: 2%{?_dist_release}
- Summary: Highly flexible git server
- Summary(ja): 柔軟性の高い Git サーバ
- Group: Applications/Services
- License: GPLv2 and CC-BY-SA
- URL: http://github.com/sitaramc/gitolite
- Source0: %{name}-%{version}.tar.gz
- Source1: gitolite-README-vine
- BuildArch: noarch
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- Provides: perl(%{name}) = %{version}-%{release}
- Provides: gitolite3 = %{version}
- Requires: git
- Requires: openssh-clients
- Requires: perl(:MODULE_COMPAT_%(eval $(%{__perl} -V:version); echo $version))
- Requires(pre): shadow-utils
- Requires: subversion
- %description
- Gitolite allows a server to host many git repositories and provide access
- to many developers, without having to give them real userids on the server.
- The essential magic in doing this is ssh's pubkey access and the authorized
- keys file, and the inspiration was an older program called gitosis.
- Gitolite can restrict who can read from (clone/fetch) or write to (push) a
- repository. It can also restrict who can push to what branch or tag, which
- is very important in a corporate environment. Gitolite can be installed
- without requiring root permissions, and with no additional software than git
- itself and perl. It also has several other neat features described below and
- elsewhere in the doc/ directory.
- %prep
- %setup -q
- cp %{SOURCE1} .
- #%patch0 -p1
- %build
- #This page intentionally left blank.
- %install
- rm -rf $RPM_BUILD_ROOT
- # Directory structure
- install -d $RPM_BUILD_ROOT%{gitolite_homedir}
- install -d $RPM_BUILD_ROOT%{gitolite_homedir}/.ssh
- install -d $RPM_BUILD_ROOT%{_bindir}
- install -d $RPM_BUILD_ROOT%{perl_vendorlib}
- install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
- # Code
- cp -pr src/lib/Gitolite $RPM_BUILD_ROOT%{perl_vendorlib}
- echo "%{version}-%{release}" >src/VERSION
- cp -a src/* $RPM_BUILD_ROOT%{_datadir}/%{name}
- ln -s %{_datadir}/%{name}/gitolite $RPM_BUILD_ROOT%{_bindir}/gitolite
- # empty authorized_keys file
- touch $RPM_BUILD_ROOT%{gitolite_homedir}/.ssh/authorized_keys
- %pre
- getent group %{name} >/dev/null || groupadd -r %{name}
- getent passwd %{name} >/dev/null || \
- useradd -r -g %{name} -d %{gitolite_homedir} -s /bin/sh \
- -c "git repository hosting" %{name}
- exit 0
- %files
- %{_bindir}/*
- %{perl_vendorlib}/*
- %{_datadir}/%{name}
- # make homedir non world readable
- %attr(750,%{name},%{name}) %dir %{gitolite_homedir}
- %attr(750,%{name},%{name}) %dir %{gitolite_homedir}/.ssh
- %config(noreplace) %attr(640,%{name},%{name}) %{gitolite_homedir}/.ssh/authorized_keys
- %doc gitolite-README-vine COPYING README.txt CHANGELOG
- %changelog
- * Tue Dec 30 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.4-2
- - rebuilt with perl 5.16.3
- * Thu Mar 14 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 3.4-1
- - update to 3.4
- * Sun Oct 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 3.1-1
- - initial build for Vine Linux
- * Wed Oct 10 2012 Jon Ciesla <limburgher@gmail.com> - 1:3.1-1
- - 3.1, rewuiring Epoch bump.
- * Tue Oct 09 2012 Jon Ciesla <limburgher@gmail.com> - 3.04-4
- - Patch for directory traversal bug.
- * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.04-3
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
- * Thu Jun 28 2012 Petr Pisar <ppisar@redhat.com> - 3.04-2
- - Perl 5.16 rebuild
- * Wed Jun 27 2012 Jon Ciesla <limburgher@gmail.com> - 3.04-1
- - Latest upstream, docs now includable.
- * Thu Jun 07 2012 Petr Pisar <ppisar@redhat.com> - 3.03-3
- - Perl 5.16 rebuild
- * Thu Jun 07 2012 Petr Pisar <ppisar@redhat.com> - 3.03-2
- - Perl 5.16 rebuild
- * Wed May 23 2012 Jon Ciesla <limburgher@gmail.com> - 3.03-1
- - Latest upstream.
- * Mon May 21 2012 Jon Ciesla <limburgher@gmail.com> - 3.02-1
- - Latest upstream.
- * Tue May 15 2012 Jon Ciesla <limburgher@gmail.com> - 3.01-2
- - Added license file, fixed duplicate files, dropped defattr.
- - Dropped clean and buildroot.
- - Added script to generate tarball in comments.
- * Thu May 03 2012 Jon Ciesla <limburgher@gmail.com> - 3.01-1
- - Initial packaging based on gitolite 2.3-2.
|