[Rpm-maint] [rpm-software-management/rpm] RFE: Add a %buildrequires section as an alternative to lots of BuildRequires: headers (Discussion #3549)
Bernhard Rosenkraenzer
notifications at github.com
Wed Jan 29 22:35:58 UTC 2025
With rpm 4.20, we get `%sourcelist` and `%patchlist` to simplify the headers and make the spec file shorter and cleaner.
It would be equally useful, for the same reasons, to be able to replace
```
BuildRequires: pkgconfig(libxyz)
BuildRequires: pkgconfig(anotherlib) pkgconfig(yetanotherlib)
BuildRequires: cmake(andAnotherOne)
BuildRequires: whatever-devel >= 1.2-3
```
with the shorter
```
%buildrequires
pkgconfig(libxyz)
pkgconfig(anotherlib)
pkgconfig(yetanotherlib)
cmake(andAnotherOne)
whatever-devel >= 1.2-3
```
The same goes for runtime dependencies (but IMO that's less important, given most runtime dependencies are detected automatically anyway and they don't need huge lists in the spec).
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/3549
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/repo-discussions/3549 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250129/0a5eccb5/attachment.htm>
More information about the Rpm-maint
mailing list