[lug] RPM rpmrc question
herod at dimensional.com
Tue Mar 2 15:33:37 MST 2004
Sorry to answer my own mail. It turns out that the rpmbuild man page
isn't complete. You can define variables on the command line, for
rpmbuild --define='_topdir /my/current/path/to/defs' ....
Also, ~/.rpmmacros is searched automatically. You don't need to reference
a macro file in ~/.rpmrc (which is deprecated).
On Mon, 1 Mar 2004, Scott Herod wrote:
> I know that I'm working with rpmbuild back-a__ward but I want to build
> RPMs from a Makefile rather than the other way around. I want something
> rpmbuild -bi SPECS/my_specfile-0.1.0-1.spec
> However, that will look for SOURCES in /usr/src/redhat/SOURCES unless I
> create (I think) a pair of appropriate files ~/.rpmrc and ~/.rpm_macros:
> %_topdir /path/to/my/packages
> Is it possible to include the %_topdir variable on my command line?
> I can use an --rcfile directive with local files but rpmbuild doesn't seem
> to expand '.' inside the rpmrc and rpm_macros files. How can I make the
> source trees relocatable without essentially having the makefile write an
> rpmrc and rpm_macro file?
> Thanks for any suggestions.
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
More information about the LUG