Hi, Thanks. Finally I got back to this problem. The following seems to work: %if !0%{?is_opensuse} || 0%{?is_backports} %bcond_with riemann %else %bcond_without riemann %endif This makes differentiation between Leap and SLES a bit more complicated... Bye, On Mon, Aug 13, 2018 at 2:08 PM, İsmail Dönmez <idoenmez@suse.de> wrote:
On 13 Aug 13:56, Peter Czanik wrote:
Hi,
Trying to compile syslog-ng in my repo both for SLE_15 and SLE_15_backports and ran into something interesting. I use the following to detect SLES, and it works fine for the SLE_15 variant. But for SLE_15_backports I get "nothing provides riemann-c-client-devel"
# riemann does not compile on SLES %if !0%{?is_opensuse} %bcond_with riemann %else %bcond_without riemann %endif
Package Hub 15 now also defines is_opensuse for various reasons, but you can still detect it with the is_backports variable.
Regards, ismail
-- SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org