-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 15 January 2003 03:44 pm, Todd A. Jacobs wrote: > Given the following spec file: > > http://www.codegnome.org/spec/scid-3.4.beta5.spec > > I do an "rpmbuild -ba scid-3.4.beta5.spec" with a defined built root in > he /tmp directory. However, after the packages are successfully built > and the clean macro removes the build root, there's still a set of > files in /usr/src/redhat/BUILD.
If the files are in the above location, your building packages as root. You really shouldn't do that. For a simple script to set up an rpm build environment in your unprivledged /home/user directory, look here: http://www.tuxfan.homeip.net:8080/hack.html > I assume that's the files being packaged for the binary RPM, but I'm > not sure. Am I missing a step here? Why doesn't the %clean macro remove > this stuff? You are dealing with two different defines here. %_buildroot (RPM_BUILD_ROOT) defines where the files get placed during the %install section of the spec file. Most packages remove this in the %clean portion of the build. %_builddir (RPM_BUILD_DIR) is where the source code is expanded, patched, configured and, compiled prior to installation in %_buildroot. Many (most?) packages do not remove the %_builddir as part of the post build cleanup. I suppose you could add something like: 'rm -rf $RPM_BUILD_DIR/%{name}-%{version}' to the %clean portion of the spec file. - -- - -Michael pgp key: http://www.tuxfan.homeip.net:8080/gpgkey.txt Red Hat Linux 7.{2,3}|8.0 in 8M of RAM: http://www.rule-project.org/ - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+Jhg5n/07WoAb/SsRAn2EAKCjYmR2qnnMJkmEf+ov03ZHsZCs3gCgnbsl rbD6+B4/wr8NCNKUjvey8jQ= =WZdk -----END PGP SIGNATURE----- -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list