Options (resulting in RPMS/xxx.i386.rpm):
a)
%define my_build_name_fmt xxx
%define _build_name_fmt %{my_build_name_fmt}.%_arch.rpm
b)
%define _build_name_fmt xxx.%_arch.rpm
c)
rpmbuild -ba yyy.spec --define "_build_name_fmt xxx.%_arch.rpm"
d)
my_build_name_fmt=xxx
rpmbuild -ba yyy.spec --define "_build_name_fmt $my_build_name_fmt.%_arch.rpm"
etc.
You just can0t have _build_name_fmt=$var and define var in a scriplet
(%build, etc.).
--
lfr
0/0
Attachment:
pgp6VMfiOolKg.pgp
Description: PGP signature