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