I am building an RPM with rpmbuild from a spec file in a directory foo
but whenever I run rpmbuild it creates the rpm in my home directory at ~/rpmbuild/RPMS
.
How can I change the destination of the RPM and get the whole rpmbuild directory to be in foo
? I tried setting Buildroot
to foo
but that just changed where the build built temporary files, not the final rpm. Any help would be appreciated. Thanks!