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.