Mailinglist Archive: opensuse-buildservice (339 mails)

< Previous Next >
Re: [opensuse-buildservice] including Substitute: lines in project
  • From: Marcus Rueckert <darix@xxxxxxxxx>
  • Date: Mon, 10 Mar 2008 20:45:16 +0100
  • Message-id: <20080310194516.GF31080@xxxxxxxxxxxxxxxxxxxxxxx>
On 2008-03-10 18:56:23 +0100, Marc wrote:
Am Montag 10 März 2008 17:11:25 schrieb Marcus Rueckert:
if 0%{?suse_version} > 1030
%endif

this will never fail. even on fedora the build would proceed.

I'm looking for a method to test for a specific distribution version. Above
example works for any suse version, because suse_version is set before, but
e.g

%if 0%{?fedora_version} >= 7
%endif
or
%if 0%{?fedora_version} == 6
%endif

will not work.

those work. try it

darix

--
openSUSE - SUSE Linux is my linux
openSUSE is good for you
www.opensuse.org
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups