Re: how to override "BuildRoot:" directive in spec file?

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

 



* Baz <barry@xxxxxxxxxxxxxxxxxxx> [27/12/2003 1412EST]:
> All,
> 
> Happy new year.
> 
> How can I specify output directory other than /usr/src/redhat?

Barry:

1) Try to refrain from TOFU (text over, full-quote under) posts.  It is
bad mail etiquette.

2) Do not start a new thread by replying to an existing thread.  It is
bad mail etiquette.

> X-Mailer: Microsoft Outlook Express 6.00.2800.1158

3) This is just evil.  No further comment necessary.

4) To specify a different output directory, set %_topdir in your
~/.rpmmacros file to point to the, well, top dir of the output tree.
RPM output.  This tree normally looks something like:

kw@behemoth[1]:~$ find /usr/src/pc -type d -depth     
/usr/src/pc/BUILD
/usr/src/pc/RPMS/athlon
/usr/src/pc/RPMS/i386
/usr/src/pc/RPMS/i486
/usr/src/pc/RPMS/i586
/usr/src/pc/RPMS/i686
/usr/src/pc/RPMS/noarch
/usr/src/pc/RPMS
/usr/src/pc/SOURCES
/usr/src/pc/SPECS
/usr/src/pc/SRPMS
/usr/src/pc

In this case, %_topdir would be set to /usr/src/pc

Oh yeah, a little rtfm never hurts.  You should check out
http://www.rpm.org/max-rpm/ or something similar (Max RPM is bound to be
a bit outdated).

5) Happy New Year to you too, but there is still 4 days of 2003 left and
we could spiral into the sun before then.  ;-)

Cheers!
krjw.
-- 
Keith R. John Warno                  [k r j w  at  optonline dot net]


_______________________________________________
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