On Wed, 2004-11-03 at 19:40, Cameron, Thomas wrote: > > -----Original Message----- > > From: rpm-list-bounces@xxxxxxxxxx > > [mailto:rpm-list-bounces@xxxxxxxxxx]On > > Behalf Of Panu Matilainen > > Sent: Wednesday, November 03, 2004 11:31 AM > > To: RPM Package Manager > > Subject: Re: Cleaning out BUILD after a successful package build > > > > > > On Wed, 2004-11-03 at 19:21, Alexander Dalloz wrote: > > > Am Mi, den 03.11.2004 schrieb Cameron, Thomas um 17:37: > > > > > > > I notice that after I run rpmbuild on package foo-1.0 > > (for instance) which I've built, I have the BUILD/foo-1.0 > > directory left over. > > > > > > > > What do I need to add to the spec file to make the > > rpmbuild process delete that directory afterwards? > > > > > > %clean > > > rm -rf $RPM_BUILD_ROOT > > > > That's a different thing, Thomas was talking about cleaning the > > directory where the thing is *compiled*, not build *root*. > > "rpmbuild -bb --clean foo.spec" will clean out the BUILD/foo-1.0 after > > the build completes. > > > > - Panu - > > I know about --clean and about the %clean section of the spec file, > those are not quite what I was looking for... > > I've rebuilt source RPMs (like Dag's, IIRC) that after a successful > rebuild the BUILD directory is automagically cleaned out. Maybe it's > a difference between rpmbuild --rebuild [package] versus rpmbuild -ba > [specfile]? rpmbuild --rebuild always cleans up whereas rpmbuild -ba doesn't, you need --clean to get the same effect there. - Panu - _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list