From f7a6f76965bd7d54aee75fe3ea975af5c976de17 Mon Sep 17 00:00:00 2001 From: Dmitry Butskoy Date: Mon, 24 Sep 2012 18:16:21 +0400 Subject: [PATCH] new systemd-rpm macros drop sysv migration stuff --- zvbi.spec | 39 ++++++++++----------------------------- 1 file changed, 10 insertions(+), 29 deletions(-) diff --git a/zvbi.spec b/zvbi.spec index ce37927..ab55739 100644 --- a/zvbi.spec +++ b/zvbi.spec @@ -3,7 +3,7 @@ Name: zvbi Version: 0.2.33 -Release: 13%{?dist} +Release: 14%{?dist} Summary: Raw VBI, Teletext and Closed Caption decoding library Group: System Environment/Libraries # See NEWS for a full breakdown of licensing. @@ -22,7 +22,6 @@ BuildRequires: libICE-devel BuildRequires: xorg-x11-font-utils BuildRequires: systemd-units -Requires(post): systemd-sysv Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units @@ -136,38 +135,16 @@ ln -sf %{fontdir} %{buildroot}%{catalogue}/%{name} %post /sbin/ldconfig - -if [ $1 = 1 ]; then - /bin/systemctl daemon-reload >/dev/null 2>&1 || : -fi - - -%postun -/sbin/ldconfig - -/bin/systemctl daemon-reload >/dev/null 2>&1 || : -if [ $1 != 0 ]; then - /bin/systemctl try-restart zvbid.service >/dev/null 2>&1 || : -fi +%systemd_post zvbid.service %preun +%systemd_preun zvbid.service -if [ $1 = 0 ]; then - /bin/systemctl --no-reload disable zvbid.service >/dev/null 2>&1 || : - /bin/systemctl stop zvbid.service >/dev/null 2>&1 || : -fi - -%triggerun -- zvbi < 0.2.33-9 -# Save the current service runlevel info -# User must manually run systemd-sysv-convert --apply zvbid -# to migrate them to systemd targets -/usr/bin/systemd-sysv-convert --save zvbid >/dev/null 2>&1 ||: - -# Run these because the SysV package being removed won't do them -/sbin/chkconfig --del zvbid >/dev/null 2>&1 || : -/bin/systemctl try-restart zvbid.service >/dev/null 2>&1 || : +%postun +/sbin/ldconfig +%systemd_postun_with_restart zvbid.service %post fonts @@ -208,6 +185,10 @@ fi %changelog +* Mon Sep 24 2012 Dmitry Butskoy - 0.2.33-14 +- new systemd-rpm macros (#850382) +- drop sysv triggerun migration + * Sun Jul 22 2012 Fedora Release Engineering - 0.2.33-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild