best spec macro language reference ? help needed ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi -

 Sorry my RPM skills are a bit rusty.

 I am trying to get a %{warn:...} message printed during spec file
 evaluation which prints different strings based on whether a
 variable has value 1 or value 0 (NOT whether it is non-%{nil}!) :

$ rpm --eval '%define aVar 1
%define isEN()  %["%1==1"]
%define EnStr() %{?%{isEN:%1}:%1 is Enabled}%{!?%{isEN:%1}:%1 is not Enabled}
%{warn: %{EnStr:aVar}}'
warning:  aVar}:aVar is not Enabled

 If someone could please point out where I am going wrong, or where
 I might find a more comprehensive / the best Spec File Macro Langurage
 Reference document, I'd be much obliged.

Thanks & Best Regards,
Rpm-list mailing list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux