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

Re: Action requested: check dist tags and conditionals



Toshio Kuratomi (a badger gmail com) said: 
> Does this look like the right generic structure for doing this:
> 
> %if 0%{?fedora} >= X || 0%{?rhel} >= Y
>   # Do things from X until Current Fedora, Y until Current RHEL
>   # Y should be the latest released version if we don't know that
>   # it's not going to change in the next version
> %else
>   %if %{fedora} && 0%{fedora} < X && ! %{rhel}
>     # Do things for Fedora < X
>   %else
>     %if ! %{fedora} && %{rhel} && 0%{rhel} < Y
>       # Do things for RHEL < Y
>     %else
>       # Do things for any other distros
>     %endif
>   %endif
> %endif
> 
> If so, then we'd want to prettify and codify it a bit so we can put it
> in the Packaging Guidelines

Looks reasonable.

Bill


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