The Mugshot client daemon does this itself by installing a file called
"version" with the package version, and if said file changes it restarts
itself.
The version file doesn't have the RPM release in it, but presumably could.
An advantage of this approach is that it doesn't require magic in the
spec file, though presumably it has downsides too. One downside is that
the restart can be a bit too early (before the upgrade is complete).
Havoc
--
Fedora-maintainers mailing list
Fedora-maintainers@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-maintainers
--
Fedora-maintainers-readonly mailing list
Fedora-maintainers-readonly@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-maintainers-readonly