Mailinglist Archive: opensuse-buildservice (273 mails)

< Previous Next >
Re: [opensuse-buildservice] Error satisfying "BuildRequires" for non SuSE distro's
  • From: Christof Hanke <Biber@xxxxxxxxxxxxxxx>
  • Date: Sun, 25 Jan 2009 08:18:30 +0200
  • Message-id: <200901250818.30989.Biber@xxxxxxxxxxxxxxx>

try "%else" instead of "%elseif".

Is the latter a valid tag ? Never seen it before.
I just tried it within a normal spec-file and it seems to work like a
normal "%else", for BuildRequires it fails however.
My guess is that the parser for the BuildExpansion-stuff does not recognise



Am Sonntag, 25. Januar 2009 00:44:07 schrieb Joop Boonen:

I get a build error for all non SuSE distro's on "BuildRequires". I've
checked the names in a test installation they are correct if I'm not

This are the "BuildRequires" in the spec file:

%if 0%{?suse_version}
BuildRequires: libusb-devel, pkg-config, subversion >= 1.5.0
BuildRequires: libusb-devel, pkgconfig, subversion >= 1.5.0

This is the build error I get:

I have the following modifications for dfu-util.spec:
< Release: 5.2

Release: 5.1

----- building dfu-util.spec (user abuild)
+ exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --define
'disturl srcrep:1d4ecab9cbd0e3b0f54c29caf9af5778-dfu-util'
error: Failed build dependencies:
libusb-devel is needed by dfu-util-0.1+svn4900-5.1.src
pkgconfig is needed by dfu-util-0.1+svn4900-5.1.src
subversion >= 1.5.0 is needed by dfu-util-0.1+svn4900-5.1.src
System halted.


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

< Previous Next >
Follow Ups