Mailinglist Archive: opensuse-buildservice (269 mails)

< Previous Next >
Re: [opensuse-buildservice] Spec-File Question
  • From: "Johannes Weberhofer, Weberhofer GmbH" <office@xxxxxxxxxxxxx>
  • Date: Thu, 04 Sep 2008 16:25:32 +0200
  • Message-id: <48BFEFDC.2050203@xxxxxxxxxxxxx>
Is this feature and others which can be defined in the _link file and in the
xml describing the repository documented somewhere in detail?


Adrian Schröter schrieb:
On Donnerstag 04 September 2008 11:07:16 Adrian Schröter wrote:
On Donnerstag 04 September 2008 10:53:31 Johannes Weberhofer, Weberhofer

Hello everyone!

I have started working with osb a month ago and I really love it! Well

I have a specific question, maybe someone can answer it:

I want two build two versions of an executable file and provide this file
via different rpms (At the end three packages shouldresult: package,
package-cgi-withfeature, package-cgi-withoutfeature).

Is there any way to handle such things within _one_ spec file? I can
configure/make the package twice and copy the resulting file somewhere,
but I don't know a way to bring it back to it's position in the
filesystem before I enter the related %file section.
hm, you can via two repositories. Having something like

Actually it works also with a source link:

%if %{?small_build:1}0
Name: small
Name: big

Than create another virtual package in the same project with a source link.
The source _link file should look like:

<link project="myproject" package="theotherpackage">
<topadd>%define %small_build 1</topadd>

So the second build will get the macro defined. You need to create the source
link only once and can work only on the spec file in the other package.



| weberhofer GmbH | Johannes Weberhofer
| information technologies
| Austria, 1080 Wien, Blindengasse 52/3
| Firmenbuch: 225566s, Handelsgericht Wien
| UID: ATU55277701
| phone : +43 (0)1 5454421 0 | email: office@xxxxxxxxxxxxx
| fax : +43 (0)1 5454421 19 | web :
| mobile: +43 (0)699 11998315
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups