Mailinglist Archive: opensuse-buildservice (42 mails)

< Previous Next >
Re: [opensuse-buildservice] BuildRequires SuSE <-> RedHat...
  • From: Marcus Schäfer <ms@xxxxxxx>
  • Date: Tue, 25 Apr 2006 16:43:15 +0200
  • Message-id: <20060425144315.GA6767@xxxxxxx>
Hi,

> Hi,
>
> On Tue, Apr 25, 2006 at 04:21:51PM +0200, Marcus Schäfer wrote:
> > the build server builds my package (sax2) for SuSE dists just fine
> > but to build for RedHat (FC5) I'm using a different spec file. The
> > main reason for this are the package name differences within the
> > BuildRequires statement.
> >
> > For example:
> >
> > SuSE: ghostscript-fonts-std
> > FC5: xorg-x11-server-sdk
> >
> > The package structures on RedHat are very different from the SuSE
> > ones. So it's in many cases not only the name which is different.
> > How do I handle this within one spec file in the opensuse build
> > service ?
>
> This might work for you:
>
> %if %{?suse_version:1}%{?!suse_version:0}
> BuildRequires: ghostscript-fonts-std
> %else
> BuildRequires: xorg-x11-server-sdk
> %endif

Thanks this should work for me. Ok one of the packages in
BuildRequires is:

graphviz

this package normally exists on SuSE and RedHat with that
name. The build server told me:

nothing provides graphviz

?

Regards
Marcus
--
Public Key available
-------------------------------------------------------
Marcus Schäfer (Res. & Dev.) SUSE LINUX Products GmbH
Tel: 0911-740 53 0 Maxfeldstrasse 5
FAX: 0911-740 53 479 D-90409 Nürnberg
http://www.suse.de Germany
-------------------------------------------------------

< Previous Next >