From 6fde7485441e86668fcf2d474dbf615f23e0c13890cd948dc90b338ba0788cfa Mon Sep 17 00:00:00 2001 From: Lee Duncan Date: Tue, 5 Sep 2023 19:01:32 +0000 Subject: [PATCH] Accepting request 1109033 from home:kukuk:cleanup - Disable SLP by default for Factory and ALP (bsc#1214884) OBS-URL: https://build.opensuse.org/request/show/1109033 OBS-URL: https://build.opensuse.org/package/show/Base:System/open-isns?expand=0&rev=41 --- open-isns.changes | 5 +++++ open-isns.spec | 17 +++++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/open-isns.changes b/open-isns.changes index addd2ee..84b1285 100644 --- a/open-isns.changes +++ b/open-isns.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Sep 5 11:59:19 UTC 2023 - Thorsten Kukuk + +- Disable SLP by default for Factory and ALP (bsc#1214884) + ------------------------------------------------------------------- Thu Sep 08 18:40:34 UTC 2022 - lduncan@suse.com diff --git a/open-isns.spec b/open-isns.spec index abda481..b34d6bd 100644 --- a/open-isns.spec +++ b/open-isns.spec @@ -1,7 +1,7 @@ # # spec file for package open-isns # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,12 @@ # +%if 0%{?suse_version} >= 1600 +%bcond_with slp +%else +%bcond_without slp +%endif + Name: open-isns Summary: Partial Implementation of iSNS iSCSI registration License: LGPL-2.1-or-later @@ -31,7 +37,9 @@ BuildRequires: automake BuildRequires: glibc-devel BuildRequires: make BuildRequires: meson >= 0.55.0 +%if %{with slp} BuildRequires: openslp-devel +%endif BuildRequires: openssl-devel BuildRequires: systemd-rpm-macros %{?systemd_requires} @@ -62,7 +70,12 @@ Files to develop an application using the open-isns library. %build %global _lto_cflags %{?_lto_cflags} -ffat-lto-objects -%meson --default-library=both +%meson --default-library=both \ +%if %{with slp} + -Dslp=enabled +%else + -Dslp=disabled +%endif %meson_build %install