All- With rpm 4.4.7 and later, rpm ignores the %clean in the spec file and instead uses a set of macros to handle post-build cleanup of the build system. This was discussed on the rpm devel list and is documented in the CHANGES, and the new functionality has been working fine. What I'm after is configuring my personal/system build default so that - the BuildRoot is NOT removed after a successful rpmbuild - the Build subdirectory (%_topdir/BUILD/foo-1.0) IS removed after a successful rpmbuild, but left on an unsuccessful build. So, will changing %__spec_clean_body %{__rm} -rf '%{buildroot}'\ %{nil} to %__spec_clean_body %{__rm} -rf '%{buildsubdir}'\ %{nil} or %__spec_clean_body test -d '%{buildsubdir}' && %{__rm} -rf '%{buildsubdir}'\ %{nil} accomplish all of what I'm after? Is it "safe" to use %{buildsubdir} in %__spec_clean_body -- will it be filled in? Also, are these macros only executed on a successful rpmbuild? I could just try it, but the possibility for havok after an errant rm -rf has me hesitating. Tim -- Tim Mooney mooney@xxxxxxxxxxxxxxxxxxxxxxxxx Information Technology Services (701) 231-1076 (Voice) Room 242-J6, IACC Building (701) 231-8541 (Fax) North Dakota State University, Fargo, ND 58105-5164 _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list