Closed digimer closed 3 months ago
You should be able to find examples in other spec files to show how this is handled, like potentially apache.
Should follow the systemd section of Fedora Packaging Guidelines: https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_systemd
rpm --showrc
to display values currently set in rpmrc
and macros
configs. Can use this to identify what macros are available.rpm --eval "%<macro> args..."
to display the filled macro, i.e., rpm --eval "%systemd_post anvil-daemon.service"
will generate the resulting script that would be executed
There's a rpm macros to handles for this.