BRing qt3 on both fedora and EPEL

Dan Horák dan at danny.cz
Fri Apr 3 08:10:02 CEST 2009


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"


		Dan




More information about the rpmfusion-developers mailing list