commit 46b6c923c02e8e8d544b89394898aac89b310638
Author: Jakub Bogusz <[email protected]>
Date:   Tue May 12 18:17:34 2020 +0200

    - added pc patch: add Requires.private to gupnp-av-1.0.pc to get include 
paths for required headers; release 2

 gupnp-av-pc.patch | 10 ++++++++++
 gupnp-av.spec     |  8 +++++---
 2 files changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/gupnp-av.spec b/gupnp-av.spec
index c26738c..d206336 100644
--- a/gupnp-av.spec
+++ b/gupnp-av.spec
@@ -8,11 +8,12 @@ Summary(pl.UTF-8):    Biblioteka do budowania aplikacji UPnP 
A/V
 Name:          gupnp-av
 # note: 0.12.x is stable, 0.13.x unstable
 Version:       0.12.11
-Release:       1
+Release:       2
 License:       LGPL v2+
 Group:         Libraries
 Source0:       
http://ftp.gnome.org/pub/GNOME/sources/gupnp-av/0.12/%{name}-%{version}.tar.xz
 # Source0-md5: f09e99ae20271b0a8cadce806098ae8b
+Patch0:                %{name}-pc.patch
 URL:           http://gupnp.org/
 BuildRequires: autoconf >= 2.63
 BuildRequires: automake >= 1:1.11
@@ -68,7 +69,7 @@ Summary:      gupnp-av library API documentation
 Summary(pl.UTF-8):     Dokumentacja API biblioteki gupnp-av
 Group:         Documentation
 Requires:      gtk-doc-common
-%if "%{_rpmversion}" >= "5"
+%if "%{_rpmversion}" >= "4.6"
 BuildArch:     noarch
 %endif
 
@@ -84,7 +85,7 @@ Summary(pl.UTF-8):    API języka Vala dla biblioteki gupnp-av
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 Requires:      vala >= 2:0.22
-%if "%{_rpmversion}" >= "5"
+%if "%{_rpmversion}" >= "4.6"
 BuildArch:     noarch
 %endif
 
@@ -96,6 +97,7 @@ API języka Vala dla biblioteki gupnp-av.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__gtkdocize}
diff --git a/gupnp-av-pc.patch b/gupnp-av-pc.patch
new file mode 100644
index 0000000..64d1d63
--- /dev/null
+++ b/gupnp-av-pc.patch
@@ -0,0 +1,10 @@
+gupnp-av headers include some glib and libxml2 headers, so libxml2 Cflags are 
required to use gupnp-av
+--- gupnp-av-0.12.11/gupnp-av-1.0.pc.in.orig   2017-05-14 10:19:09.000000000 
+0200
++++ gupnp-av-0.12.11/gupnp-av-1.0.pc.in        2020-05-12 07:34:04.839649008 
+0200
+@@ -6,5 +6,6 @@
+ Name: gupnp-av-1.0
+ Description: GObject-based AV specific UPnP library
+ Version: @VERSION@
++Requires.private: glib-2.0 gobject-2.0 libxml-2.0
+ Libs: -L${libdir} -lgupnp-av-1.0
+ Cflags: -I${includedir}/gupnp-av-1.0
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gupnp-av.git/commitdiff/46b6c923c02e8e8d544b89394898aac89b310638

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

Reply via email to