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).
Created attachment 613682 [details] Patch replaces scriptlets with new systemd macros
Are the macros available across all F17+ branches? I don't want the spec file to diverge.
They are available in F18+, not in F17. Would you prefer conditional usage of macros only for F18+ and RHEL7+?
Commit: http://pkgs.fedoraproject.org/gitweb/?p=httpd.git;a=commitdiff;h=2953eaec80a48cf302bcc656fa3d7147f6e98907 Package: httpd-2.4.3-7.fc19 Build: https://koji.fedoraproject.org/koji/buildinfo?buildID=357539
Commit: http://pkgs.fedoraproject.org/gitweb/?p=httpd.git;a=commitdiff;h=e3b60d787d13a6a27a0011ad7df984c1bc1f5692 Package: httpd-2.4.3-8.fc19 Build: https://koji.fedoraproject.org/koji/buildinfo?buildID=357550
In fact we don't need to merge this spec file to pre-F18, so this is fine; thanks to Jan Kaluza. This is merged to f18/master.