Description of problem: After an update to cups-1.6.1-2.fc19 its postinstall scriptlet starts like that: if [ $1 -eq 1 ] ; then # Initial installation /usr/bin/systemctl preset >/dev/null 2>&1 || : fi cups.path cups.socket cups.service ..... As one should expect this fails with "line 6: cups.path: command not found". Some spec macros got "lost"? Version-Release number of selected component (if applicable): cups-1.6.1-2.fc19
Does any systemd guru know what's wrong with the following statement from cups.spec ? %post %{systemd_post} %{name}.path %{name}.socket %{name}.service
Try without the curly brackets around the macro name, like this: %post %systemd_post %{name}.path %{name}.socket %{name}.service In RPM the two forms expand differently.
I added a note to the FPC ticket that introduced the current (wrong) Packaging Guideline for systemd scriptlets: https://fedorahosted.org/fpc/ticket/190#comment:17
And the Guidelines were fixed within two minutes, thanks to Spot!
Yes, that's it. Thanks Michal !