From 2c8ae8fcbdf49da36403f069d141a1b1d438c941 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Feb 28 2013 20:33:24 +0000 Subject: Drop the sysv -> systemd init script conversion The pcsc-lite systemd support was introduced in F16 and we are now at F19. Drop the sysv -> systemd conversion; direct F15 -> F19 upgrades are unsupported. --- diff --git a/pcsc-lite.spec b/pcsc-lite.spec index c249fff..1434c4b 100644 --- a/pcsc-lite.spec +++ b/pcsc-lite.spec @@ -15,7 +15,6 @@ BuildRequires: graphviz BuildRequires: systemd-devel BuildRequires: systemd-units -Requires(post): systemd-sysv Requires(post): systemd-units Requires(preun): systemd-units Requires(postun): systemd-units @@ -109,24 +108,6 @@ if [ $1 -ge 1 ] ; then /bin/systemctl try-restart pcscd.service >/dev/null 2>&1 || : fi -%triggerun -- pcsc-lite < 1.7.4-2 -# Save the current service runlevel info -# User must manually run systemd-sysv-convert --apply pcscd -# to migrate them to systemd targets -%{_bindir}/systemd-sysv-convert --save pcscd >/dev/null 2>&1 ||: - -# Enable pcscd socket activation -/bin/systemctl enable pcscd.socket >/dev/null 2>&1 || : - -# Run these because the SysV package being removed won't do them -/sbin/chkconfig --del pcscd >/dev/null 2>&1 || : - -# Restart the service if it's already running -if /bin/systemctl is-active pcscd.service >/dev/null 2>&1 ; then - /bin/systemctl stop pcscd.service >/dev/null 2>&1 ||: - /bin/systemctl start pcscd.socket pcscd.service >/dev/null 2>&1 ||: -fi - %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig