[packages/gupnp-igd] - updated to 0.2.3

qboosh qboosh at pld-linux.org
Sat Feb 8 22:39:55 CET 2014


commit 42cd73f0ed3ce61a7b9375e08974417a5a676dc6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Feb 8 22:41:46 2014 +0100

    - updated to 0.2.3

 gupnp-igd.spec | 24 +++++++++++++++++-------
 1 file changed, 17 insertions(+), 7 deletions(-)
---
diff --git a/gupnp-igd.spec b/gupnp-igd.spec
index 6c41eaf..c094f6f 100644
--- a/gupnp-igd.spec
+++ b/gupnp-igd.spec
@@ -1,28 +1,33 @@
+#
+# Conditional build:
+%bcond_without	python	# Python binding
+#
 Summary:	Library to handle UPnP IGD port mapping
 Summary(pl.UTF-8):	Biblioteka do obsługi odwzorowywania portów IGD dla UPnP
 Name:		gupnp-igd
-Version:	0.2.2
-Release:	2
+Version:	0.2.3
+Release:	1
 License:	LGPL v2.1+
 Group:		Libraries
 Source0:	http://ftp.gnome.org/pub/GNOME/sources/gupnp-igd/0.2/%{name}-%{version}.tar.xz
-# Source0-md5:	f881323304185c02634034e3bda714ba
+# Source0-md5:	c0a7b0c4a79e3f6cac45664d764519a4
 URL:		http://gupnp.org/
 BuildRequires:	autoconf >= 2.53
 BuildRequires:	automake
 BuildRequires:	docbook-dtd412-xml
-BuildRequires:	glib2-devel >= 1:2.16.0
+BuildRequires:	glib2-devel >= 1:2.26
 BuildRequires:	gobject-introspection-devel >= 0.10
+BuildRequires:	gssdp-devel
 BuildRequires:	gtk-doc >= 1.0
 BuildRequires:	gupnp-devel >= 0.18.0
 BuildRequires:	libtool
 BuildRequires:	pkgconfig
-BuildRequires:	python-pygobject-devel >= 2.16.0
+%{?with_python:BuildRequires:	python-pygobject-devel >= 2.16.0}
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.219
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	xz
-Requires:	glib2 >= 1:2.16
+Requires:	glib2 >= 1:2.26
 Requires:	gupnp >= 0.18.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -38,7 +43,7 @@ Summary:	Header files for gupnp-igd library
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki gupnp-igd
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
-Requires:	glib2-devel >= 1:2.16
+Requires:	glib2-devel >= 1:2.26
 Requires:	gupnp-devel >= 0.18.0
 
 %description devel
@@ -97,6 +102,7 @@ Wiązania Pythona do gupnp-igd.
 %configure \
 	--disable-silent-rules \
 	--enable-gtk-doc \
+	%{?with_python:--enable-python} \
 	--with-html-dir=%{_gtkdocdir}
 
 # there are some races with gir generation
@@ -108,8 +114,10 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%if %{with python}
 %py_postclean
 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/gupnp/*.{a,la}
+%endif
 
 # obsoleted by pkg-config
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgupnp-igd-1.0.la
@@ -142,8 +150,10 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_gtkdocdir}/gupnp-igd
 
+%if %{with python}
 %files -n python-gupnp-igd
 %defattr(644,root,root,755)
 %dir %{py_sitedir}/gupnp
 %attr(755,root,root) %{py_sitedir}/gupnp/igd.so
 %{py_sitedir}/gupnp/*.py[co]
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gupnp-igd.git/commitdiff/42cd73f0ed3ce61a7b9375e08974417a5a676dc6



More information about the pld-cvs-commit mailing list