Mailinglist Archive: opensuse-packaging (139 mails)

< Previous Next >
Re: [opensuse-packaging] RPM condition
  • From: Michal Marek <mmarek@xxxxxxx>
  • Date: Wed, 19 Mar 2008 17:55:23 +0100
  • Message-id: <47E1457B.3090701@xxxxxxx>
Marcus Rueckert napsal(a):
On 2008-03-18 16:45:20 +0100, Bernhard Walle wrote:
can somebody help me in writing

%if %{undefined rhel_version} && %{undefined centos_version}
# code
%else
# code
%endif

in a way that the build in the OBS / SUSE_Linux_10.0 succeeds? I
currently get a parser error. Thanks for your help.

if ! 0%{?rhel_version} || %{?rhel_version}

For the record: 10.0 had an old rpm version where the %defined() and
%undefined() macros weren't available.

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

< Previous Next >