Mailinglist Archive: opensuse-buildservice (232 mails)

< Previous Next >
[opensuse-buildservice] Is there a macro for the release?
  • From: Robert Schweikert <rjschwei@xxxxxxxx>
  • Date: Mon, 23 Apr 2012 17:23:54 -0400
  • Message-id: <4F95C86A.902@suse.com>
Hi,

Dealing with a source tree that has distribution dependence backed right into the build setup. It looks for /etc/*-release.

Is there a way for me to have a requires that install the appropriate release package?

When I add:

%if %sles_version >= 11
BuildRequires: sles-release
%endif
%if 0%{?suse_version}
BuildRequires: openSUSE-release
%endif

It obviously fails as SLE also returns true for suse_version and then of course the openSUSE-release package cannot be found.

What's the best way to deal with this?

Thanks,
Robert

--
Robert Schweikert MAY THE SOURCE BE WITH YOU
SUSE-IBM Software Integration Center LINUX
Tech Lead
rjschwei@xxxxxxxx
rschweik@xxxxxxxxxx
781-464-8147
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >