how to keep rpmbuild directory clean

Maxim Burgerhout maxim at
Fri Jun 17 19:03:53 UTC 2011

You can embed rpm macros, like %name, in your .rpmmacros file. That
way, you can create a directory per package containing SPECS, RPMS,
SRPMS, etc. directories. I use it like this (out of the back of my

%_topdir /home/maxim/rpmbuild
%_specdir /home/maxim/rpmbuild/%name/SPECS
%_rpmdir /home/maxim/rpmbuild/%name/RPMS
%_srcrpmdir /home/maxim/rpmbuild/%name/SRPMS
%_sourcedir /home/maxim/rpmbuild/%name/SOURCES


More information about the devel mailing list