I agree that %prep is needed to do this. But there is another thing to think
about:
Right now BuildRequires are the Requires of the SRPM. So the procedure is to
build the SRPM and then use its Requires to set up the build root. So you do
not have any Requires for building the SRPM. And indeed the SRPM can be build
without any additional tools and libraries.
But for determining the dynamic BuildRequires (or even just running %prep) you
will need additional tools. So the question is where do you get the Requires
from for these.
So you probably need to do:
- Build SRPM
- See that it contains dynamic BuildRequieres
- Rebuild SRPM with BuildRequires(pre) installed running %prep and the dynamic
Buildrequires scripts
- Setup the build root with the SRPM and build the binary rpms
--
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/104#issuecomment-432966176
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint