In the meanwhile, here's a trick how you can fish out this information from 
existing rpmbuild, old and new, without even unpacking sources:

> rpmbuild -bc --noprep --define '__spec_build_pre echo builddir=%{_builddir}; 
> exit 0' rpm.spec |awk /^builddir/

This gives you the toplevel directory where setup will unpack the sources, ie 
what the existing test systems are build around, ie: 
- in rpm < 4.19 it's ~/rpmbuild/BUILD/
- in rpm >= 4.20 it's *currently* something like (please do not hardcode this!) 
~/rpmbuild/BUILD/<name>-<version>-build


-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3147#issuecomment-2154192419
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/3147/2154192...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to