[7029] | 1 | %global gitolite_homedir %{_var}/lib/%{name} |
---|
| 2 | |
---|
| 3 | Name: gitolite |
---|
[7555] | 4 | Version: 3.4 |
---|
[9208] | 5 | Release: 2%{?_dist_release} |
---|
[7029] | 6 | Summary: Highly flexible git server |
---|
[7555] | 7 | Summary(ja): 柔軟性の高い Git サーバ |
---|
[9208] | 8 | Group: Applications/Services |
---|
[7029] | 9 | License: GPLv2 and CC-BY-SA |
---|
| 10 | URL: http://github.com/sitaramc/gitolite |
---|
[7555] | 11 | Source0: %{name}-%{version}.tar.gz |
---|
[7029] | 12 | Source1: gitolite-README-vine |
---|
| 13 | |
---|
| 14 | BuildArch: noarch |
---|
[9208] | 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[7029] | 16 | Provides: perl(%{name}) = %{version}-%{release} |
---|
| 17 | Provides: gitolite3 = %{version} |
---|
| 18 | Requires: git |
---|
| 19 | Requires: openssh-clients |
---|
| 20 | Requires: perl(:MODULE_COMPAT_%(eval $(%{__perl} -V:version); echo $version)) |
---|
| 21 | Requires(pre): shadow-utils |
---|
| 22 | Requires: subversion |
---|
| 23 | |
---|
| 24 | %description |
---|
| 25 | Gitolite allows a server to host many git repositories and provide access |
---|
| 26 | to many developers, without having to give them real userids on the server. |
---|
| 27 | The essential magic in doing this is ssh's pubkey access and the authorized |
---|
| 28 | keys file, and the inspiration was an older program called gitosis. |
---|
| 29 | |
---|
| 30 | Gitolite can restrict who can read from (clone/fetch) or write to (push) a |
---|
| 31 | repository. It can also restrict who can push to what branch or tag, which |
---|
| 32 | is very important in a corporate environment. Gitolite can be installed |
---|
| 33 | without requiring root permissions, and with no additional software than git |
---|
| 34 | itself and perl. It also has several other neat features described below and |
---|
| 35 | elsewhere in the doc/ directory. |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | %prep |
---|
[7555] | 39 | %setup -q |
---|
[7029] | 40 | cp %{SOURCE1} . |
---|
| 41 | |
---|
| 42 | #%patch0 -p1 |
---|
| 43 | |
---|
| 44 | %build |
---|
| 45 | #This page intentionally left blank. |
---|
| 46 | |
---|
| 47 | %install |
---|
| 48 | rm -rf $RPM_BUILD_ROOT |
---|
| 49 | |
---|
| 50 | # Directory structure |
---|
| 51 | install -d $RPM_BUILD_ROOT%{gitolite_homedir} |
---|
| 52 | install -d $RPM_BUILD_ROOT%{gitolite_homedir}/.ssh |
---|
| 53 | install -d $RPM_BUILD_ROOT%{_bindir} |
---|
| 54 | install -d $RPM_BUILD_ROOT%{perl_vendorlib} |
---|
| 55 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name} |
---|
| 56 | |
---|
| 57 | # Code |
---|
| 58 | cp -pr src/lib/Gitolite $RPM_BUILD_ROOT%{perl_vendorlib} |
---|
| 59 | echo "%{version}-%{release}" >src/VERSION |
---|
| 60 | cp -a src/* $RPM_BUILD_ROOT%{_datadir}/%{name} |
---|
| 61 | ln -s %{_datadir}/%{name}/gitolite $RPM_BUILD_ROOT%{_bindir}/gitolite |
---|
| 62 | |
---|
| 63 | # empty authorized_keys file |
---|
| 64 | touch $RPM_BUILD_ROOT%{gitolite_homedir}/.ssh/authorized_keys |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | %pre |
---|
| 68 | getent group %{name} >/dev/null || groupadd -r %{name} |
---|
| 69 | getent passwd %{name} >/dev/null || \ |
---|
| 70 | useradd -r -g %{name} -d %{gitolite_homedir} -s /bin/sh \ |
---|
| 71 | -c "git repository hosting" %{name} |
---|
| 72 | exit 0 |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | %files |
---|
| 76 | %{_bindir}/* |
---|
| 77 | %{perl_vendorlib}/* |
---|
| 78 | %{_datadir}/%{name} |
---|
| 79 | # make homedir non world readable |
---|
| 80 | %attr(750,%{name},%{name}) %dir %{gitolite_homedir} |
---|
| 81 | %attr(750,%{name},%{name}) %dir %{gitolite_homedir}/.ssh |
---|
| 82 | %config(noreplace) %attr(640,%{name},%{name}) %{gitolite_homedir}/.ssh/authorized_keys |
---|
[9208] | 83 | %doc gitolite-README-vine COPYING README.txt CHANGELOG |
---|
[7029] | 84 | |
---|
| 85 | |
---|
| 86 | %changelog |
---|
[9208] | 87 | * Tue Dec 30 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.4-2 |
---|
| 88 | - rebuilt with perl 5.16.3 |
---|
| 89 | |
---|
[7555] | 90 | * Thu Mar 14 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 3.4-1 |
---|
| 91 | - update to 3.4 |
---|
| 92 | |
---|
[7029] | 93 | * Sun Oct 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 3.1-1 |
---|
| 94 | - initial build for Vine Linux |
---|
| 95 | |
---|
| 96 | * Wed Oct 10 2012 Jon Ciesla <limburgher@gmail.com> - 1:3.1-1 |
---|
| 97 | - 3.1, rewuiring Epoch bump. |
---|
| 98 | |
---|
| 99 | * Tue Oct 09 2012 Jon Ciesla <limburgher@gmail.com> - 3.04-4 |
---|
| 100 | - Patch for directory traversal bug. |
---|
| 101 | |
---|
| 102 | * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.04-3 |
---|
| 103 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild |
---|
| 104 | |
---|
| 105 | * Thu Jun 28 2012 Petr Pisar <ppisar@redhat.com> - 3.04-2 |
---|
| 106 | - Perl 5.16 rebuild |
---|
| 107 | |
---|
| 108 | * Wed Jun 27 2012 Jon Ciesla <limburgher@gmail.com> - 3.04-1 |
---|
| 109 | - Latest upstream, docs now includable. |
---|
| 110 | |
---|
| 111 | * Thu Jun 07 2012 Petr Pisar <ppisar@redhat.com> - 3.03-3 |
---|
| 112 | - Perl 5.16 rebuild |
---|
| 113 | |
---|
| 114 | * Thu Jun 07 2012 Petr Pisar <ppisar@redhat.com> - 3.03-2 |
---|
| 115 | - Perl 5.16 rebuild |
---|
| 116 | |
---|
| 117 | * Wed May 23 2012 Jon Ciesla <limburgher@gmail.com> - 3.03-1 |
---|
| 118 | - Latest upstream. |
---|
| 119 | |
---|
| 120 | * Mon May 21 2012 Jon Ciesla <limburgher@gmail.com> - 3.02-1 |
---|
| 121 | - Latest upstream. |
---|
| 122 | |
---|
| 123 | * Tue May 15 2012 Jon Ciesla <limburgher@gmail.com> - 3.01-2 |
---|
| 124 | - Added license file, fixed duplicate files, dropped defattr. |
---|
| 125 | - Dropped clean and buildroot. |
---|
| 126 | - Added script to generate tarball in comments. |
---|
| 127 | |
---|
| 128 | * Thu May 03 2012 Jon Ciesla <limburgher@gmail.com> - 3.01-1 |
---|
| 129 | - Initial packaging based on gitolite 2.3-2. |
---|