[opensuse-buildservice] Test for debian style package in prjconf?
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@BlackPatchPanel.com PMB 181, 11900 Metric Blvd Suite J http://www.free.blackpatchpanel.com/pme/ Austin TX 78758-3117
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@BlackPatchPanel.com PMB 181, 11900 Metric Blvd Suite J http://www.free.blackpatchpanel.com/pme/ Austin TX 78758-3117
-- 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
I usually refer to /usr/lib/build/configs directory (in build package) for example configs. The configs available here have most of the syntax I need. More information is available at : http://en.opensuse.org/openSUSE:Build_Service_prjconf Praveen -----Original Message----- From: Paul Elliott [mailto:pelliott@blackpatchpanel.com] Sent: Thursday, November 04, 2010 1:33 PM To: opensuse-buildservice Subject: [opensuse-buildservice] syntax of prjconf file? 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@BlackPatchPanel.com PMB 181, 11900 Metric Blvd Suite J http://www.free.blackpatchpanel.com/pme/ Austin TX 78758-3117
-- 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 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Paul Elliott
-
Praveen_Paladugu@Dell.com