Mailinglist Archive: opensuse-buildservice (197 mails)

< Previous Next >
Re: [opensuse-buildservice] Re: Mandriva 2006 check in spec file
  • From: Michael Schroeder <mls@xxxxxxx>
  • Date: Sat, 3 Jun 2006 19:52:47 +0200
  • Message-id: <20060603175247.GB14320@xxxxxxx>
On Sat, Jun 03, 2006 at 11:33:43AM +0200, Adrian Schröter wrote:
> I think there is no other way than to stack this like this:
>
> %if %{?suse_version:1}0
> %if %suse_version > 930
> # do something only on SUSE 9.3
> %endif
> %endif

Come on, be creative:

%if 0%{?suse_version} >= 930
# do something only on SUSE 9.3
%endif

(rpm uses "atoi" to convert to an integer, so there's no danger
that it is interpreted as octal...)

Cheers,
Michael.

--
Michael Schroeder mls@xxxxxxx
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 >