[Rpm-maint] [rpm-software-management/rpm] Add a `%buildoptions` section (Discussion #3543)

mkoncek notifications at github.com
Tue Jan 28 11:46:12 UTC 2025


Following on this feature: https://rpm-software-management.github.io/rpm/manual/buildsystem.html
We would like to adopt it for the Fedora Java stack. This means replacing a lot imperative code like:
```
%pom_remove_dep ...
rm .../Test.java
%mvn_build -- ...
```
with `%BuildOption`-s.

However in practice what it would mean for us is that it would now look like:
```
BuildOption: without_dep ...
BuildOption: without_test ...
BuildOption: with_mvn_args ...
```
And I say that this is hardly an improvement when it comes to readability.
I imagine there could be a `.spec` section `%buildoptions` where I could write line-separated options, like:
```
%buildoptions
without_dep ...
without_test ...
with_mvn_args ...
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/3543
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/repo-discussions/3543 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250128/c1339450/attachment.htm>


More information about the Rpm-maint mailing list