Mailinglist Archive: opensuse-buildservice (262 mails)
| < Previous | Next > |
[opensuse-buildservice] %if 0%{?debian_version} does not work.
- From: Paul Elliott <pelliott@xxxxxxxxxxxxxxxxxxx>
- Date: Sun, 23 Aug 2009 15:34:28 -0500
- Message-id: <20090823203428.GA11104@xxxxxxxxxxxxxxxxxxx>
I tried
%if 0%{?debian_version}
and
%if 0%{?ubuntu_version}
they do not work. They always act as if false.
What does work is:
%if "%_repository" == "Debian_Etch" || "%_repository" == "Debian_4.0" ||
"%_repository" == "Debian_5.0" || "%_repository" == "xUbuntu_6.06" ||
"%_repository" == "xUbuntu_8.04" || "%_repository" == "xUbuntu_8.10" ||
"%_repository" == "xUbuntu_9.04"
Required: build-essential
%endif
But of course this has the disadvantage of needing to be edited
everytime a new debian distribution is added.
--
Paul Elliott 1(512)837-1096
pelliott@xxxxxxxxxxxxxxxxxxx PMB 181, 11900 Metric Blvd Suite J
http://www.free.blackpatchpanel.com/pme/ Austin TX 78758-3117
| < Previous | Next > |