File gupnp.spec of Package gupnp.20107
#
# spec file for package gupnp
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gupnp
Version: 1.0.2
Release: 0
Summary: Implementation of the UPnP specification
License: LGPL-2.0+
Group: Development/Libraries/C and C++
Url: http://www.gupnp.org/
Source: http://download.gnome.org/sources/gupnp/1.0/%{name}-%{version}.tar.xz
Source1: baselibs.conf
# PATCH-FIX-UPSTREAM gupnp-validate-host-header.patch boo#1186590 glgo#GNOME/gupnp#24 mgorse@suse.com: validate host header.
Patch0: gupnp-validate-host-header.patch
# Needed for the GTest
BuildRequires: pkgconfig(glib-2.0) >= 2.40.0
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.6.4
BuildRequires: pkgconfig(gssdp-1.0) >= 0.14.15
BuildRequires: pkgconfig(libsoup-2.4) >= 2.28.2
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(uuid)
BuildRequires: pkgconfig(vapigen)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
GUPnP implements the UPnP specification: resource announcement and
discovery, description, control, event notification, and presentation
(GUPnP includes basic web server functionality through libsoup). GUPnP
does not include helpers for construction or control of specific
standardized resources (e.g. MediaServer); this is left for higher level
libraries utilizing the GUPnP framework.
%package -n libgupnp-1_0-4
Summary: Implementation of the UPnP specification
# This is the default context manager we want
Group: Development/Libraries/C and C++
Recommends: NetworkManager
%description -n libgupnp-1_0-4
GUPnP implements the UPnP specification: resource announcement and
discovery, description, control, event notification, and presentation
(GUPnP includes basic web server functionality through libsoup). GUPnP
does not include helpers for construction or control of specific
standardized resources (e.g. MediaServer); this is left for higher level
libraries utilizing the GUPnP framework.
%package -n typelib-1_0-GUPnP-1_0
Summary: Implementation of the UPnP specification -- Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-GUPnP-1_0
GUPnP implements the UPnP specification: resource announcement and
discovery, description, control, event notification, and presentation
(GUPnP includes basic web server functionality through libsoup). GUPnP
does not include helpers for construction or control of specific
standardized resources (e.g. MediaServer); this is left for higher level
libraries utilizing the GUPnP framework.
This package provides the GObject Introspection bindings for GUPnP.
%package -n libgupnp-devel
Summary: Implementation of the UPnP specification - Development Files
Group: Development/Libraries/C and C++
Requires: libgupnp-1_0-4 = %{version}
Requires: typelib-1_0-GUPnP-1_0 = %{version}
%description -n libgupnp-devel
GUPnP implements the UPnP specification: resource announcement and
discovery, description, control, event notification, and presentation
(GUPnP includes basic web server functionality through libsoup). GUPnP
does not include helpers for construction or control of specific
standardized resources (e.g. MediaServer); this is left for higher level
libraries utilizing the GUPnP framework.
%prep
%setup -q
%patch0 -p1
%build
%configure --disable-static \
--with-context-manager=network-manager
%__make %{?jobs:-j%jobs}
%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%clean
rm -rf %{buildroot}
%post -n libgupnp-1_0-4 -p /sbin/ldconfig
%postun -n libgupnp-1_0-4 -p /sbin/ldconfig
%files -n libgupnp-1_0-4
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%{_libdir}/*.so.*
%files -n typelib-1_0-GUPnP-1_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/GUPnP-1.0.typelib
%files -n libgupnp-devel
%defattr(-,root,root)
%{_bindir}/gupnp-binding-tool
%{_includedir}/%{name}-1.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/GUPnP-1.0.gir
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/%{name}
%{_datadir}/vala/vapi/gupnp-1.0.deps
%{_datadir}/vala/vapi/gupnp-1.0.vapi
%changelog