how to keep rpmbuild directory clean

Jos Vos jos at xos.nl
Fri Jun 17 19:17:51 UTC 2011


On Fri, Jun 17, 2011 at 09:03:53PM +0200, Maxim Burgerhout wrote:

> 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
> head):
> 
> %_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

Isn't (only) setting %_topdir to /home/maxim/rpmbuild/%name enough
for this?  I never tested this trick, but if the rest works, just
setting %_topdir that way should be sufficient too.

-- 
--    Jos Vos <jos at xos.nl>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204


More information about the devel mailing list