Making an rpm that works on both FC4 and FC5

Rex Dieter rdieter at math.unl.edu
Mon Mar 13 22:01:30 UTC 2006


Axel Liljencrantz wrote:

> Is it possible to specify that a package should require either
> libX11-devel or xorg-devel? 

Here's what I use, since the FE buildsystem defines the macro %{fedora}:

%if "%{?fedora}" > "4"
BuildRequires: libX11-devel
%else
BuildRequires: xorg-x11-devel
%endif

-- Rex




More information about the fedora-extras-list mailing list