On Thu, Nov 11, 2004 at 08:39:42PM -0500, Dimitrie O. Paun wrote: > On Thu, Nov 11, 2004 at 06:05:03PM -0500, Bill Rugolsky Jr. wrote: > > For that reason, I specify a different directory organization in > > my ~/.rpmmacros file that incorporates %{name} in the path: > > > > %_topdir /home/rugolsky/rpm > > %_sourcedir %{_rpmtopdir} > > %_specdir %{_rpmtopdir} > > That's a nice solution, but then you have to have a > wrapper script around rpmbuild to create all this > dirs, no? BTW, is there a way to override this _topdir > from the command line? You mean %{_topdir}/pkgs/%{name} ? No, if you create "pkgs", the package-specific subdirectory is created automatically when you install a SRPM. It's magic. :-) With the macros, %_rpmtopdir %{_topdir}/pkgs/%{name} %_tmppath %{_topdir}/install %_builddir %{_topdir}/build %_rpmdir %{_topdir}/rpms %_srcrpmdir %{_topdir}/rpms/srpms I only have to create the directory structure once, as usual: mkdir -p %{_topdir}/{pkgs,build,install,rpms/srpms} The arch-specific subdirs {i386,i686,noarch,...} are created as needed by rpmbuild. > How common is the breakage? Will any RPMs that come from RedHat/Fedora > break because of this? I haven't rebuilt all of Fedora Core, so I can't say. I've only seen it in 3rd-party packages attempting to do strange things with the build process. It's been so long since I had a problem, no package comes to mind. -Bill _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list