[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-04 9:14:19
Message-ID: 201008041114.19824.l.lunak () suse ! cz
[Download RAW message or body]
On Tuesday 03 of August 2010, David Jarvie wrote:
> My problem was how to put conditional code in the %install section.
Either %if-%endif, which is like #if-#endif in C++, or normal shell's if-fi.
> Your
> syntax does seem to work, but only if the %if ... %endif is at the end of
> the %install section. If it's in the middle, the rest of the %install
> statements seem either to be ignored or to be treated as if they were part
> of the %if ... %endif (I'm not sure which yet). This could pose problems
> if two or more independent conditions needed to be used for different
> groups of install statements.
That sounds strange, and I think this is used often enough that somebody
would notice. You probably had a problem in the .spec somewhere.
--
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