Accepting request 921866 from GNOME:Next

- Pass -Dsniffer=false to meson: Disable build of sniffer. Allows
  to drop pkgconfig(gtk4) BuildRequires and helps eliminate a build
  cycle.
- Allow for easy toggling using bcond_with sniffer.

OBS-URL: https://build.opensuse.org/request/show/921866
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gssdp?expand=0&rev=94
This commit is contained in:
Bjørn Lie 2021-09-27 16:56:38 +00:00 committed by Git OBS Bridge
parent 3107870700
commit bbd3bf4340
2 changed files with 17 additions and 22 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Sep 27 16:34:54 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
- Pass -Dsniffer=false to meson: Disable build of sniffer. Allows
to drop pkgconfig(gtk4) BuildRequires and helps eliminate a build
cycle.
- Allow for easy toggling using bcond_with sniffer.
-------------------------------------------------------------------
Mon Sep 20 11:15:50 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -16,27 +16,9 @@
#
#
# spec file for package gssdp
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# When bumping soname, do not forget to bump in baselibs.conf too.
%define soname 1_2-0
%define sover 1.2
%bcond_with sniffer
Name: gssdp
Version: 1.4.0.1
Release: 0
@ -46,14 +28,15 @@ Group: Development/Libraries/C and C++
URL: http://www.gupnp.org/
Source0: https://download.gnome.org/sources/gssdp/1.4/%{name}-%{version}.tar.xz
Source1: baselibs.conf
BuildRequires: gtk-doc
BuildRequires: meson >= 0.54.0
BuildRequires: pkgconfig
BuildRequires: python3-gi-docgen >= 2021.1
BuildRequires: pkgconfig(glib-2.0) >= 2.54
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk4) >= 4
%if %{with sniffer}
BuildRequires: pkgconfig(gtk4)
%endif
BuildRequires: pkgconfig(libsoup-2.4) >= 2.26.1
BuildRequires: pkgconfig(vapigen)
@ -105,7 +88,9 @@ announcement over SSDP.
%build
%meson \
-Dgtk_doc=true \
-Dsniffer=true \
%if %{without sniffer}
-Dsniffer=false \
%endif
-Dintrospection=true \
-Dvapi=true \
-Dexamples=false \
@ -121,8 +106,10 @@ announcement over SSDP.
%post -n libgssdp-%{soname} -p /sbin/ldconfig
%postun -n libgssdp-%{soname} -p /sbin/ldconfig
%if %{with sniffer}
%files utils
%{_bindir}/*
%endif
%files -n libgssdp-%{soname}
%license COPYING