]> granicus.if.org Git - icinga2/commitdiff
Unify SUSE distribution checks in spec file
authorTim Hardeck <thardeck@suse.de>
Thu, 14 Aug 2014 15:28:06 +0000 (17:28 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Sun, 17 Aug 2014 09:38:48 +0000 (11:38 +0200)
refs #6919

icinga2.spec

index aaa1a326af7b63e083999a8850c1c3280a72dbb4..366985b2a86594ff811806ff8153e2ff189d5156 100644 (file)
@@ -274,7 +274,7 @@ exit 0
 # all restart/feature actions belong to icinga2-bin
 %post bin
 # suse
-%if 0%{?suse_version}
+%if "%{_vendor}" == "suse"
 %if 0%{?suse_version} >= 1310
 %set_permissions /var/run/icinga2/cmd
 %endif
@@ -312,7 +312,7 @@ exit 0
 
 %postun bin
 # suse
-%if 0%{?suse_version}
+%if "%{_vendor}" == "suse"
 %if 0%{?using_systemd}
   %service_del_postun %{name}.service
 %else
@@ -343,7 +343,7 @@ exit 0
 
 %preun bin
 # suse
-%if 0%{?suse_version}
+%if "%{_vendor}" == "suse"
 
 %if 0%{?use_systemd}
   %service_del_preun %{name}.service