/rocketgit.spec.in (cbd7d4581a1e6e83cdafe1be9945032008be86b6) (3227 bytes) (mode 100644) (type blob)
%global selinux_types %(%{__awk} '/^#[[:space:]]*SELINUXTYPE=/,/^[^#]/ { if ($3 == "-") printf "%s ", $2 }' /etc/selinux/config 2>/dev/null)
%global selinux_variants %([ -z "%{selinux_types}" ] && echo mls strict targeted || echo %{selinux_types})
%global selinux_policyver 0.0.0
Summary: Light and fast Git hosting solution
Name: @PRJ@
Version: @VER@
Release: @REV@
License: GPLv3
Group: Development/Tools
Source: http://kernel.embedromix.ro/us/rocketgit/%{name}-%{version}.tar.gz
URL: http://kernel.embedromix.ro/us/
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
BuildArch: noarch
Requires: httpd, php, php-cli, php-pgsql, xinetd
Requires: git, postgresql-server
Requires: util-linux
# SELinux stuff
# https://fedoraproject.org/wiki/SELinux_Policy_Modules_Packaging_Draft?rd=PackagingDrafts/SELinux/PolicyModules
BuildRequires: checkpolicy, selinux-policy-devel, hardlink
# Needed for Fedora <= 19
%if "%{selinux_policyver}" != ""
Requires: selinux-policy >= %{selinux_policyver}
%endif
Requires(pre): shadow-utils
Requires(post): /usr/sbin/semodule, /sbin/restorecon, /sbin/fixfiles
Requires(postun): /usr/sbin/semodule, /sbin/restorecon, /sbin/fixfiles
%description
Light and fast Git hosting solution, similar with Gitorious/Gitolite/etc.
%pre
getent group rocketgit >/dev/null || groupadd -r rocketgit
getent passwd rocketgit >/dev/null || useradd -r -g rocketgit -s /bin/bash -m -d /home/rocketgit -c "RocketGit user" rocketgit
%post
for type in %{selinux_variants}
do
/usr/sbin/semodule -s ${type} -i \
@USR_SHARE@/selinux/${type}/@PRJ@.pp &> /dev/null || :
done
/sbin/fixfiles -R @PRJ@ restore || :
if [ $1 -ne 0 ]; then
/sbin/service xinetd reload &>/dev/null || :
/sbin/service httpd reload &>/dev/null || :
fi
%postun
if [ $1 = 0 ]; then
for type in %{selinux_variants}
do
/usr/sbin/semodule -s ${type} -r @PRJ@.pp &> /dev/null || :
done
/sbin/fixfiles -R @PRJ@ restore || :
fi
%prep
%setup -q
%build
%configure
# TODO: should we do this in configure?!
make selinux_variants="%{selinux_variants}"
%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}
make install DESTDIR=${RPM_BUILD_ROOT}
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr (-,root,root,0755)
%dir @USR_SHARE@/@PRJ@
%doc README LICENSE Changelog TODO selinux/@PRJ@.*
%dir @ETC@/@PRJ@
%config(noreplace) @ETC@/@PRJ@/config.php
@ETC@/@PRJ@/config.php.sample
@ETC@/cron.d/rocketgit
@ETC@/logrotate.d/rocketgit
%config(noreplace) @ETC@/xinetd.d/rocketgit
%config(noreplace) @ETC@/httpd/conf.d/rocketgit.conf
%attr(0755,rocketgit,rocketgit) %dir @VAR_LOG@/@PRJ@
%attr(0755,apache,apache) %dir @VAR_LOG@/@PRJ@-web
%attr(0755,rocketgit,rocketgit) %dir @VAR_LIB@/@PRJ@
%attr(0755,rocketgit,rocketgit) %dir @VAR_LIB@/@PRJ@/locks
%attr(0755,rocketgit,rocketgit) %dir @VAR_LIB@/@PRJ@/repos
%attr(0755,rocketgit,rocketgit) %dir @VAR_LIB@/@PRJ@/q_merge_requests
%attr(0755,rocketgit,rocketgit) %dir @VAR_LIB@/@PRJ@/sockets
@USR_SHARE@/@PRJ@/*
@USR_SHARE@/selinux/*/@PRJ@.pp
%changelog
* Wed Oct 17 2012 Catalin(ux) M. BOIE <catab at embedromix dot ro> 0.10
Alpha1 version released with a lot of fixes and some features.
* Mon Jun 27 2011 Catalin(ux) M. BOIE <catab at embedromix dot ro> 0.2
Another round of bulk changes.
Mode |
Type |
Size |
Ref |
File |
100644 |
blob |
9 |
f3c7a7c5da68804a1bdf391127ba34aed33c3cca |
.exclude |
100644 |
blob |
102 |
eaeb7d777062c60a55cdd4b5734902cdf6e1790c |
.gitignore |
100644 |
blob |
179 |
df01c6306393e7a8b180470b4beb8831e6c421e0 |
AUTHORS |
100644 |
blob |
1132 |
dd65951315f3de6d52d52a82fca59889d1d95187 |
Certs.txt |
100644 |
blob |
683 |
c61d848b6ba5c293c8a6d87e79849febd8f39e6c |
Compare.txt |
100644 |
blob |
202 |
76ae4b68b254d7b2fcc199dec13830136927826a |
History.txt |
100644 |
blob |
35147 |
94a9ed024d3859793618152ea559a168bbcbb5e2 |
LICENSE |
100644 |
blob |
2193 |
7528f3903e2d8dfcb629e1dc04ab71dd518834d9 |
Makefile.in |
100644 |
blob |
3785 |
ceed2aac739967b1c911c5e406da0092c4086121 |
README |
100644 |
blob |
55458 |
d7510d9be4310eba2e8c14804787aff4830abcdf |
TODO |
100644 |
blob |
1294 |
f22911eb777f0695fcf81ad686eac133eb11fcc4 |
TODO-plans |
040000 |
tree |
- |
21928e906ad2907a55c2e81c2a8b0502b586b8a0 |
artwork |
100755 |
blob |
30 |
92c4bc48245c00408cd7e1fd89bc1a03058f4ce4 |
configure |
040000 |
tree |
- |
f67d3605efbd6422a8acdd953578991139266391 |
docs |
100755 |
blob |
13704 |
87c4881d7f32f8179d29d86ee17ddbe0f6254c57 |
duilder |
100644 |
blob |
291 |
956b522edd3c0196fc06230e4b2c86a49cf8f5c4 |
duilder.conf |
040000 |
tree |
- |
6587894365eb6602cff04fd04ee1e39709a288fd |
hooks |
040000 |
tree |
- |
3fd5865337e9447e8b5046b1019a4b5bbd41a051 |
inc |
100644 |
blob |
3227 |
cbd7d4581a1e6e83cdafe1be9945032008be86b6 |
rocketgit.spec.in |
040000 |
tree |
- |
3c07fdd831715c8e807b2ac1110504edf0f13eff |
root |
040000 |
tree |
- |
fbdeda375c5f980a59d4f0049241079e5dcb8cb3 |
samples |
040000 |
tree |
- |
a463ccd3568101745e39bd3f933eae87ac1bbab9 |
scripts |
040000 |
tree |
- |
67d785c5d4bbc0b48e1408281b91b40b981013b4 |
selinux |
100755 |
blob |
242 |
bfcfb00931a643571fec9082e3308c6b68ca9189 |
spell_check.sh |
040000 |
tree |
- |
f0273e128ab389f38481b2992efb2644dd895cdd |
tests |
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/rocketgit
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rocketgit
Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rocketgit
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main