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).
Is this still valid for f20? Can you do a patch against the fedora rawhide branch please?
Created attachment 836283 [details] Replace systemctl call with systemd rpm macros Yes, it's still valid. Patch is attached. Regards, Vaclav
Created attachment 836288 [details] Added packagekit.spec Hmm...I've noticed you ship another service file which is enabled in preset file, so I added it to the patch.
Created attachment 836306 [details] Replace scriptlets, add packagekit.service, fix paths Ok, one more thing - I've noticed you use hardcoded paths (/usr/lib/systemd/system) for service files so I edited them to use rpm macros (%{_unitdir}).
This message is a reminder that Fedora 18 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 18. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '18'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 18's end of life. Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 18 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 18's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Can you push the patch to PackageKit in rawhide please. Thanks.
Created attachment 846188 [details] Replace scriptlets, add packagekit.service, fix paths Hi, sadly, I can't. I don't have permissions commit to PackageKit repo. Here is new patch which should fit on current master.
Pushed, thanks.