Re: rpmmacros for separating package sources?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



James Olin Oden wrote:
On Thu, 29 Apr 2004, Jason L Tibbitts III wrote:


Recently on one of the Fedora or Red Hat lists I saw mention of a
script that sets up your .rpmmacros file so that when you install an
srpm the sources and the specfile are placed in their own directory in
your build tree.  Unfortunately I've searched all over and I just
can't find the reference again.  Would anyone happen to have any idea
of what I'm talking about?


You just need to put in ~/.rpmmacros:


%_topdir /some/place/you/want/things/to/go

You then have create the directory %_topdir points to, and the
other directories that would be under %_topdir (i.e. SOURCES, BUILD, SPECS, ect.).

I think Jason is looking for the version which puts sources and spec for a package in a single, package-specific directory. Here is what I have in my ~/.rpmmacros:


------------------------------ 8< -------------------------------
# %_topdir defines the top directory to be used for RPM building
# purposes.  By defaultROOT of the buildsystem
%_topdir    %(echo $HOME)/rpmbuild


# %_sourcedir is where the source code tarballs, patches, etc. will be # placed after you do an "rpm -ivh somepackage.1.0-1.src.rpm" %_sourcedir %{_topdir}/%{name}


# %_specdir is where the specfile gets placed when installing a src.rpm. # I prefer the specfile to be in the same directory as the source # tarballs, etc. %_specdir %{_sourcedir} ------------------------------ 8< -------------------------------

Tres.
--
===============================================================
Tres Seaver                                tseaver@xxxxxxxx
Zope Corporation      "Zope Dealers"       http://www.zope.com


_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux