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

Re:topdir, builddir prefix and buildroot



I see this message wasn't replied to last month...

>      Hi!!!
>
>      I am bit confused with the above macros...
>      I have gone through the max-rpm but still failed to understand
> the difference and the dependencies. I have actually successfully
> built a RPM using these macros.
>
>      I have defined prefix and buildroot in the spec file and topdir
> in ~/.rpmacros.
>      Please can anybody help me out of this.

topdir is the base of several directories, including $RPM_SOURCE_DIR,
and $RPM_BUILD_DIR.  It defaults to /usr/src/redhat, but it is common
to redefine it in ~/.rpmmacros.

builddir ($RPM_BUILD_DIR) is where the source code is unpacked
(/usr/src/redhat/BUILD by default), and buildroot ($RPM_BUILD_ROOT) is
where the source is installed (typically
/var/tmp/%{name}-%{version}-%{release} or something like that).  You
unpack, ./configure, and make in builddir and then make install to
buildroot.  RPM collects the files in %files from buildroot.

Now i have a question about topdir, sourcedir, and builddir - is there
a way to get RPM to read all its config files and tell you what their
current values are?  I would like to use them in a script without
having to hard-code their values for my environment.

Paul
http://paulgear.webhop.net






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