Mailinglist Archive: opensuse-buildservice (339 mails)

< Previous Next >
Re: [opensuse-buildservice] including Substitute: lines in project
  • From: Michal Marek <mmarek@xxxxxxx>
  • Date: Tue, 11 Mar 2008 08:16:52 +0100
  • Message-id: <47D631E4.1050509@xxxxxxx>
Marcus Rueckert wrote:
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

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

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

will not work.

those work. try it

It works in rpm, but probably not in the project config parser, see my
first post. openSUSE:10.3 has

$ osc meta prjconf openSUSE:10.3| grep -e Macros -e suse_version
%define suse_version 1030
%suse_version 1030

But Fedora:8

$ osc meta prjconf Fedora:8| grep -e Macros -e fedora_version
%fedora_version 8

I.e. the fedora_version macro is available in rpm, but not in the
project config.

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

< Previous Next >
Follow Ups