gssdp/gssdp.spec

145 lines
4.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gssdp
#
# Copyright (c) 2022 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/
#
%define soname 1_6-0
%define sover 1.6
%bcond_with sniffer
Name: gssdp
Version: 1.5.2
Release: 0
Summary: Library for resource discovery and announcement over SSDP
License: LGPL-2.0-or-later
Group: Development/Libraries/C and C++
URL: http://www.gupnp.org/
Source0: https://download.gnome.org/sources/gssdp/1.5/%{name}-%{version}.tar.xz
Source1: baselibs.conf
BuildRequires: meson >= 0.54.0
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gi-docgen)
BuildRequires: pkgconfig(glib-2.0) >= 2.54
BuildRequires: pkgconfig(gobject-introspection-1.0)
%if %{with sniffer}
BuildRequires: pkgconfig(gtk4)
%endif
BuildRequires: pkgconfig(libsoup-3.0)
BuildRequires: pkgconfig(vapigen)
%description
gssdp offers a GObject-based API for handling resource discovery and
announcement over SSDP.
%package utils
Summary: Utilities for resource discovery and announcement over SSDP
Group: Productivity/Networking/Other
%description utils
gssdp offers a GObject-based API for handling resource discovery and
announcement over SSDP.
This package contains a device sniffer.
Accepting request 708466 from GNOME:Next - Update to version 1.2.1: + Fix portability issues with gssdp_net_get_device_list. + Fix a local vs. global include in public header. - Update to version 1.2.0: + Stable release version bump. - Update to version 1.1.3: + Fix a memory leak in sniffer. + Minor other improvements to sniffer. + Fix address fall-back to IP v4 for GSSDP client. + Bump minimum GLib version to 2.44. + Fix a crash due to a dangling pointer in GSSDP client. + Fix a memory leak in pktinfo handler. + Use g_type_ensure instead of custom solution. + Implement UDA 1.1 boot-id and config-id. + Implement UDA 1.1 ssdp:update messages. + Documentation updates. + Style fixes. - Disable tests for now, as it currently fails, but this is the unstable branch so it's ok for the time beeing. - Update to version 1.1.2: + Use a proper type for the message-received signal's parameter. + Fix OS name in version string. + Fix version string to include UPnP version. + Fall-back to UDA 1.0 if UDA version is unspecified. - Update to version 1.1.1: + Fix a crash with sniffer. + Fix pktinfo handling on OS X. + Fix mssing network mask in GSSDPClient. + Several build test simplifications. + Add property for address family in GSSDPClient. + Remove address family hack in sniffer. + Add property for UDA version in GSSDPClient. - Changes from version 1.1.0.1: + Re-release of 1.1.0 because of meson tarball naming. - Changes from version 1.1.0: + Bump API and ABI versions. + Port to new GLib type macros. + Remove the custom marshaller. + Make error enum a type. + Drop deprecated properties and functions. + Clean up Sniffer UI. + Refactor get_host_ip into separate files. + Use several GLib helper functions like g_clear_object etc. + Fix deprecations with GTK 3.22 in sniffer. + Port build system to Meson. + Drop meta-data file and custom vala for vapi. + Port sniffer to use UI from GResource. + Make sniffer UI more GNOME 3 hig-ish. + Some usability improvements for sniffer. + Add rescan for sniffer. + Introduce more debug logging while creating the GSSDP client. + Recreate the socket sources on errors. + Fix a memory leak in sniffer. + Add IPv6 support. + Have sniffer show the network interface. - Add soname and sover defines and set them to 1_2-0 and 1.2, make future API and ABI bumps easier. OBS-URL: https://build.opensuse.org/request/show/708466 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gssdp?expand=0&rev=87
2019-06-11 10:47:16 +02:00
%package -n libgssdp-%{soname}
Summary: Library for resource discovery and announcement over SSDP
Group: Development/Libraries/C and C++
Accepting request 708466 from GNOME:Next - Update to version 1.2.1: + Fix portability issues with gssdp_net_get_device_list. + Fix a local vs. global include in public header. - Update to version 1.2.0: + Stable release version bump. - Update to version 1.1.3: + Fix a memory leak in sniffer. + Minor other improvements to sniffer. + Fix address fall-back to IP v4 for GSSDP client. + Bump minimum GLib version to 2.44. + Fix a crash due to a dangling pointer in GSSDP client. + Fix a memory leak in pktinfo handler. + Use g_type_ensure instead of custom solution. + Implement UDA 1.1 boot-id and config-id. + Implement UDA 1.1 ssdp:update messages. + Documentation updates. + Style fixes. - Disable tests for now, as it currently fails, but this is the unstable branch so it's ok for the time beeing. - Update to version 1.1.2: + Use a proper type for the message-received signal's parameter. + Fix OS name in version string. + Fix version string to include UPnP version. + Fall-back to UDA 1.0 if UDA version is unspecified. - Update to version 1.1.1: + Fix a crash with sniffer. + Fix pktinfo handling on OS X. + Fix mssing network mask in GSSDPClient. + Several build test simplifications. + Add property for address family in GSSDPClient. + Remove address family hack in sniffer. + Add property for UDA version in GSSDPClient. - Changes from version 1.1.0.1: + Re-release of 1.1.0 because of meson tarball naming. - Changes from version 1.1.0: + Bump API and ABI versions. + Port to new GLib type macros. + Remove the custom marshaller. + Make error enum a type. + Drop deprecated properties and functions. + Clean up Sniffer UI. + Refactor get_host_ip into separate files. + Use several GLib helper functions like g_clear_object etc. + Fix deprecations with GTK 3.22 in sniffer. + Port build system to Meson. + Drop meta-data file and custom vala for vapi. + Port sniffer to use UI from GResource. + Make sniffer UI more GNOME 3 hig-ish. + Some usability improvements for sniffer. + Add rescan for sniffer. + Introduce more debug logging while creating the GSSDP client. + Recreate the socket sources on errors. + Fix a memory leak in sniffer. + Add IPv6 support. + Have sniffer show the network interface. - Add soname and sover defines and set them to 1_2-0 and 1.2, make future API and ABI bumps easier. OBS-URL: https://build.opensuse.org/request/show/708466 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gssdp?expand=0&rev=87
2019-06-11 10:47:16 +02:00
%description -n libgssdp-%{soname}
gssdp offers a GObject-based API for handling resource discovery and
announcement over SSDP.
%package -n typelib-1_0-GSSDP-1_0
Summary: Lib for resource discovery and announcement over SSDP - Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-GSSDP-1_0
gssdp offers a GObject-based API for handling resource discovery and
announcement over SSDP.
This package provides the GObject Introspection bindings for gssdp.
%package doc
Summary: Documentation for %{name}
BuildArch: noarch
%description doc
Documentation for %{name}.
%package -n libgssdp-devel
Summary: Library for resource discovery and announcement over SSDP - Development Files
Group: Development/Libraries/C and C++
Accepting request 708466 from GNOME:Next - Update to version 1.2.1: + Fix portability issues with gssdp_net_get_device_list. + Fix a local vs. global include in public header. - Update to version 1.2.0: + Stable release version bump. - Update to version 1.1.3: + Fix a memory leak in sniffer. + Minor other improvements to sniffer. + Fix address fall-back to IP v4 for GSSDP client. + Bump minimum GLib version to 2.44. + Fix a crash due to a dangling pointer in GSSDP client. + Fix a memory leak in pktinfo handler. + Use g_type_ensure instead of custom solution. + Implement UDA 1.1 boot-id and config-id. + Implement UDA 1.1 ssdp:update messages. + Documentation updates. + Style fixes. - Disable tests for now, as it currently fails, but this is the unstable branch so it's ok for the time beeing. - Update to version 1.1.2: + Use a proper type for the message-received signal's parameter. + Fix OS name in version string. + Fix version string to include UPnP version. + Fall-back to UDA 1.0 if UDA version is unspecified. - Update to version 1.1.1: + Fix a crash with sniffer. + Fix pktinfo handling on OS X. + Fix mssing network mask in GSSDPClient. + Several build test simplifications. + Add property for address family in GSSDPClient. + Remove address family hack in sniffer. + Add property for UDA version in GSSDPClient. - Changes from version 1.1.0.1: + Re-release of 1.1.0 because of meson tarball naming. - Changes from version 1.1.0: + Bump API and ABI versions. + Port to new GLib type macros. + Remove the custom marshaller. + Make error enum a type. + Drop deprecated properties and functions. + Clean up Sniffer UI. + Refactor get_host_ip into separate files. + Use several GLib helper functions like g_clear_object etc. + Fix deprecations with GTK 3.22 in sniffer. + Port build system to Meson. + Drop meta-data file and custom vala for vapi. + Port sniffer to use UI from GResource. + Make sniffer UI more GNOME 3 hig-ish. + Some usability improvements for sniffer. + Add rescan for sniffer. + Introduce more debug logging while creating the GSSDP client. + Recreate the socket sources on errors. + Fix a memory leak in sniffer. + Add IPv6 support. + Have sniffer show the network interface. - Add soname and sover defines and set them to 1_2-0 and 1.2, make future API and ABI bumps easier. OBS-URL: https://build.opensuse.org/request/show/708466 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gssdp?expand=0&rev=87
2019-06-11 10:47:16 +02:00
Requires: libgssdp-%{soname} = %{version}
Requires: typelib-1_0-GSSDP-1_0 = %{version}
%description -n libgssdp-devel
gssdp offers a GObject-based API for handling resource discovery and
announcement over SSDP.
%prep
%autosetup -p1
%build
%meson \
-Dgtk_doc=true \
%if %{without sniffer}
-Dsniffer=false \
%endif
-Dintrospection=true \
-Dvapi=true \
-Dexamples=false \
%{nil}
%meson_build
%install
%meson_install
# Make default docdir ref openSUSE standard
mkdir -p %{buildroot}%{_docdir}/%{name}-%{sover}
# Move docs from upstream docdir to openSUSE docdir standard
mv %{buildroot}%{_datadir}/doc/%{name}-%{sover} %{buildroot}%{_docdir}
%check
#%%meson_test
%ldconfig_scriptlets -n libgssdp-%{soname}
%if %{with sniffer}
%files utils
%{_bindir}/*
%endif
Accepting request 708466 from GNOME:Next - Update to version 1.2.1: + Fix portability issues with gssdp_net_get_device_list. + Fix a local vs. global include in public header. - Update to version 1.2.0: + Stable release version bump. - Update to version 1.1.3: + Fix a memory leak in sniffer. + Minor other improvements to sniffer. + Fix address fall-back to IP v4 for GSSDP client. + Bump minimum GLib version to 2.44. + Fix a crash due to a dangling pointer in GSSDP client. + Fix a memory leak in pktinfo handler. + Use g_type_ensure instead of custom solution. + Implement UDA 1.1 boot-id and config-id. + Implement UDA 1.1 ssdp:update messages. + Documentation updates. + Style fixes. - Disable tests for now, as it currently fails, but this is the unstable branch so it's ok for the time beeing. - Update to version 1.1.2: + Use a proper type for the message-received signal's parameter. + Fix OS name in version string. + Fix version string to include UPnP version. + Fall-back to UDA 1.0 if UDA version is unspecified. - Update to version 1.1.1: + Fix a crash with sniffer. + Fix pktinfo handling on OS X. + Fix mssing network mask in GSSDPClient. + Several build test simplifications. + Add property for address family in GSSDPClient. + Remove address family hack in sniffer. + Add property for UDA version in GSSDPClient. - Changes from version 1.1.0.1: + Re-release of 1.1.0 because of meson tarball naming. - Changes from version 1.1.0: + Bump API and ABI versions. + Port to new GLib type macros. + Remove the custom marshaller. + Make error enum a type. + Drop deprecated properties and functions. + Clean up Sniffer UI. + Refactor get_host_ip into separate files. + Use several GLib helper functions like g_clear_object etc. + Fix deprecations with GTK 3.22 in sniffer. + Port build system to Meson. + Drop meta-data file and custom vala for vapi. + Port sniffer to use UI from GResource. + Make sniffer UI more GNOME 3 hig-ish. + Some usability improvements for sniffer. + Add rescan for sniffer. + Introduce more debug logging while creating the GSSDP client. + Recreate the socket sources on errors. + Fix a memory leak in sniffer. + Add IPv6 support. + Have sniffer show the network interface. - Add soname and sover defines and set them to 1_2-0 and 1.2, make future API and ABI bumps easier. OBS-URL: https://build.opensuse.org/request/show/708466 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gssdp?expand=0&rev=87
2019-06-11 10:47:16 +02:00
%files -n libgssdp-%{soname}
%license COPYING
%doc AUTHORS NEWS
%{_libdir}/*.so.*
%files -n typelib-1_0-GSSDP-1_0
Accepting request 708466 from GNOME:Next - Update to version 1.2.1: + Fix portability issues with gssdp_net_get_device_list. + Fix a local vs. global include in public header. - Update to version 1.2.0: + Stable release version bump. - Update to version 1.1.3: + Fix a memory leak in sniffer. + Minor other improvements to sniffer. + Fix address fall-back to IP v4 for GSSDP client. + Bump minimum GLib version to 2.44. + Fix a crash due to a dangling pointer in GSSDP client. + Fix a memory leak in pktinfo handler. + Use g_type_ensure instead of custom solution. + Implement UDA 1.1 boot-id and config-id. + Implement UDA 1.1 ssdp:update messages. + Documentation updates. + Style fixes. - Disable tests for now, as it currently fails, but this is the unstable branch so it's ok for the time beeing. - Update to version 1.1.2: + Use a proper type for the message-received signal's parameter. + Fix OS name in version string. + Fix version string to include UPnP version. + Fall-back to UDA 1.0 if UDA version is unspecified. - Update to version 1.1.1: + Fix a crash with sniffer. + Fix pktinfo handling on OS X. + Fix mssing network mask in GSSDPClient. + Several build test simplifications. + Add property for address family in GSSDPClient. + Remove address family hack in sniffer. + Add property for UDA version in GSSDPClient. - Changes from version 1.1.0.1: + Re-release of 1.1.0 because of meson tarball naming. - Changes from version 1.1.0: + Bump API and ABI versions. + Port to new GLib type macros. + Remove the custom marshaller. + Make error enum a type. + Drop deprecated properties and functions. + Clean up Sniffer UI. + Refactor get_host_ip into separate files. + Use several GLib helper functions like g_clear_object etc. + Fix deprecations with GTK 3.22 in sniffer. + Port build system to Meson. + Drop meta-data file and custom vala for vapi. + Port sniffer to use UI from GResource. + Make sniffer UI more GNOME 3 hig-ish. + Some usability improvements for sniffer. + Add rescan for sniffer. + Introduce more debug logging while creating the GSSDP client. + Recreate the socket sources on errors. + Fix a memory leak in sniffer. + Add IPv6 support. + Have sniffer show the network interface. - Add soname and sover defines and set them to 1_2-0 and 1.2, make future API and ABI bumps easier. OBS-URL: https://build.opensuse.org/request/show/708466 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gssdp?expand=0&rev=87
2019-06-11 10:47:16 +02:00
%{_libdir}/girepository-1.0/GSSDP-%{sover}.typelib
%files doc
%doc %{_docdir}/%{name}-%{sover}/
%files -n libgssdp-devel
Accepting request 708466 from GNOME:Next - Update to version 1.2.1: + Fix portability issues with gssdp_net_get_device_list. + Fix a local vs. global include in public header. - Update to version 1.2.0: + Stable release version bump. - Update to version 1.1.3: + Fix a memory leak in sniffer. + Minor other improvements to sniffer. + Fix address fall-back to IP v4 for GSSDP client. + Bump minimum GLib version to 2.44. + Fix a crash due to a dangling pointer in GSSDP client. + Fix a memory leak in pktinfo handler. + Use g_type_ensure instead of custom solution. + Implement UDA 1.1 boot-id and config-id. + Implement UDA 1.1 ssdp:update messages. + Documentation updates. + Style fixes. - Disable tests for now, as it currently fails, but this is the unstable branch so it's ok for the time beeing. - Update to version 1.1.2: + Use a proper type for the message-received signal's parameter. + Fix OS name in version string. + Fix version string to include UPnP version. + Fall-back to UDA 1.0 if UDA version is unspecified. - Update to version 1.1.1: + Fix a crash with sniffer. + Fix pktinfo handling on OS X. + Fix mssing network mask in GSSDPClient. + Several build test simplifications. + Add property for address family in GSSDPClient. + Remove address family hack in sniffer. + Add property for UDA version in GSSDPClient. - Changes from version 1.1.0.1: + Re-release of 1.1.0 because of meson tarball naming. - Changes from version 1.1.0: + Bump API and ABI versions. + Port to new GLib type macros. + Remove the custom marshaller. + Make error enum a type. + Drop deprecated properties and functions. + Clean up Sniffer UI. + Refactor get_host_ip into separate files. + Use several GLib helper functions like g_clear_object etc. + Fix deprecations with GTK 3.22 in sniffer. + Port build system to Meson. + Drop meta-data file and custom vala for vapi. + Port sniffer to use UI from GResource. + Make sniffer UI more GNOME 3 hig-ish. + Some usability improvements for sniffer. + Add rescan for sniffer. + Introduce more debug logging while creating the GSSDP client. + Recreate the socket sources on errors. + Fix a memory leak in sniffer. + Add IPv6 support. + Have sniffer show the network interface. - Add soname and sover defines and set them to 1_2-0 and 1.2, make future API and ABI bumps easier. OBS-URL: https://build.opensuse.org/request/show/708466 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gssdp?expand=0&rev=87
2019-06-11 10:47:16 +02:00
%{_includedir}/%{name}-%{sover}/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
Accepting request 708466 from GNOME:Next - Update to version 1.2.1: + Fix portability issues with gssdp_net_get_device_list. + Fix a local vs. global include in public header. - Update to version 1.2.0: + Stable release version bump. - Update to version 1.1.3: + Fix a memory leak in sniffer. + Minor other improvements to sniffer. + Fix address fall-back to IP v4 for GSSDP client. + Bump minimum GLib version to 2.44. + Fix a crash due to a dangling pointer in GSSDP client. + Fix a memory leak in pktinfo handler. + Use g_type_ensure instead of custom solution. + Implement UDA 1.1 boot-id and config-id. + Implement UDA 1.1 ssdp:update messages. + Documentation updates. + Style fixes. - Disable tests for now, as it currently fails, but this is the unstable branch so it's ok for the time beeing. - Update to version 1.1.2: + Use a proper type for the message-received signal's parameter. + Fix OS name in version string. + Fix version string to include UPnP version. + Fall-back to UDA 1.0 if UDA version is unspecified. - Update to version 1.1.1: + Fix a crash with sniffer. + Fix pktinfo handling on OS X. + Fix mssing network mask in GSSDPClient. + Several build test simplifications. + Add property for address family in GSSDPClient. + Remove address family hack in sniffer. + Add property for UDA version in GSSDPClient. - Changes from version 1.1.0.1: + Re-release of 1.1.0 because of meson tarball naming. - Changes from version 1.1.0: + Bump API and ABI versions. + Port to new GLib type macros. + Remove the custom marshaller. + Make error enum a type. + Drop deprecated properties and functions. + Clean up Sniffer UI. + Refactor get_host_ip into separate files. + Use several GLib helper functions like g_clear_object etc. + Fix deprecations with GTK 3.22 in sniffer. + Port build system to Meson. + Drop meta-data file and custom vala for vapi. + Port sniffer to use UI from GResource. + Make sniffer UI more GNOME 3 hig-ish. + Some usability improvements for sniffer. + Add rescan for sniffer. + Introduce more debug logging while creating the GSSDP client. + Recreate the socket sources on errors. + Fix a memory leak in sniffer. + Add IPv6 support. + Have sniffer show the network interface. - Add soname and sover defines and set them to 1_2-0 and 1.2, make future API and ABI bumps easier. OBS-URL: https://build.opensuse.org/request/show/708466 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gssdp?expand=0&rev=87
2019-06-11 10:47:16 +02:00
%{_datadir}/gir-1.0/GSSDP-%{sover}.gir
%dir %{_datadir}/vala/vapi
Accepting request 708466 from GNOME:Next - Update to version 1.2.1: + Fix portability issues with gssdp_net_get_device_list. + Fix a local vs. global include in public header. - Update to version 1.2.0: + Stable release version bump. - Update to version 1.1.3: + Fix a memory leak in sniffer. + Minor other improvements to sniffer. + Fix address fall-back to IP v4 for GSSDP client. + Bump minimum GLib version to 2.44. + Fix a crash due to a dangling pointer in GSSDP client. + Fix a memory leak in pktinfo handler. + Use g_type_ensure instead of custom solution. + Implement UDA 1.1 boot-id and config-id. + Implement UDA 1.1 ssdp:update messages. + Documentation updates. + Style fixes. - Disable tests for now, as it currently fails, but this is the unstable branch so it's ok for the time beeing. - Update to version 1.1.2: + Use a proper type for the message-received signal's parameter. + Fix OS name in version string. + Fix version string to include UPnP version. + Fall-back to UDA 1.0 if UDA version is unspecified. - Update to version 1.1.1: + Fix a crash with sniffer. + Fix pktinfo handling on OS X. + Fix mssing network mask in GSSDPClient. + Several build test simplifications. + Add property for address family in GSSDPClient. + Remove address family hack in sniffer. + Add property for UDA version in GSSDPClient. - Changes from version 1.1.0.1: + Re-release of 1.1.0 because of meson tarball naming. - Changes from version 1.1.0: + Bump API and ABI versions. + Port to new GLib type macros. + Remove the custom marshaller. + Make error enum a type. + Drop deprecated properties and functions. + Clean up Sniffer UI. + Refactor get_host_ip into separate files. + Use several GLib helper functions like g_clear_object etc. + Fix deprecations with GTK 3.22 in sniffer. + Port build system to Meson. + Drop meta-data file and custom vala for vapi. + Port sniffer to use UI from GResource. + Make sniffer UI more GNOME 3 hig-ish. + Some usability improvements for sniffer. + Add rescan for sniffer. + Introduce more debug logging while creating the GSSDP client. + Recreate the socket sources on errors. + Fix a memory leak in sniffer. + Add IPv6 support. + Have sniffer show the network interface. - Add soname and sover defines and set them to 1_2-0 and 1.2, make future API and ABI bumps easier. OBS-URL: https://build.opensuse.org/request/show/708466 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gssdp?expand=0&rev=87
2019-06-11 10:47:16 +02:00
%{_datadir}/vala/vapi/gssdp-%{sover}.deps
%{_datadir}/vala/vapi/gssdp-%{sover}.vapi
%changelog