]> granicus.if.org Git - icinga2/commitdiff
Disable selinux rpm build for el5/6 for now
authorMichael Friedrich <michael.friedrich@netways.de>
Tue, 2 Jun 2015 11:32:48 +0000 (13:32 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Tue, 2 Jun 2015 11:32:48 +0000 (13:32 +0200)
refs #8332

icinga2.spec

index b26ec8c1cd8d811fbd44a6f407b1bc62b0e54bba..32dedb5cfd0f913fa07313ae8635d5728225bccd 100644 (file)
@@ -189,7 +189,7 @@ Conflicts:    icinga-gui-config
 Icinga 1.x Classic UI Standalone configuration with locations
 for Icinga 2.
 
-%if "%{_vendor}" == "redhat"
+%if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
 %global selinux_variants mls targeted
 %{!?_selinux_policy_version: %global _selinux_policy_version %(sed -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp 2>/dev/null)}
 %global modulename %{name}
@@ -262,7 +262,7 @@ cmake $CMAKE_OPTS -DCMAKE_C_FLAGS:STRING="%{optflags} %{?march_flag}" -DCMAKE_CX
 
 make %{?_smp_mflags}
 
-%if "%{_vendor}" == "redhat"
+%if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
 cd tools/selinux
 for selinuxvariant in %{selinux_variants}
 do
@@ -296,7 +296,7 @@ mkdir -p "%{buildroot}%{_localstatedir}/adm/fillup-templates/"
 mv "%{buildroot}%{_sysconfdir}/sysconfig/%{name}" "%{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}"
 %endif
 
-%if "%{_vendor}" == "redhat"
+%if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
 cd tools/selinux
 for selinuxvariant in %{selinux_variants}
 do
@@ -488,7 +488,7 @@ fi
 
 exit 0
 
-%if "%{_vendor}" == "redhat"
+%if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
 %post selinux
 for selinuxvariant in %{selinux_variants}
 do
@@ -610,7 +610,7 @@ fi
 %config(noreplace) %{apacheconfdir}/icinga.conf
 %config(noreplace) %attr(0640,root,%{apachegroup}) %{icingaclassicconfdir}/passwd
 
-%if "%{_vendor}" == "redhat"
+%if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
 %files selinux
 %defattr(-,root,root,0755)
 %doc tools/selinux/*