[prev in list] [next in list] [prev in thread] [next in thread]
List: suse-kde
Subject: Re: [opensuse-kde] kde-obs-generator: how to install files conditionally on the KDE version
From: Lubos Lunak <l.lunak () suse ! cz>
Date: 2010-08-02 11:30:23
Message-ID: 201008021330.24092.l.lunak () suse ! cz
[Download RAW message or body]
On Sunday 01 of August 2010, David Jarvie wrote:
> I'm using the KDE OpenSUSE build service to build my KDE application. There
> are some files which need to be installed for systems which provide KDE
> 4.2, but not for KDE 4.3 or later. I've tried a couple of methods in the
> .spec file to specify this, but the build failed each time. How can I
> specify this condition?
There doesn't seem to be a pre-made check for this, but you can do e.g.
%files ...
...
%if %(rpm -q --qf "%{VERSION}" kdelibs4 | awk -F . '{ printf "%d%02d%02d",$1,
$2,$3 }') >= 040200
...
%endif
...
--
Lubos Lunak
openSUSE Boosters team, KDE developer
l.lunak@suse.cz , l.lunak@kde.org
--
To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-kde+help@opensuse.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic