Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:deadpoint
gitolite3
gitolite3.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gitolite3.spec of Package gitolite3
# # spec file for package gitolite3 # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define gitolite_homedir %{_localstatedir}/lib/%{name} %define realname gitolite Name: gitolite3 Version: 3.6.1 Release: 0 Summary: Highly flexible server for git directory version tracker License: GPL-2.0+ Group: Development/Tools/Version Control Url: http://github.com/sitaramc/gitolite # https://github.com/sitaramc/gitolite/archive/v%{version}.tar.gz Source: %{realname}-%{version}.tar.gz Source1: README.SUSE BuildRequires: git BuildRoot: %{_tmppath}/%{name}-%{version}-build Conflicts: gitosis Conflicts: gitolite %if 0%{?suse_version} > 1110 %{perl_requires} %else Requires: perl = %{perl_version} %endif %description Gitolite is an access control layer on top of git, which allows access control down to the branch level, including specifying who can and cannot rewind a given branch. %prep %setup -q -n %{realname}-%{version} install -m 644 %{S:1} . %build %install install -d %{buildroot}%{gitolite_homedir} install -d %{buildroot}%{gitolite_homedir}/.ssh install -d %{buildroot}%{_bindir} install -d %{buildroot}%{perl_vendorlib} install -d %{buildroot}%{_datadir}/%{name} cp -pr src/lib/Gitolite %{buildroot}%{perl_vendorlib} echo "%{version}-%{release}" >src/VERSION cp -a src/* %{buildroot}%{_datadir}/%{name} ln -s %{_datadir}/%{name}/%{realname} %{buildroot}%{_bindir}/%{realname} # empty authorized_keys file touch %{buildroot}%{gitolite_homedir}/.ssh/authorized_keys %pre getent group %{realname} >/dev/null || groupadd -r %{realname} getent passwd %{realname} >/dev/null || \ useradd -r -g %{realname} -d %{gitolite_homedir} -s /bin/sh \ -c "git repository hosting" %{realname} %files %defattr(-,root,root) %doc COPYING README.txt CHANGELOG README.SUSE %{_bindir}/* %{perl_vendorlib}/* %{_datadir}/%{name} %attr(750,%{realname},%{realname}) %dir %{gitolite_homedir} %attr(750,%{realname},%{realname}) %dir %{gitolite_homedir}/.ssh %config(noreplace) %attr(640,%{realname},%{realname}) %{gitolite_homedir}/.ssh/authorized_keys %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor