[opensuse-buildservice] How to ifdef ubuntu in prjconfig?
If I put the following in my project config: if 0%{?ubuntu_version} > 1004 Preinstall: xz-utils Preinstall: liblzma2 %endif It fixes my ubuntu builds, but it breaks my rpm builds saying nothing provides xz-utils, liblzma2 Is there any conditional that will only affect my ubuntu builds? -- Paul Elliott 1(512)837-1096 pelliott@BlackPatchPanel.com PMB 181, 11900 Metric Blvd Suite J http://www.free.blackpatchpanel.com/pme/ Austin TX 78758-3117
Am Freitag, 2. September 2011, 02:57:53 schrieb Paul Elliott:
If I put the following in my project config:
if 0%{?ubuntu_version} > 1004 Preinstall: xz-utils Preinstall: liblzma2 %endif
It fixes my ubuntu builds, but it breaks my rpm builds saying nothing provides xz-utils, liblzma2
Try %if
Is there any conditional that will only affect my ubuntu builds? -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Adrian Schröter
-
Paul Elliott