Mailinglist Archive: opensuse-buildservice (272 mails)

< Previous Next >
[opensuse-buildservice] Test for debian style package in prjconf?
  • From: Paul Elliott <pelliott@xxxxxxxxxxxxxxxxxxx>
  • Date: Wed, 3 Nov 2010 23:19:44 -0500
  • Message-id: <20101104041944.GA10831@xxxxxxxxxxxxxxxxxxx>

In order to work around Bug 471298
https://bugzilla.novell.com/show_bug.cgi?id=471298

I put the following in my prjconf file:
%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" || "%_repository" == "xUbuntu_9.10" ||
"%_repository" == "xUbuntu_10.4" || "%_repository" == "xUbuntu_10.10"
Required: build-essential
%endif

Basicly I am trying to test for a debian style package. The drawback is I have
to modify
it every time there is a new debian or ubuntu distro.


%if 0%{?ubuntu_version}
and
%if 0%{?debian_version}


did not work they act as if they are always false.

Is there a test that will work in a prjconf file that will only be true
if I am building a debian style package?

--
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 >
Follow Ups