On Tue, 2006-07-25 at 16:46 +0200, Axel Thimm wrote: > On Tue, Jul 25, 2006 at 12:07:20PM +0200, Matthias Saou wrote: > How about the following patch (yet untested) to redhat-rpm-config in > devel and thus FC6/RHEL5? It would eliminate some issues and allow for > better planning: This would need quite an amount of testing. > diff -rud redhat-rpm-config-8.0.43.org/macros redhat-rpm-config-8.0.43/macros > --- redhat-rpm-config-8.0.43.org/macros 2005-08-17 02:27:33.000000000 +0200 > +++ redhat-rpm-config-8.0.43/macros 2006-07-25 16:38:53.000000000 +0200 > @@ -156,3 +156,18 @@ > > # Disable lookups > %_hkp_keyserver %{nil} > + > +#============================================================================== > +# These are the default values that can be overridden by other > +# (e.g. per-platform, per-system, per-packager, per-package) macros. > +# > +# Path to top of build area. > +%_topdir %(test `%{__id_u}` = 0 && echo %{_usrsrc}/redhat || echo $HOME/rpmbuild) > + > +# Directory where temporary files can be created. > +%_tmppath %(test `%{__id_u}` = 0 && echo %{_var}/tmp || echo $HOME/rpmbuild/tmp > + > +# Configurable build root path, same as BuildRoot: in a specfile. > +# (Note: the configured macro value will override the spec file value). > + > +%buildroot %{_tmppath}/%{name}-%{version}-%{release} - Doesn't work in your several %arch's case. - Do %_topdir/%_tmppath in .rpmmacros still work? - How does this interact with *.spec files containing hard-coded %Buildroots? - Do %name, %version, %release always expand correctly (Rpm suffers from a bug, where at least %name or %version (I don't recall exactly) occasionally is not being expanded correctly)? Ralf -- Fedora-packaging mailing list Fedora-packaging@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-packaging