From: Vincent Bernat Date: Sun, 27 Dec 2015 17:34:11 +0000 (+0100) Subject: redhat: don't use %elseif X-Git-Tag: 0.8.0~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=279bfd63dc44ea97000583d9c9ad15098fd8b688;p=thirdparty%2Flldpd.git redhat: don't use %elseif For some reason, it just doesn't work. --- diff --git a/redhat/lldpd.spec b/redhat/lldpd.spec index 4b00fb92..73e8127e 100644 --- a/redhat/lldpd.spec +++ b/redhat/lldpd.spec @@ -235,7 +235,8 @@ if getent passwd %lldpd_user >/dev/null 2>&1 ; then : ; else \ %preun %stop_on_removal lldpd -%elseif %{without systemd} +%else +%if %{without systemd} # Service management for Redhat/CentOS without systemd %post @@ -266,6 +267,7 @@ fi %systemd_postun_with_restart lldpd.service /sbin/ldconfig +%endif %endif %clean