Action requested: check dist tags and conditionals
Bill Nottingham
notting at redhat.com
Fri Jun 5 16:08:32 UTC 2009
Toshio Kuratomi (a.badger at 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
More information about the devel
mailing list