This commit is contained in:
commit
2c08b1b85e
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
82
00514fb6.patch
Normal file
82
00514fb6.patch
Normal file
@ -0,0 +1,82 @@
|
||||
From 00514fb62ebd341803fa44e26a6482a8c25dbd34 Mon Sep 17 00:00:00 2001
|
||||
From: Jens Georg <mail@jensge.org>
|
||||
Date: Sat, 25 Nov 2023 17:56:02 +0100
|
||||
Subject: [PATCH] all: Fix compatibility with libxml2 2.12.x
|
||||
|
||||
---
|
||||
libgupnp/gupnp-control-point.c | 2 ++
|
||||
libgupnp/gupnp-service-proxy-action.c | 2 ++
|
||||
libgupnp/gupnp-service-proxy.c | 2 ++
|
||||
libgupnp/gupnp-xml-doc.c | 3 +++
|
||||
libgupnp/xml-util.h | 2 ++
|
||||
5 files changed, 11 insertions(+)
|
||||
|
||||
diff --git a/libgupnp/gupnp-control-point.c b/libgupnp/gupnp-control-point.c
|
||||
index d4b44721..4374f726 100644
|
||||
--- a/libgupnp/gupnp-control-point.c
|
||||
+++ b/libgupnp/gupnp-control-point.c
|
||||
@@ -27,6 +27,8 @@
|
||||
#include <config.h>
|
||||
#include <string.h>
|
||||
|
||||
+#include <libxml/parser.h>
|
||||
+
|
||||
#include "gupnp-control-point.h"
|
||||
#include "gupnp-context-private.h"
|
||||
#include "gupnp-resource-factory-private.h"
|
||||
diff --git a/libgupnp/gupnp-service-proxy-action.c b/libgupnp/gupnp-service-proxy-action.c
|
||||
index b241d86c..6ea241ad 100644
|
||||
--- a/libgupnp/gupnp-service-proxy-action.c
|
||||
+++ b/libgupnp/gupnp-service-proxy-action.c
|
||||
@@ -9,6 +9,8 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
+#include <libxml/parser.h>
|
||||
+
|
||||
#include "gupnp-error.h"
|
||||
#include "gupnp-service-proxy.h"
|
||||
#include "gvalue-util.h"
|
||||
diff --git a/libgupnp/gupnp-service-proxy.c b/libgupnp/gupnp-service-proxy.c
|
||||
index adba5ab0..3f1a4454 100644
|
||||
--- a/libgupnp/gupnp-service-proxy.c
|
||||
+++ b/libgupnp/gupnp-service-proxy.c
|
||||
@@ -16,6 +16,8 @@
|
||||
#include <locale.h>
|
||||
#include <errno.h>
|
||||
|
||||
+#include <libxml/globals.h>
|
||||
+
|
||||
#include "gena-protocol.h"
|
||||
#include "gupnp-context-private.h"
|
||||
#include "gupnp-error-private.h"
|
||||
diff --git a/libgupnp/gupnp-xml-doc.c b/libgupnp/gupnp-xml-doc.c
|
||||
index 627f1a28..66f9b3dd 100644
|
||||
--- a/libgupnp/gupnp-xml-doc.c
|
||||
+++ b/libgupnp/gupnp-xml-doc.c
|
||||
@@ -15,6 +15,9 @@
|
||||
#include <config.h>
|
||||
#include <string.h>
|
||||
#include <gio/gio.h>
|
||||
+
|
||||
+#include <libxml/parser.h>
|
||||
+
|
||||
#include "gupnp-xml-doc.h"
|
||||
#include "gupnp-error.h"
|
||||
|
||||
diff --git a/libgupnp/xml-util.h b/libgupnp/xml-util.h
|
||||
index a02eb3d4..d0dcaeba 100644
|
||||
--- a/libgupnp/xml-util.h
|
||||
+++ b/libgupnp/xml-util.h
|
||||
@@ -10,6 +10,8 @@
|
||||
#define GUPNP_XML_UTIL_H
|
||||
|
||||
#include <libxml/tree.h>
|
||||
+#include <libxml/parser.h>
|
||||
+
|
||||
#include <stdarg.h>
|
||||
#include <glib-object.h>
|
||||
|
||||
--
|
||||
GitLab
|
||||
|
1
baselibs.conf
Normal file
1
baselibs.conf
Normal file
@ -0,0 +1 @@
|
||||
libgupnp-1_6-0
|
3
gupnp-1.6.6.tar.xz
Normal file
3
gupnp-1.6.6.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c9dc50e8c78b3792d1b0e6c5c5f52c93e9345d3dae2891e311a993a574f5a04f
|
||||
size 245860
|
3
gupnp-1.6.7.tar.xz
Normal file
3
gupnp-1.6.7.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4a61d8a5a8a7270e60ce9cfe9661cc4fa326f045a65718d2eb8ff68afdbef805
|
||||
size 205372
|
1140
gupnp.changes
Normal file
1140
gupnp.changes
Normal file
File diff suppressed because it is too large
Load Diff
151
gupnp.spec
Normal file
151
gupnp.spec
Normal file
@ -0,0 +1,151 @@
|
||||
#
|
||||
# spec file for package gupnp
|
||||
#
|
||||
# Copyright (c) 2024 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_6-0
|
||||
%define sover 1.6
|
||||
|
||||
Name: gupnp
|
||||
Version: 1.6.7
|
||||
Release: 0
|
||||
Summary: Implementation of the UPnP specification
|
||||
License: LGPL-2.1-or-later
|
||||
Group: Development/Libraries/C and C++
|
||||
URL: http://www.gupnp.org/
|
||||
Source0: https://download.gnome.org/sources/gupnp/1.6/%{name}-%{version}.tar.xz
|
||||
Source1: baselibs.conf
|
||||
|
||||
BuildRequires: docbook-xsl-stylesheets
|
||||
BuildRequires: meson >= 0.54.0
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: xsltproc
|
||||
BuildRequires: pkgconfig(gi-docgen)
|
||||
BuildRequires: pkgconfig(gio-2.0) >= 2.66
|
||||
BuildRequires: pkgconfig(glib-2.0) >= 2.66
|
||||
BuildRequires: pkgconfig(gmodule-2.0) >= 2.66
|
||||
BuildRequires: pkgconfig(gobject-2.0) >= 2.66
|
||||
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.6.4
|
||||
BuildRequires: pkgconfig(gssdp-1.6) >= 1.6.2
|
||||
BuildRequires: pkgconfig(libsoup-3.0)
|
||||
BuildRequires: pkgconfig(libxml-2.0)
|
||||
BuildRequires: pkgconfig(uuid)
|
||||
BuildRequires: pkgconfig(vapigen)
|
||||
|
||||
%description
|
||||
GUPnP implements the UPnP specification: resource announcement and
|
||||
discovery, description, control, event notification, and presentation
|
||||
(GUPnP includes basic web server functionality through libsoup). GUPnP
|
||||
does not include helpers for construction or control of specific
|
||||
standardized resources (e.g. MediaServer); this is left for higher level
|
||||
libraries utilizing the GUPnP framework.
|
||||
|
||||
%package -n libgupnp-%{soname}
|
||||
Summary: Implementation of the UPnP specification
|
||||
Group: Development/Libraries/C and C++
|
||||
# libgupnp-1.2.so.1 was wrongly shipped for a while in libgupnp-1_2-0
|
||||
Obsoletes: libgupnp-1_2-0
|
||||
|
||||
%description -n libgupnp-%{soname}
|
||||
GUPnP implements the UPnP specification: resource announcement and
|
||||
discovery, description, control, event notification, and presentation
|
||||
(GUPnP includes basic web server functionality through libsoup). GUPnP
|
||||
does not include helpers for construction or control of specific
|
||||
standardized resources (e.g. MediaServer); this is left for higher level
|
||||
libraries utilizing the GUPnP framework.
|
||||
|
||||
%package -n typelib-1_0-GUPnP-1_0
|
||||
Summary: Implementation of the UPnP specification -- Introspection bindings
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n typelib-1_0-GUPnP-1_0
|
||||
GUPnP implements the UPnP specification: resource announcement and
|
||||
discovery, description, control, event notification, and presentation
|
||||
(GUPnP includes basic web server functionality through libsoup). GUPnP
|
||||
does not include helpers for construction or control of specific
|
||||
standardized resources (e.g. MediaServer); this is left for higher level
|
||||
libraries utilizing the GUPnP framework.
|
||||
|
||||
This package provides the GObject Introspection bindings for GUPnP.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
Documentation for GUPnP.
|
||||
|
||||
%package -n libgupnp-devel
|
||||
Summary: Implementation of the UPnP specification - Development Files
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: libgupnp-%{soname} = %{version}
|
||||
Requires: typelib-1_0-GUPnP-1_0 = %{version}
|
||||
|
||||
%description -n libgupnp-devel
|
||||
GUPnP implements the UPnP specification: resource announcement and
|
||||
discovery, description, control, event notification, and presentation
|
||||
(GUPnP includes basic web server functionality through libsoup). GUPnP
|
||||
does not include helpers for construction or control of specific
|
||||
standardized resources (e.g. MediaServer); this is left for higher level
|
||||
libraries utilizing the GUPnP framework.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
sed -i 's|env python3|python3|' tools/gupnp-binding-tool
|
||||
|
||||
%build
|
||||
%meson \
|
||||
-Dcontext_manager=network-manager \
|
||||
-Dintrospection=true \
|
||||
-Dvapi=true \
|
||||
-Dgtk_doc=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}
|
||||
%python3_fix_shebang
|
||||
|
||||
%ldconfig_scriptlets -n libgupnp-%{soname}
|
||||
|
||||
%files -n libgupnp-%{soname}
|
||||
%license COPYING
|
||||
%doc AUTHORS NEWS
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files -n typelib-1_0-GUPnP-1_0
|
||||
%{_libdir}/girepository-1.0/GUPnP-%{sover}.typelib
|
||||
|
||||
%files doc
|
||||
%doc %{_docdir}/%{name}-%{sover}
|
||||
|
||||
%files -n libgupnp-devel
|
||||
%{_mandir}/man1/gupnp-binding-tool-1.6.1%{?ext_man}
|
||||
%{_bindir}/gupnp-binding-tool-%{sover}
|
||||
%{_includedir}/%{name}-%{sover}
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%{_datadir}/gir-1.0/GUPnP-%{sover}.gir
|
||||
%{_datadir}/vala/vapi/gupnp-%{sover}.deps
|
||||
%{_datadir}/vala/vapi/gupnp-%{sover}.vapi
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user