Red Hat Bugzilla – Bug 850265
Introduce new systemd-rpm macros in pcsc-lite-ccid spec file
Last modified: 2013-02-28 15:52:33 EST
Fedora 18 changes the way how to work with services in spec files. It introduces new macros - %systemd_post, %systemd_preun and %systemd_postun; which replace scriptlets from Fedora 17 and older (see https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd, https://bugzilla.redhat.com/show_bug.cgi?id=850016).
I don't think these are suitable for pcsc-lite-ccid.
In the ccid package, we only provide a plugin that a daemon from another package uses, and we need to restart that daemon on package upgrades / uninstall. There don't appear to be suitable rpm macros for this.