xaizek / rocketgit (License: AGPLv3+) (since 2018-12-09)
Light and fast Git hosting solution suitable to serve both as a hub or as a personal code storage with its tickets, pull requests, API and much more.
Commit f39aea08f7b63aae84b3bc4f68bc8995f06e52e9

.spec file fixes: use %{_unitdir} instead of @USR@/lib and systemd dependency

Author: Catalin(ux) M. BOIE
Author date (UTC): 2016-09-21 18:45
Committer: Catalin(ux) M. BOIE
Commit date (UTC): 2016-09-21 19:02
Tree: fee749cd9c3e17fd5c8967a08a4bcf6dc244fbe8
Parents: d2d4920111d02c35944e15da642728a4b695c9ff
File Lines added Lines deleted
rocketgit.spec.in 8 2

File rocketgit.spec.in changed (mode: 100644) (index e60363b..074e596)
2 2 %global selinux_variants %([ -z "%{selinux_types}" ] && echo mls strict targeted || echo %{selinux_types}) %global selinux_variants %([ -z "%{selinux_types}" ] && echo mls strict targeted || echo %{selinux_types})
3 3
4 4 %global selinux_policyver 0.0.0 %global selinux_policyver 0.0.0
5 %{?systemd_requires}
5 6
6 7 Summary: Light and fast Git hosting solution Summary: Light and fast Git hosting solution
7 8 Name: @PRJ@ Name: @PRJ@
 
... ... Requires: git, cronie, postgresql-server
18 19 Requires: util-linux Requires: util-linux
19 20 # SELinux stuff # SELinux stuff
20 21 # https://fedoraproject.org/wiki/SELinux_Policy_Modules_Packaging_Draft?rd=PackagingDrafts/SELinux/PolicyModules # https://fedoraproject.org/wiki/SELinux_Policy_Modules_Packaging_Draft?rd=PackagingDrafts/SELinux/PolicyModules
21 BuildRequires: checkpolicy, selinux-policy-devel, hardlink
22 BuildRequires: checkpolicy, selinux-policy-devel, hardlink, systemd
22 23 # Needed for Fedora <= 19 # Needed for Fedora <= 19
23 24 %if "%{selinux_policyver}" != "" %if "%{selinux_policyver}" != ""
24 25 Requires: selinux-policy >= %{selinux_policyver} Requires: selinux-policy >= %{selinux_policyver}
 
... ... if [ $1 -ne 0 ]; then
51 52 /sbin/service xinetd reload &>/dev/null || : /sbin/service xinetd reload &>/dev/null || :
52 53 /sbin/service httpd reload &>/dev/null || : /sbin/service httpd reload &>/dev/null || :
53 54 fi fi
55 %systemd_post @PRJ@-fpm.service
56
57 %preun
58 %systemd_preun @PRJ@-fpm.service
54 59
55 60 %postun %postun
56 61 if [ $1 = 0 ]; then if [ $1 = 0 ]; then
 
... ... if [ $1 = 0 ]; then
60 65 done done
61 66 /sbin/fixfiles -R @PRJ@ restore || : /sbin/fixfiles -R @PRJ@ restore || :
62 67 fi fi
68 %systemd_postun @PRJ@-fpm.service
63 69
64 70 %prep %prep
65 71 %setup -q %setup -q
 
... ... rm -rf ${RPM_BUILD_ROOT}
101 107 %attr(0700,root,root) @USR_SBIN@/* %attr(0700,root,root) @USR_SBIN@/*
102 108 @USR_SHARE@/@PRJ@/* @USR_SHARE@/@PRJ@/*
103 109 @USR_SHARE@/selinux/*/@PRJ@.pp @USR_SHARE@/selinux/*/@PRJ@.pp
104 @USR@/lib/systemd/system/*
110 %{_unitdir}/*.service
105 111
106 112 %changelog %changelog
107 113 * Wed Oct 17 2012 Catalin(ux) M. BOIE <catab at embedromix dot ro> 0.10 * Wed Oct 17 2012 Catalin(ux) M. BOIE <catab at embedromix dot ro> 0.10
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://code.reversed.top/user/xaizek/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master