Re: unifying of spec files for different Fedora releases

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dan Horák wrote:
> Hello,
> 
> I want to unify the spec files for TinyERP, because they are (only a
> bit) different between FC < 5 and FC >=5 due the change in Xorg
> packaging.
> 
> Now I have in the spec for FC < 5
> 
> BuildRequires: xorg-x11-Xvfb
> 
> and for FC >= 5 I need
> 
> BuildRequires: xorg-x11-server-Xvfb, xorg-x11-fonts-base
> 
> and there is also a difference between calling the Xvfb server
> (/usr/X11/bin/Xvfb vs. /usr/bin/Xvfb).
> 
> Should I check the value of "%fedora" so it would look like
> 
> %if "%fedora" < 5
> BuildRequires: xorg-x11-Xvfb
> %else
> BuildRequires: xorg-x11-server-Xvfb, xorg-x11-fonts-base
> %endif
> 
> or should I use "%dist" for the checks? I was probably already mentioned
> on this list, but I not able to find it.

The former (use %%fedora).  It's easier for less than, greater than checks.

-- Rex

-- 
fedora-extras-list mailing list
fedora-extras-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-extras-list

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux