Description of problem: There is no %clean/%build section in my .spec files. but rpmbuild deleted my files in the BUILDROOT when I used "rpmbuild -bb". Version-Release number of selected component (if applicable): redhat-rpm-config.noarch rpm.i686 4.8.0-14.fc13 @anaconda-InstallationRepo-201005130056.i386 rpm-build.i686 4.8.0-14.fc13 @anaconda-InstallationRepo-201005130056.i386 rpm-devel.i686 4.8.0-14.fc13 @anaconda-InstallationRepo-201005130056.i386 rpm-libs.i686 4.8.0-14.fc13 @anaconda-InstallationRepo-201005130056.i386 rpm-python.i686 4.8.0-14.fc13 @anaconda-InstallationRepo-201005130056.i386 rpmdevtools.noarch 7.8-1.fc13 @anaconda-InstallationRepo-201005130056.i386 Steps to Reproduce: 1.rpmbuild a binary RPM. (BIN files has build already, so use "-bb" switch) Actual results: All of the files packaged has been deleted. Expected results: Should not delete any files, when NO %clean/%build section in my .spec file.
Yes. BUILDROOT is now configured and managed as a build system element, not a per-package option. Running "rpmbuild -bi foo.spec" will build and install (but not remove) the files in the buildroot.
This is indeed the intended behavior and not a bug.
Thanks,I got a way to KEEP the files.:) So different between 4.8 and 4.6...