Mailinglist Archive: opensuse-buildservice (351 mails)

< Previous Next >
Re: [opensuse-buildservice] Shared spec vs duplicated spec's
  • From: Luke Imhoff <luke@xxxxxxxx>
  • Date: Fri, 11 Jul 2008 08:25:53 -0500
  • Message-id: <1215782753.26416.3.camel@xxxxxxxxxxxxxxxxxxx>
That works now? The last time I tried using %if in Macros it just
thought I was trying to define it as a macro.

On Fri, 2008-07-11 at 14:58 +0200, Adrian Schröter wrote:
On Friday 11 July 2008 14:52:28 Marcus Rueckert wrote:
On 2008-07-11 20:09:30 +1000, Mark V wrote:
I raised this on the IRC channel so apologies if you've seen this.

I have a project's src.rpm that I'd like to move onto the OBS, and
this has raised some issues....
The current src.rpm uses lots of --build "option n" switches. Some of
these are accommodated by OBS since they are distro specific builds.
Others however relate to building different components.

My Question is how to 'map' this to OBS?

I think, you can create a project config and define rpm macro settings based
on the build target repo.

osc meta prjconf -e <project>

And add

%if "%_repository" == "openSUSE_10.3"
%macro_name 1

for example.

To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >