Mailinglist Archive: opensuse-buildservice (272 mails)

< Previous Next >
[opensuse-buildservice] syntax of prjconf file?
  • From: Paul Elliott <pelliott@xxxxxxxxxxxxxxxxxxx>
  • Date: Thu, 4 Nov 2010 13:33:06 -0500
  • Message-id: <20101104183306.GA4259@xxxxxxxxxxxxxxxxxxx>

More generally what is the legal syntax for stuff that
goes in the prjconf file? And where is it documented?

Is there any way to find out other than folklore and analyzing
the source code?




On Wed, Nov 03, 2010 at 11:19:44PM -0500, Paul Elliott wrote:

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



--
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
References