Open bryanlarsen opened 4 months ago
You get the error because you enabled both the macro expansion and the queryformat expansion. Use only the 0b001
flag instead.
When you expand the macro (try rpm --eval '%systemd_post foo.service'
in terminal to see the expanded value) you get square brackets in it which then get expanded as a queryformat.
@bryanlarsen I believe that korbel's answer resolved the issue. Could you please try it?
I'm trying and failing to follow the instructions on https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#Systemd .
Here's what I have:
which results in:
Perhaps the problem is that I'm missing
BuildRequires: systemd-rpm-macros
, but there doesn't appear to be a way to add this with cargo-generate-rpm?