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 |