Bug 3386

Summary: Default target wanted
Product: Sisyphus Reporter: at <at>
Component: rpm-buildAssignee: placeholder <placeholder>
Status: ASSIGNED --- QA Contact: qa-sisyphus
Severity: enhancement    
Priority: P2 CC: arseny, glebfm, icesik, imz, ldv, mike, placeholder, vt
Version: unstable   
Hardware: all   
OS: Linux   

Description at@altlinux.org 2003-12-17 16:44:03 MSK
I want to specify the default target in ~/.rpmmacros.
Apparently I can't.
Comment 1 Dmitry V. Levin 2004-06-27 04:01:50 MSD
How would you like to specify it?
Comment 2 at@altlinux.org 2004-08-17 07:22:52 MSD
$ echo '%_target i386' > ~/.rpmmacros
$ rpm --eval %_target
i686-linux
$
Comment 3 Michael Shigorin 2009-11-03 17:39:00 MSK
As of rpm-4.0.4-alt98.23:

pad:~> grep target ~/.rpmmacros 
%_configure_target      --build=i586-alt-linux-gnu
%_target_cpu    i586
pad:~> rpm --eval %_target
pentium4-linux
Comment 4 Michael Shigorin 2009-11-03 17:39:35 MSK
er...

pad:~> rpm --eval %_target_cpu
pentium4