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