/rocketgit.spec.in (145e8fc1881d31ac867f33a99d8b2ee1bc0be61b) (3452 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})
# Seems this is needed for Fedora <= 19
#%global selinux_policyver %(%{__sed} -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp || echo 0.0.0)
%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
#BuildRequires: /usr/share/selinux/devel/policyhelp
%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 |
3498 |
78f0d69281c2d11688b6b7bf5c9c1ad9b91c5d35 |
README |
100644 |
blob |
555 |
a29cbbe77edda976d6e63ab5a3f90c24dfdf88b7 |
README.vm |
100644 |
blob |
51190 |
da7761bb4450f1cabbaf6a98c307da736d039b91 |
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 |
8ede7ca4ccc219865c5337b80180d065a5828791 |
duilder.conf |
040000 |
tree |
- |
d7ba62d78c4c4aa191a64ab04e9a28ce2685a893 |
hooks |
040000 |
tree |
- |
0a3b6b8f76af40b72a4aec1b19c084d49268531e |
inc |
100644 |
blob |
3452 |
145e8fc1881d31ac867f33a99d8b2ee1bc0be61b |
rocketgit.spec.in |
040000 |
tree |
- |
bef26689b0e3dc4ec6409dbcf5a74359e1745441 |
root |
040000 |
tree |
- |
88e5257f8478ddcc90d97a018dbece44f2ba8296 |
samples |
040000 |
tree |
- |
e1b926f359810c986982544cc49e28b2e4254c40 |
scripts |
040000 |
tree |
- |
e65821f8fc7f41e65307fc940b6c193a01b3f708 |
selinux |
100755 |
blob |
204 |
55b754e1e2e5a70c65e2612fdb8cdec2f78e4e60 |
spell_check.sh |
040000 |
tree |
- |
a4486e3a060cff59eb970cf8dc753aff569388fe |
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