Drupal naming schema questions
Paul W. Frields
stickster at gmail.com
Fri Oct 29 15:02:53 UTC 2010
On Thu, Oct 28, 2010 at 12:39:11PM -0700, Toshio Kuratomi wrote:
> 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
Oh brilliant, Toshio -- this actually makes things quite a bit easier.
Because I think we want to be able to branch Sven's packages under
review for Fedora, to provide them for EPEL too. It would be great if
not a lot of mucking about was needed for that.
--
Paul W. Frields http://paul.frields.org/
gpg fingerprint: 3DA6 A0AC 6D58 FEC4 0233 5906 ACDB C937 BD11 3717
http://redhat.com/ - - - - http://pfrields.fedorapeople.org/
Where open source multiplies: http://opensource.com
More information about the logistics
mailing list