On Thu, Oct 28, 2010 at 01:54:09PM -0500, Jon Ciesla wrote:
Actually, since it will be renamed in F15 (if the reviews get done in
time), you would just do:
%if %{?fedora} < 15
Requires: drupal >=6.0
%endif
%if %{?fedora} >= 15
Requires: drupal6 >= 6.0
%endif
%if %{?rhel}
Requires: drupal6 >= 6.0
%endif
You need some "0" in there and could combine the last %if:
%if 0%{?fedora} < 15
Requires: drupal >=6.0
%endif
%if 0%{?rhel} || 0%{?fedora} >= 15
Requires: drupal6 >= 6.0
%endif
But a better way might be to add a virtual provide in the Fedora < 15
packages where the version is 6:
Name: Drupal
Version: 6.0
Release: 1
Provides: drupal6 = %{version}-%{release}
Then packages on all releases can Require drupal6.
-Toshio