On Thursdayen den 6 December 2001 20.52, Guillaume Rousse wrote:
> Mandrake RPM HOWTO list those following settings for file .rpmmacro
> %_topdir               YOUR_HOME_DIR/rpm
> %_tmppath              YOUR_HOME_DIR/rpm/tmp
>
> %_signature            gpg
> %_gpg_name             Mandrake Linux
> %_gpg_path             ~/.gnupg
> %distribution          Mandrake Linux
> %vendor                MandrakeSoft
>
> RPM official documentation list these settings as configuration option for
> .rpmrc. However, rpm fails to read them
> [guillaume@silbermann guillaume]$ rpm --rcfile .rpmrc.plf
> error: bad option 'pgp_name' at .rpmrc.plf:6
> error: bad option 'distribution' at .rpmrc.plf:7
> error: bad option 'vendor' at .rpmrc.plf:8
> error: bad option 'packager' at .rpmrc.plf:9
>
> It's sad, cause only alternate rcfile can be specified on command line, not
> alternate .rpmmacro. So, how can i easily setup two different rpm build
> settings ?

Use this "magic" in your ".rpmrc" file?

macrofiles:     
/usr/lib/rpm/macros:/usr/lib/rpm/%{_target}/macros:/etc/rpm/macros.specspo:/etc/rpm/macros.db1:/etc/rpm/macros.cdb:/etc/rpm/macros:/etc/rpm/%{_target}/macros:~/.my_rpmmacros

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| Oden Eriksson, Deserve-IT Networks, Jokkmokk, Sweden.
| Mandrake Linux release 8.2 (Cooker) for i586
| Current uptime with kernel 2.4.16.3mdk-1-1mdksmp: 7 hours 32 minutes
| cpu0 @ 814.28 bm, fan 4383 rpm, temp +29°C
| cpu1 @ 815.92 bm, fan 4299 rpm, temp +29.0°C

Reply via email to