gitolite-vl.spec 4.1 KB

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