]> git.pld-linux.org Git - packages/gupnp-igd.git/blobdiff - gupnp-igd.spec
- updated to 0.2.3
[packages/gupnp-igd.git] / gupnp-igd.spec
index 6c41eaf8e22ecb94bde075a5082ca0edfa182959..c094f6ff098190493217c7a94dc25ccbf9d85283 100644 (file)
@@ -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
This page took 0.474201 seconds and 4 git commands to generate.