[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XForms] xforms rpm
From: |
Bill Unruh |
Subject: |
Re: [XForms] xforms rpm |
Date: |
Fri, 29 May 2015 12:39:52 -0700 (PDT) |
User-agent: |
Alpine 2.02 (LMD 1266 2009-07-14) |
On Thu, 28 May 2015, Jens Thoms Toerring wrote:
On Mageia, an rpm based distro, it is libxpm-devel and
libmesagl1-devel
for the BuildDepends in libxforms.spec
Oh, sh*t;-) Do you have, by any chance, an idea what conditional
one should use in the .spec file to detect if the rpm is build
on Mageia? Then I could make those requirements depend on it...
uname -v has "mga" in it, if it is a Mageia compiled kernel.
There is a file called
/etc/mageia-release
which contains the release number
(Mageia release 3 (Official) for i586 ) is an example.
%mkrel has "mga" in it.
(on mageia 3
rpmspec --eval='%mkrel 1' gives 1.mga3 )
Also %{_host_vendor} is mageia (probably the best thing to use).
So
BuildRequires: libjpeg-devel
%if %{_host_vendor} == mageia
BuildRequires: libmesagl1-devel
BuildRequires: libxpm-devel
%else
BuildRequires: libXpm-devel
BuildRequires: mesa-libGL-devel
%endif
works. (I have only tried that on Mageia)
I would guess the other distros would also have _host_vendor defined, but I do
not know.
Thank you and best regards, Jens
--
\ Jens Thoms Toerring ________ address@hidden
\_______________________________ http://toerring.de
- [XForms] xforms on epel - no doc rpm, Frank Cox, 2015/05/26
- Re: [XForms] xforms on epel - no doc rpm, David . Dembrow, 2015/05/27
- Re: [XForms] xforms on epel - no doc rpm, Jens Thoms Toerring, 2015/05/27
- Re: [XForms] xforms on epel - no doc rpm, Frank Cox, 2015/05/27
- Re: [XForms] xforms on epel - no doc rpm, Jens Thoms Toerring, 2015/05/27
- Message not available
- Re: [XForms] xforms on epel - no doc rpm, Rex Dieter, 2015/05/28
- Re: [XForms] xforms on epel - no doc rpm, Jens Thoms Toerring, 2015/05/28
Re: [XForms] xforms on epel - no doc rpm, Rex Dieter, 2015/05/26