Hello,
How can I make a rpmbuild and keep the compiled files? BUILD and BUIDROOT are erased
=========================================================================== Patrick DUPRÉ | | email: pdupre@gmx.com Laboratoire interdisciplinaire Carnot de Bourgogne 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE Tel: +33 (0)380395988 ===========================================================================
On Sun, 9 Jun 2019 08:38:05 -0700, Gordon Messmer wrote:
On 6/9/19 7:29 AM, Patrick Dupre wrote:
How can I make a rpmbuild and keep the compiled files?
Have you tried "rpmbuild --noclean"?
Alternatively, end the building after the %build stage:
rpmbuild -bc foo.spec
And you will find the compiled files in the build dir. If you want to keep the installed files, use:
rpmbuild -bi foo.spec
Then find that the buildroot directory has been installed to.
Also notice the --short-circuit commands covered in the manual page in case you want to modify individual spec file sections and test the changes quickly.