Discussion:
topdir
Steven Osborn
2007-08-03 16:00:51 UTC
Permalink
I'm trying to build an rpm into my own RPM directory instead of
/usr/src/redhat/RPMS, but I haven't had any luck. I've read several
tutorials online, but they all seem to be outdated and don't work for
me. If tried adding a number of things to my rpmrc file, but I can't
get it to work.

Thanks,
Steven
Jos Vos
2007-08-03 16:02:34 UTC
Permalink
On Fri, Aug 03, 2007 at 11:00:51AM -0500, Steven Osborn wrote:

Just put in your $HOME/.rpmmacros

%_topdir /path/to/rpm/tree
--
-- Jos Vos <***@xos.nl>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204
Luciano Rocha
2007-08-03 16:23:40 UTC
Permalink
Post by Jos Vos
Just put in your $HOME/.rpmmacros
%_topdir /path/to/rpm/tree
And create the subdirectories:
mkdir -p /path/to/rpm/tree/{RPMS,SOURCES,BUILD,SPECS,SRPMS}
--
lfr
0/0
Steven Osborn
2007-08-03 16:46:26 UTC
Permalink
Post by Jos Vos
Just put in your $HOME/.rpmmacros
%_topdir /path/to/rpm/tree
I'm running rpmbuild from a script, is there anyway to tell rpmbuild to
use an rpmmacro file I specify? I see how to specify my own spec file,
but that's not exactly doing the trick.
Michael Jennings
2007-08-03 16:48:09 UTC
Permalink
On Friday, 03 August 2007, at 11:46:26 (-0500),
Post by Steven Osborn
I'm running rpmbuild from a script, is there anyway to tell
rpmbuild to use an rpmmacro file I specify? I see how to specify
my own spec file, but that's not exactly doing the trick.
rpmbuild --define '_topdir /path/to/rpm/tree' ...

Michael
--
Michael Jennings (a.k.a. KainX) http://www.kainx.org/ <***@kainx.org>
Linux Server/Cluster Admin, LBL.gov Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
"Here, let me get my thumb off her breast so you can fully appreciate
her." -- Beth O'Hara
Steven Osborn
2007-08-03 16:53:52 UTC
Permalink
Awesome, that worked. Wasn't exactly in the man page. lol

Thanks!
Post by Michael Jennings
On Friday, 03 August 2007, at 11:46:26 (-0500),
Post by Steven Osborn
I'm running rpmbuild from a script, is there anyway to tell
rpmbuild to use an rpmmacro file I specify? I see how to specify
my own spec file, but that's not exactly doing the trick.
rpmbuild --define '_topdir /path/to/rpm/tree' ...
Michael
Jos Vos
2007-08-03 16:51:11 UTC
Permalink
Post by Steven Osborn
I'm running rpmbuild from a script, is there anyway to tell rpmbuild to
use an rpmmacro file I specify? I see how to specify my own spec file,
but that's not exactly doing the trick.
A trick you can use is set $HOME to some temp dir, in which you
generate dynamically the .rpmmacros you wish.
--
-- Jos Vos <***@xos.nl>
-- X/OS Experts in Open Systems BV | Phone: +31 20 6938364
-- Amsterdam, The Netherlands | Fax: +31 20 6948204
Tony Earnshaw
2007-08-03 17:12:55 UTC
Permalink
Jos Vos skrev, on 03-08-2007 18:51:

[...]
Post by Jos Vos
A trick you can use is set $HOME to some temp dir, in which you
generate dynamically the .rpmmacros you wish.
"generate dynamically"? Wat houdt dat in?

--Tonni
--
Tony Earnshaw
Email: tonni at hetnet dot nl
Loading...