[Rpm-maint] [rpm-software-management/rpm] RFE: export BuildRequires as a macro (#1753)

mikhailnov notifications at github.com
Wed Aug 11 11:11:08 UTC 2021


I want to build subpackages `%{name}-build-deps` and put them into a separate repository like -debuginfo subpackages.

Such package would depend from what is BuildRequires in the spec/SRPM. The purpose is to work with build-deps repository using `dnf reqpoquery --whatrerquires` dnf `dnf repoclosure`.

Currently I build such packages with a script: https://abf.io/import/rpm-mk-build-deps/blob/rosa2021.1/rpm-mk-build-deps.sh

I tried to do like `%_debuginfo_template`:

```
%package build-deps
Summary: Build dependencies of %{name}
Group: Development/Debug
AutoReq: 0
AutoProv: 1
Requires: %{buildrequires}
%description build-deps
Build dependencies of %{name}
%files build-deps
```

but macro `%buildrequires` does not exist, so I cannot get BuildRequires from inside the same spec.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1753
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210811/25bc6f7d/attachment.html>


More information about the Rpm-maint mailing list