On Wed, 2021-11-03 at 14:26 -0400, Ben Beasley wrote:
> I don’t know where to find documentation for operator precedence in
> RPM
> conditional expressions, but it looks like “!” binds more tightly
> than
> “>=”, so
>
> > %if ! 0%{?rhel} >= 8
>
> is grouped as
>
> > %if (! 0%{?rhel}) >= 8
>
I don’t know where to find documentation for operator precedence in RPM
conditional expressions, but it looks like “!” binds more tightly than
“>=”, so
> %if ! 0%{?rhel} >= 8
is grouped as
> %if (! 0%{?rhel}) >= 8
which becomes, on Fedora:
> %if (! 00) >= 8
> %if 1 >= 8
and therefore eval