Compare commits
10 Commits
8afec4d30a
...
cd23c91ec3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cd23c91ec3 | ||
|
|
925b539924 | ||
|
|
dff7cac2fd | ||
|
|
c7c5282ae6 | ||
|
|
b73a45fa14 | ||
|
|
fe98918e23 | ||
|
|
09150f983a | ||
|
|
7e0895598c | ||
|
|
4f3079eb69 | ||
|
|
fef36a9b61 |
60
Remove-deprecates-xmlRecoverMemory.patch
Normal file
60
Remove-deprecates-xmlRecoverMemory.patch
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
From 9557768121d54fdcedabe7544863515d6a813354 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jens Georg <mail@jensge.org>
|
||||||
|
Date: Thu, 3 Aug 2023 23:52:43 +0200
|
||||||
|
Subject: [PATCH] Remove deprecates xmlRecoverMemory
|
||||||
|
|
||||||
|
Cannot currently remove xmlSchemaValidateStream as validateDoc fails to
|
||||||
|
accept the XSD
|
||||||
|
---
|
||||||
|
libgupnp-av/gupnp-didl-lite-parser.c | 9 +++++++--
|
||||||
|
libgupnp-av/gupnp-feature-list-parser.c | 9 +++++++--
|
||||||
|
2 files changed, 14 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/libgupnp-av/gupnp-didl-lite-parser.c b/libgupnp-av/gupnp-didl-lite-parser.c
|
||||||
|
index 3a5727f..948f934 100644
|
||||||
|
--- a/libgupnp-av/gupnp-didl-lite-parser.c
|
||||||
|
+++ b/libgupnp-av/gupnp-didl-lite-parser.c
|
||||||
|
@@ -230,12 +230,17 @@ gupnp_didl_lite_parser_parse_didl_recursive (GUPnPDIDLLiteParser *parser,
|
||||||
|
GUPnPAVXMLDoc *xml_doc = NULL;
|
||||||
|
gboolean result;
|
||||||
|
|
||||||
|
- doc = xmlRecoverMemory (didl, strlen (didl));
|
||||||
|
+ doc = xmlReadMemory (didl,
|
||||||
|
+ strlen (didl),
|
||||||
|
+ NULL,
|
||||||
|
+ NULL,
|
||||||
|
+ XML_PARSE_NONET | XML_PARSE_RECOVER);
|
||||||
|
if (doc == NULL) {
|
||||||
|
g_set_error (error,
|
||||||
|
G_MARKUP_ERROR,
|
||||||
|
G_MARKUP_ERROR_PARSE,
|
||||||
|
- "Could not parse DIDL-Lite XML:\n%s", didl);
|
||||||
|
+ "Could not parse DIDL-Lite XML:\n%s",
|
||||||
|
+ didl);
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
diff --git a/libgupnp-av/gupnp-feature-list-parser.c b/libgupnp-av/gupnp-feature-list-parser.c
|
||||||
|
index 16208b5..2e7c15d 100644
|
||||||
|
--- a/libgupnp-av/gupnp-feature-list-parser.c
|
||||||
|
+++ b/libgupnp-av/gupnp-feature-list-parser.c
|
||||||
|
@@ -114,12 +114,17 @@ gupnp_feature_list_parser_parse_text
|
||||||
|
xmlNode *element;
|
||||||
|
GList *feature_list = NULL;
|
||||||
|
|
||||||
|
- doc = xmlRecoverMemory (text, strlen (text));
|
||||||
|
+ doc = xmlReadMemory (text,
|
||||||
|
+ strlen (text),
|
||||||
|
+ NULL,
|
||||||
|
+ NULL,
|
||||||
|
+ XML_PARSE_NONET | XML_PARSE_RECOVER);
|
||||||
|
if (doc == NULL) {
|
||||||
|
g_set_error (error,
|
||||||
|
G_MARKUP_ERROR,
|
||||||
|
G_MARKUP_ERROR_PARSE,
|
||||||
|
- "Could not parse FeatureList XML:\n%s", text);
|
||||||
|
+ "Could not parse FeatureList XML:\n%s",
|
||||||
|
+ text);
|
||||||
|
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
BIN
gupnp-av-0.14.1.tar.xz
Normal file
BIN
gupnp-av-0.14.1.tar.xz
Normal file
Binary file not shown.
84
gupnp-av.spec
Normal file
84
gupnp-av.spec
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
Name: gupnp-av
|
||||||
|
Version: 0.14.1
|
||||||
|
Release: 2
|
||||||
|
Summary: A small utility library that aims to ease the handing and implimation of UPnP AV.
|
||||||
|
License: LGPLv2+
|
||||||
|
URL: http://www.gupnp.org/
|
||||||
|
Source0: http://download.gnome.org/sources/gupnp-av/0.14/%{name}-%{version}.tar.xz
|
||||||
|
Patch0: Remove-deprecates-xmlRecoverMemory.patch
|
||||||
|
|
||||||
|
BuildRequires: glib2-devel gtk-doc gobject-introspection-devel libxml2-devel
|
||||||
|
BuildRequires: libsoup-devel vala meson
|
||||||
|
|
||||||
|
%description
|
||||||
|
GUPnP is an object-oriented open source framework for creating UPnP
|
||||||
|
devices and control points, written in C using GObject and libsoup.
|
||||||
|
The GUPnP API is intended to be easy to use, efficient and flexible.
|
||||||
|
|
||||||
|
GUPnP-AV is a collection of helpers for building AV (audio/video)
|
||||||
|
applications using GUPnP.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development package for gupnp-av
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Files for development with %{name}.
|
||||||
|
|
||||||
|
%package help
|
||||||
|
Summary: Documentation files for gupnp-av
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
Provides: gupnp-av-docs = %{version}-%{release}
|
||||||
|
Obsoletes: gupnp-av-docs < %{version}-%{release}
|
||||||
|
|
||||||
|
%description help
|
||||||
|
This package contains developer documentation for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%meson -Dgtk_doc=true
|
||||||
|
%meson_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%meson_install
|
||||||
|
%delete_la
|
||||||
|
|
||||||
|
%check
|
||||||
|
%meson_test
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license COPYING
|
||||||
|
%{_libdir}/libgupnp-av-1.0.so.*
|
||||||
|
%{_libdir}/girepository-1.0/GUPnPAV-1.0.typelib
|
||||||
|
%{_datadir}/gupnp-av/
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_includedir}/gupnp-av-1.0/
|
||||||
|
%{_libdir}/pkgconfig/gupnp-av-1.0.pc
|
||||||
|
%{_libdir}/libgupnp-av-1.0.so
|
||||||
|
%{_datadir}/gir-1.0/GUPnPAV-1.0.gir
|
||||||
|
%{_datadir}/vala/vapi/gupnp-av*
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%doc AUTHORS README.md
|
||||||
|
%{_datadir}/gtk-doc/html/gupnp-av/
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Aug 10 2023 yaoxin <yao_xin001@hoperun.com> - 0.14.1-2
|
||||||
|
- Fix build failure caused by gupnp upgrade to 1.6.4
|
||||||
|
|
||||||
|
* Mon Jan 2 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 0.14.1-1
|
||||||
|
- Update to 0.14.1
|
||||||
|
|
||||||
|
* Mon Mar 28 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 0.14.0-1
|
||||||
|
- Update to 0.14.0
|
||||||
|
|
||||||
|
* Mon Jun 7 2021 weijin deng <weijin.deng@turbolinux.com.cn> - 0.12.11-1
|
||||||
|
- Upgrade to 0.12.11
|
||||||
|
- Update Version, Release
|
||||||
|
|
||||||
|
* Thu Apr 16 2020 wangerfeng <wangerfeng@huawei.com> - 0.12.10-7
|
||||||
|
- Package init
|
||||||
4
gupnp-av.yaml
Normal file
4
gupnp-av.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: git
|
||||||
|
src_repo: gupng-av
|
||||||
|
tag_prefix: ^gupng-av-
|
||||||
|
seperator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user