From c4fa73cdebeb084cc4ebd7020d298a6eeee5b328 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 13 Dec 2016 15:49:33 +0100 Subject: [PATCH] RPM: Fix specfile --- icingaweb2.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/icingaweb2.spec b/icingaweb2.spec index 9d7d9ac6e..3fe08e433 100644 --- a/icingaweb2.spec +++ b/icingaweb2.spec @@ -105,7 +105,7 @@ Requires: php-Icinga = %{version}-%{release} Icinga CLI -%if 0%{selinux} +%if 0%{?selinux} %package selinux Summary: SELinux policy for Icinga Web 2 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 %setup -q -%if 0%{selinux} +%if 0%{?selinux} mkdir selinux cp -p packages/selinux/icingaweb2.{fc,if,te} selinux %endif %build -%if 0%{selinux} +%if 0%{?selinux} cd selinux for selinuxvariant in %{selinux_variants} do @@ -227,7 +227,7 @@ cp -pv packages/files/bin/icingacli %{buildroot}/%{bindir} cp -pv packages/files/public/index.php %{buildroot}/%{basedir}/public cp -prv etc/schema %{buildroot}/%{docsdir} cp -prv packages/files/config/modules/{setup,translation} %{buildroot}/%{configdir}/modules -%if 0%{selinux} +%if 0%{?selinux} cd selinux for selinuxvariant in %{selinux_variants} do @@ -295,7 +295,7 @@ exit 0 %attr(0755,root,root) %{bindir}/icingacli -%if 0%{selinux} +%if 0%{?selinux} %post selinux for selinuxvariant in %{selinux_variants} do