commit 6008d9e3eeb5091c3301284681023873b6cf9e05
Author: Jakub Bogusz <[email protected]>
Date:   Sun May 30 09:18:03 2021 +0200

    - updated to 1.2.6
    - added format patch (add format strings in example)

 gupnp-format.patch | 29 +++++++++++++++++++++++++++++
 gupnp.spec         | 10 ++++++----
 2 files changed, 35 insertions(+), 4 deletions(-)
---
diff --git a/gupnp.spec b/gupnp.spec
index 0ab26dc..7a97e91 100644
--- a/gupnp.spec
+++ b/gupnp.spec
@@ -6,12 +6,13 @@ Summary:      UPnP library based on GObject and libsoup
 Summary(pl.UTF-8):     Biblioteka UPnP oparta na bibliotekach GObject i libsoup
 Name:          gupnp
 # note: 1.2.x is stable, 1.3.x unstable
-Version:       1.2.4
+Version:       1.2.6
 Release:       1
 License:       LGPL v2+
 Group:         Libraries
-Source0:       
http://ftp.gnome.org/pub/GNOME/sources/gupnp/1.2/%{name}-%{version}.tar.xz
-# Source0-md5: 7c9c7cd80e36d9fb1e5b0267571fc17d
+Source0:       
https://download.gnome.org/sources/gupnp/1.2/%{name}-%{version}.tar.xz
+# Source0-md5: 88ed75784b63e6e5a7df863b3b8afb12
+Patch0:                %{name}-format.patch
 URL:           https://wiki.gnome.org/Projects/GUPnP
 BuildRequires: docbook-dtd412-xml
 BuildRequires: docbook-dtd44-xml
@@ -22,7 +23,7 @@ BuildRequires:        gtk-doc >= 1.14
 BuildRequires: libsoup-devel >= 2.48.0
 BuildRequires: libuuid-devel >= 1.36
 BuildRequires: libxml2-devel >= 1:2.6.30
-BuildRequires: meson >= 0.48.0
+BuildRequires: meson >= 0.53.0
 BuildRequires: ninja >= 1.5
 BuildRequires: pkgconfig
 BuildRequires: rpm-pythonprov
@@ -110,6 +111,7 @@ API języka Vala dla biblioteki gupnp.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' 
tools/gupnp-binding-tool-1.2
 
diff --git a/gupnp-format.patch b/gupnp-format.patch
new file mode 100644
index 0000000..a2dd725
--- /dev/null
+++ b/gupnp-format.patch
@@ -0,0 +1,29 @@
+--- gupnp-1.2.6/examples/get-volume.c.orig     2021-05-24 16:34:52.798355300 
+0200
++++ gupnp-1.2.6/examples/get-volume.c  2021-05-30 09:12:04.462878396 +0200
+@@ -50,7 +50,7 @@
+                 &error);
+ 
+         if (error != NULL) {
+-                g_critical (error->message);
++                g_critical ("%s", error->message);
+                 g_clear_error (&error);
+         }
+ 
+@@ -111,7 +111,7 @@
+         g_list_free (out_names);
+ 
+         if (error != NULL) {
+-                g_critical (error->message);
++                g_critical ("%s", error->message);
+                 g_clear_error (&error);
+         } else {
+                 g_print ("Current volume: %s\n",
+@@ -147,7 +147,7 @@
+         GUPnPContext *context = gupnp_context_new ("wlp3s0", 0, &error);
+ 
+         if (error != NULL) {
+-                g_error (error->message);
++                g_error ("%s", error->message);
+         }
+ 
+         GUPnPControlPoint *cp = gupnp_control_point_new (context, 
CONTENT_DIR);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gupnp.git/commitdiff/6008d9e3eeb5091c3301284681023873b6cf9e05

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to