forked from pool/libupnp
Jan Engelhardt
89f49f4340
- Update to version 1.10.1: + Fix format string for ExtraHeaders. + Use higher port when reuseaddr is set and the default port is busy (boo#1132829). - Drop libupnp-configure.patch: patch seems no longer needed (patch was added before 2013 and only ever rebased without validating its usefulness). - Drop libtool BuildRequires and no longer call autoreconf: since we have no patch left, there is no need to bootstrap. - Bump libpnpn defines to 15 and libixmlver to 11, following upstream chanes (also in baselibs.conf). OBS-URL: https://build.opensuse.org/request/show/760054 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libupnp?expand=0&rev=29
109 lines
3.3 KiB
RPMSpec
109 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package libupnp
|
|
#
|
|
# Copyright (c) 2019 SUSE LLC
|
|
# Copyright (c) 2011, Sascha Peilicke <saschpe@gmx.de>
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define pnpver 15
|
|
%define ixmlver 11
|
|
Name: libupnp
|
|
Version: 1.10.1
|
|
Release: 0
|
|
Summary: An implementation of Universal Plug and Play (UPnP)
|
|
License: BSD-3-Clause
|
|
Group: Development/Libraries/C and C++
|
|
URL: https://github.com/mrjimenez/pupnp
|
|
Source0: https://github.com/pupnp/pupnp/releases/download/release-%{version}/%{name}-%{version}.tar.bz2
|
|
Source1: https://github.com/pupnp/pupnp/releases/download/release-%{version}/%{name}-%{version}.tar.bz2.sha1
|
|
Source42: baselibs.conf
|
|
BuildRequires: libtool
|
|
BuildRequires: pkgconfig
|
|
|
|
%description
|
|
The Portable Universal Plug and Play (UPnP) SDK provides support for building
|
|
UPnP-compliant control points, devices, and bridges on several operating
|
|
systems.
|
|
|
|
%package -n %{name}%{pnpver}
|
|
Summary: An implementation of Universal Plug and Play (UPnP)
|
|
Group: System/Libraries
|
|
|
|
%description -n %{name}%{pnpver}
|
|
The Portable Universal Plug and Play (UPnP) SDK provides support for building
|
|
UPnP-compliant control points, devices, and bridges on several operating
|
|
systems
|
|
|
|
%package -n libixml%{ixmlver}
|
|
Summary: The Portable UPnP SDK's XML library
|
|
Group: System/Libraries
|
|
|
|
%description -n libixml%{ixmlver}
|
|
A C XML parsing library originally created for the Intel UPnP SDK for Linux.
|
|
|
|
%package devel
|
|
Summary: The Portable Universal Plug and Play (UPnP) SDK
|
|
Group: Development/Libraries/C and C++
|
|
Provides: libixml-devel = %{version}-%{release}
|
|
Requires: %{name}%{pnpver} = %{version}
|
|
Requires: libixml%{ixmlver} = %{version}
|
|
|
|
%description devel
|
|
The Portable Universal Plug and Play (UPnP) SDK provides support for building
|
|
UPnP-compliant control points, devices, and bridges on several operating
|
|
systems.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
# the openssl simply does not compile
|
|
%configure \
|
|
--disable-samples \
|
|
--enable-ipv6 \
|
|
--disable-static \
|
|
--enable-reuseaddr \
|
|
--disable-open_ssl \
|
|
--enable-unspecified_server
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%post -p /sbin/ldconfig -n %{name}%{pnpver}
|
|
%postun -p /sbin/ldconfig -n %{name}%{pnpver}
|
|
|
|
%post -p /sbin/ldconfig -n libixml%{ixmlver}
|
|
%postun -p /sbin/ldconfig -n libixml%{ixmlver}
|
|
|
|
%files -n %{name}%{pnpver}
|
|
%doc ChangeLog
|
|
%license COPYING
|
|
%{_libdir}/libupnp.so.%{pnpver}*
|
|
|
|
%files -n libixml%{ixmlver}
|
|
%doc ChangeLog
|
|
%license COPYING
|
|
%{_libdir}/libixml.so.%{ixmlver}*
|
|
|
|
%files -n libupnp-devel
|
|
%{_libdir}/pkgconfig/libupnp.pc
|
|
%{_libdir}/libixml.so
|
|
%{_libdir}/libupnp.so
|
|
%{_includedir}/upnp/
|
|
|
|
%changelog
|