Action requested: check dist tags and conditionals
Julian Sikorski
belegdol at gmail.com
Thu Jun 4 20:11:49 UTC 2009
Bill Nottingham pisze:
> (If you've never used a construct like "%if 0%{?fedora}" in your spec
> file, you can disregard this message.)
>
> Many packages in Fedora use release-based conditionals such as:
>
> ...
> %if 0%{?rhel}
> %endif
>
> %if 0%{?fedora} < 10
> %endif
>
> %{?fedora:%global _with_xfce --with-xfce}
> ...
>
> I'd just like to remind people of the following:
>
> - If you're using open ended conditionals such as:
> %if 0%{?fedora} > 9
> make sure you keep in mind what will happen if %{fedora} isn't defined,
> such as in the case of a derivative distribution.
>
> - If you're building for EPEL from a unified Fedora spec file, and have
> separate %{fedora} and %{rhel} sections, make sure they do the right
> things for any potential new releases, not just %{rhel} = 4 or %{rhel} = 5.
>
> Thanks!
>
> Bill
>
> _______________________________________________
> Fedora-devel-announce mailing list
> Fedora-devel-announce at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-devel-announce
>
This is often used to tailor BuildRequires, I can't take responsibility
what a given release of a derivative distro does or doesn't include.
Julian
More information about the fedora-devel-list
mailing list