mojohaus / rpm-maven-plugin

http://www.mojohaus.org/rpm-maven-plugin/
Other
56 stars 48 forks source link

How do you enable macros? #77

Open voor opened 7 years ago

voor commented 7 years ago

I wanted to follow the example for scriptlets located here: https://fedoraproject.org/wiki/Packaging:Scriptlets

That requires you to add:

%{?systemd_requires}
BuildRequires: systemd

To the RPM spec.

It guess this becomes a two part question, how do you add BuildRequires and how do you then add an arbitrary macro like %{?systemd_requires}?

JeremyVV commented 6 years ago

I am hoping this gets added soon too.

sisivy commented 6 years ago

any update on this issue? When do you plan to add it? @voor did you manage it to do it in another way?

voor commented 6 years ago

Yes, (although I don't work at that company anymore) I no longer incorporated building the RPMs into the Maven build cycle, and instead would fire off a secondary build for the RPMs afterwards. Gave me the full flexibility configuring all RPM build options.