From 4bbea4b58e81db97763cf2af024e6f2615cf86b4df5d94a5fcdad92bcb1bf7b9 Mon Sep 17 00:00:00 2001 From: Ruediger Oertel Date: Wed, 24 Feb 2016 19:34:51 +0000 Subject: [PATCH] - do not use systemd macros for non-systemd distributions OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ipmitool?expand=0&rev=34 --- ipmitool.changes | 5 +++++ ipmitool.spec | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ipmitool.changes b/ipmitool.changes index 47136ab..aee43b2 100644 --- a/ipmitool.changes +++ b/ipmitool.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 24 20:34:19 CET 2016 - ro@suse.de + +- do not use systemd macros for non-systemd distributions + ------------------------------------------------------------------- Wed Oct 14 16:02:43 UTC 2015 - trenn@suse.de diff --git a/ipmitool.spec b/ipmitool.spec index ec35e4f..7f5b9b1 100644 --- a/ipmitool.spec +++ b/ipmitool.spec @@ -107,6 +107,7 @@ ln -sf %_sbindir/service ${RPM_BUILD_ROOT}%{_sbindir}/rcbmc-snmp-proxy %clean rm -rf $RPM_BUILD_ROOT +%if 0%{?suse_version} >= 1210 %pre %service_add_pre bmc-snmp-proxy.service exchange-bmc-os-info.service ipmievd.service @@ -118,6 +119,7 @@ rm -rf $RPM_BUILD_ROOT %postun %service_del_postun bmc-snmp-proxy.service exchange-bmc-os-info.service ipmievd.service +%endif %files %defattr(644,root,root)