Mailinglist Archive: opensuse-buildservice (272 mails)

< Previous Next >
Re: [opensuse-buildservice] OBS build takes wrong if clause
  • From: Michael Schroeder <mls@xxxxxxx>
  • Date: Mon, 8 Nov 2010 16:47:51 +0100
  • Message-id: <20101108154751.GA7844@xxxxxxx>
On Mon, Nov 08, 2010 at 04:44:09PM +0100, Volker Stoppe wrote:
Below is an excerpt of my spec-file. Can someone explain me why the
build of the centos-packages queries the dependencies from "if
%suse_version"?

---- snip ----
# BuildRequires: libssh2-devel
# BuildRequires: net-snmp-devel
# BuildRequires: OpenIPMI-devel
# BuildRequires: openldap2-devel
# BuildRequires: postgresql-devel
# BuildRequires: sqlite-devel
#
# %if 0%{?suse_version} < 1020
# BuildRequires: curl-devel mysql-devel tcpd-devel apache2-devel
iksemel-devel pkg-config
# %else
# BuildRequires: fdupes libcurl-devel libmysqlclient-devel
apache2-devel iksemel-devel pkg-config
# %endif

"%if 0%{?suse_version} < 1020" is also true for CentOS, you probably
want to put a

%if 0%{?suse_version}
...
%endif

around the block.

Cheers,
Michael.

--
Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
References