Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
cd23c91ec3
!7 Fix build failure caused by gupnp upgrade to 1.6.4
From: @starlet-dx 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-08-10 11:40:43 +00:00
starlet-dx
925b539924 Fix build failure caused by gupnp upgrade to 1.6.4 2023-08-10 16:49:43 +08:00
openeuler-ci-bot
dff7cac2fd
!6 Update to 1.14.1
From: @dwl301 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-02-02 11:07:58 +00:00
dwl301
c7c5282ae6 Update to 1.14.1 2023-02-01 16:18:33 +08:00
openeuler-ci-bot
b73a45fa14
!3 Update to 0.14.0
From: @zhang__3125 
Reviewed-by: @overweight 
Signed-off-by: @overweight
2022-06-01 10:45:11 +00:00
zhang__3125
fe98918e23 Update to 0.14.0 2022-04-13 19:16:30 +08:00
openeuler-ci-bot
09150f983a !2 Upgrade to 0.12.11
From: @weijin-deng
Reviewed-by: @overweight
Signed-off-by: @overweight
2021-06-07 20:55:10 +08:00
weijin-deng
7e0895598c Upgrade to 0.12.11
Update Version, Release
2021-06-07 14:19:33 +08:00
openeuler-ci-bot
4f3079eb69 !1 package init
Merge pull request !1 from zhanghua/test
2020-06-19 18:08:12 +08:00
zhanghua1831
fef36a9b61 package init 2020-06-19 17:26:18 +08:00
4 changed files with 148 additions and 0 deletions

View 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

Binary file not shown.

84
gupnp-av.spec Normal file
View 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
View File

@ -0,0 +1,4 @@
version_control: git
src_repo: gupng-av
tag_prefix: ^gupng-av-
seperator: .