Check whether a macro is undefined or has a specific value

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

 



Hello,

as the subject says: If macro %{__foo} is defined and has value 1, I'd
like to do something; otherwise (undefined or value != 1), skip.

In my spec file, I've tried

%if %{__foo}
# do something
%endif

%if %{__foo} = "1"
# do something
%endif

but they all fail. Thanks in advance for any help.
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-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