RPM: Fix specfile
This commit is contained in:
parent
a8f53ab5c2
commit
c4fa73cdeb
|
@ -105,7 +105,7 @@ Requires: php-Icinga = %{version}-%{release}
|
||||||
Icinga CLI
|
Icinga CLI
|
||||||
|
|
||||||
|
|
||||||
%if 0%{selinux}
|
%if 0%{?selinux}
|
||||||
%package selinux
|
%package selinux
|
||||||
Summary: SELinux policy for Icinga Web 2
|
Summary: SELinux policy for Icinga Web 2
|
||||||
BuildRequires: checkpolicy, selinux-policy-devel, /usr/share/selinux/devel/policyhelp, hardlink
|
BuildRequires: checkpolicy, selinux-policy-devel, /usr/share/selinux/devel/policyhelp, hardlink
|
||||||
|
@ -196,13 +196,13 @@ Icinga Web 2's fork of Zend Framework 1
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%if 0%{selinux}
|
%if 0%{?selinux}
|
||||||
mkdir selinux
|
mkdir selinux
|
||||||
cp -p packages/selinux/icingaweb2.{fc,if,te} selinux
|
cp -p packages/selinux/icingaweb2.{fc,if,te} selinux
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{selinux}
|
%if 0%{?selinux}
|
||||||
cd selinux
|
cd selinux
|
||||||
for selinuxvariant in %{selinux_variants}
|
for selinuxvariant in %{selinux_variants}
|
||||||
do
|
do
|
||||||
|
@ -227,7 +227,7 @@ cp -pv packages/files/bin/icingacli %{buildroot}/%{bindir}
|
||||||
cp -pv packages/files/public/index.php %{buildroot}/%{basedir}/public
|
cp -pv packages/files/public/index.php %{buildroot}/%{basedir}/public
|
||||||
cp -prv etc/schema %{buildroot}/%{docsdir}
|
cp -prv etc/schema %{buildroot}/%{docsdir}
|
||||||
cp -prv packages/files/config/modules/{setup,translation} %{buildroot}/%{configdir}/modules
|
cp -prv packages/files/config/modules/{setup,translation} %{buildroot}/%{configdir}/modules
|
||||||
%if 0%{selinux}
|
%if 0%{?selinux}
|
||||||
cd selinux
|
cd selinux
|
||||||
for selinuxvariant in %{selinux_variants}
|
for selinuxvariant in %{selinux_variants}
|
||||||
do
|
do
|
||||||
|
@ -295,7 +295,7 @@ exit 0
|
||||||
%attr(0755,root,root) %{bindir}/icingacli
|
%attr(0755,root,root) %{bindir}/icingacli
|
||||||
|
|
||||||
|
|
||||||
%if 0%{selinux}
|
%if 0%{?selinux}
|
||||||
%post selinux
|
%post selinux
|
||||||
for selinuxvariant in %{selinux_variants}
|
for selinuxvariant in %{selinux_variants}
|
||||||
do
|
do
|
||||||
|
|
Loading…
Reference in New Issue