Re: How do I set the _topdir ?
On Jan 1, 2011, at 12:46 PM, Sriram Narayanan wrote: snip /usr/local/lib/rpm/%{_target}/rpmpopt Note the unexpanded macro here. That's Have it your own way! flexibility as compiled. snip 0 2237 open64:entry rpmbuild /home/sriram/.rpmmacros This SHOULD have read wyat is in ~/.rpmmacros. You can verify with rpm --showrc | grep _topdir If I want to set /workspace/rpmwork as the topdir (which would contain SPECS, SOURCES, RPMS, etc), what should the contents of .rpmmacros be ? I've tried the following: topdir=/workspace/rpmwork _topdir=/workspace/rpmwork topdir:/workspace/rpmwork _topdir:/workspace/rpmwork All macros in configuration file loads have to start with '%' in 1st column. So you need this %_topdir/workspace/rpmwork hth 73 de Jeff __ RPM Package Managerhttp://rpm5.org User Communication List rpm-users@rpm5.org
Re: How do I set the _topdir ?
On Sat, Jan 1, 2011 at 11:30 PM, Jeff Johnson n3...@mac.com wrote: All macros in configuration file loads have to start with '%' in 1st column. So you need this %_topdir /workspace/rpmwork Thanks Jeff, that worked ! -- Sriram hth 73 de Jeff __ RPM Package Manager http://rpm5.org User Communication List rpm-users@rpm5.org -- Belenix: www.belenix.org __ RPM Package Managerhttp://rpm5.org User Communication List rpm-users@rpm5.org
Re: How do I set the _topdir ?
On Sun, Jan 2, 2011 at 12:01 AM, Jeff Johnson n3...@mac.com wrote: snip/ (aside) FYI: I'm very likely to change to the above as default hierarchy in rpm-5.4.x, largely because @rpm.org changes with ~/rpmbuild/* already have changed RPM's default behavior, and I see no reason to maintain consistency with, say, RPM documentation going forward. I have in fact been building as above for years but haven't changed the RPM default because of a Principle of Least Surprise and doco consistency that simply does not matter any more. Ok, thanks for the heads up. YMMV. hth 73 de Jeff __ RPM Package Manager http://rpm5.org User Communication List rpm-users@rpm5.org -- Belenix: www.belenix.org __ RPM Package Managerhttp://rpm5.org User Communication List rpm-users@rpm5.org