2020-11-20 09:36:56 +01:00
|
|
|
#
|
|
|
|
# spec file for package libupnpp
|
|
|
|
#
|
2024-05-12 20:59:34 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2020-11-20 09:36:56 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-12-23 16:34:40 +01:00
|
|
|
%define so_ver 16
|
2020-11-20 09:36:56 +01:00
|
|
|
Name: libupnpp
|
2024-05-12 20:59:34 +02:00
|
|
|
Version: 0.26.4
|
2020-11-20 09:36:56 +01:00
|
|
|
Release: 0
|
2021-04-15 09:51:05 +02:00
|
|
|
Summary: Library providing a higher level API over libnpupnp or libupnp
|
2020-11-20 09:36:56 +01:00
|
|
|
License: GPL-2.0-or-later
|
|
|
|
Group: Development/Libraries/C and C++
|
2021-04-15 09:51:05 +02:00
|
|
|
URL: https://www.lesbonscomptes.com/upmpdcli/index.html
|
2020-11-20 09:36:56 +01:00
|
|
|
Source0: https://www.lesbonscomptes.com/upmpdcli/downloads/libupnpp-%{version}.tar.gz
|
2022-03-20 11:24:59 +01:00
|
|
|
Source1: https://www.lesbonscomptes.com/upmpdcli/downloads/libupnpp-%{version}.tar.gz.asc
|
|
|
|
Source2: https://www.lesbonscomptes.com/pages/jf-at-dockes.org.pub#/%{name}.keyring
|
2020-11-20 09:36:56 +01:00
|
|
|
BuildRequires: gcc-c++
|
2024-05-12 20:59:34 +02:00
|
|
|
BuildRequires: meson
|
2020-11-20 09:36:56 +01:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(expat)
|
|
|
|
BuildRequires: pkgconfig(libcurl)
|
2023-12-23 16:34:40 +01:00
|
|
|
BuildRequires: pkgconfig(libnpupnp) >= 6.0.0
|
2020-11-20 09:36:56 +01:00
|
|
|
|
|
|
|
%description
|
2021-04-15 09:51:05 +02:00
|
|
|
Libupnpp is a C++ wrapper for libupnp a.k.a Portable UPnP (up to branch 0.17),
|
|
|
|
or its C++ descendant, libnpupnp (versions 0.18 and later).
|
|
|
|
|
|
|
|
Libupnpp can be used to implement UPnP devices and services, or Control Points.
|
|
|
|
The Control Point side of libupnpp, which is documented here,
|
|
|
|
allows a C++ program to discover UPnP devices, and exchange commands and status with them.
|
2020-11-20 09:36:56 +01:00
|
|
|
|
|
|
|
%package -n %{name}%{so_ver}
|
|
|
|
Summary: Library providing a higher level C++ API over libnpupnp or libupnp
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{name}%{so_ver}
|
2021-04-15 09:51:05 +02:00
|
|
|
Libupnpp is a C++ wrapper for libupnp a.k.a Portable UPnP (up to branch 0.17),
|
|
|
|
or its C++ descendant, libnpupnp (versions 0.18 and later).
|
|
|
|
|
|
|
|
Libupnpp can be used to implement UPnP devices and services, or Control Points.
|
|
|
|
The Control Point side of libupnpp, which is documented here,
|
|
|
|
allows a C++ program to discover UPnP devices, and exchange commands and status with them.
|
2020-11-20 09:36:56 +01:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{name}%{so_ver} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup
|
2024-05-12 20:59:34 +02:00
|
|
|
# fix version
|
|
|
|
sed -i 's/ soversion:.*/ version: '\''16.1.0'\'',/' meson.build
|
2020-11-20 09:36:56 +01:00
|
|
|
|
|
|
|
%build
|
2024-05-12 20:59:34 +02:00
|
|
|
%meson
|
|
|
|
%meson_build
|
2020-11-20 09:36:56 +01:00
|
|
|
|
|
|
|
%install
|
2024-05-12 20:59:34 +02:00
|
|
|
%meson_install
|
2020-11-20 09:36:56 +01:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig -n %{name}%{so_ver}
|
|
|
|
%postun -p /sbin/ldconfig -n %{name}%{so_ver}
|
|
|
|
|
|
|
|
%files -n %{name}%{so_ver}
|
|
|
|
%license COPYING
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
2021-04-15 09:51:05 +02:00
|
|
|
%files devel
|
2022-03-20 11:24:59 +01:00
|
|
|
%license COPYING
|
2020-11-20 09:36:56 +01:00
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%changelog
|