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

Action requested: check dist tags and conditionals



(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


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