On Apr 3, 2009, at 2:10 AM, Dan Horák wrote:
David Timms píše v Pá 03. 04. 2009 v 08:19 +1100:
> Hi, I got a few hints reqarding this on IRC:
>
> I'm trying to adjust my spec to BR qt 3, in a way that works on
> EPEL and
> Fedora. mharris suggested this might work:
> BuildRequires: qt-devel >= 3
> BuildRequires: qt-devel < 4, which -bs ok, actual build fails:
The BRs can be conditionalized like
%if 0%{?fedora} > X
BuildRequires: qt-devel >= 3
%endif
%if 0%{?rhel} > Y
BuildRequires: qt-devel < 4
%endif
and AFAIK the qt-devel package provides qtX-devel, where X in (3, 4)
depending on the version. So if you want to use qt3 on both Fedora and
EPEL then just add "BR: qt3-devel"
I thought the same, but I think that's only in Fedora-land. At least
on a RHEL5 box here:
$ rpm -q --provides qt-devel
config(qt-devel) = 1:3.3.6-23.el5
qt-devel = 1:3.3.6-23.el5
--
Jarod Wilson
jarod(a)wilsonet.com