From d0fee68c3a30f9c71262e71d2fd3f48f3412f94f748f62be9c9489d4cc40dd2c Mon Sep 17 00:00:00 2001 From: Arjen de Korte Date: Sun, 9 Nov 2025 17:36:22 +0100 Subject: [PATCH] Update to libupnp-1.14.25 and switch to cmake --- libupnp-1.14.19.tar.bz2 | 3 --- libupnp-1.14.25.tar.bz2 | 3 +++ libupnp.changes | 37 +++++++++++++++++++++++++++++++++++++ libupnp.spec | 30 ++++++++++++++++++------------ 4 files changed, 58 insertions(+), 15 deletions(-) delete mode 100644 libupnp-1.14.19.tar.bz2 create mode 100644 libupnp-1.14.25.tar.bz2 diff --git a/libupnp-1.14.19.tar.bz2 b/libupnp-1.14.19.tar.bz2 deleted file mode 100644 index a9a0ceb..0000000 --- a/libupnp-1.14.19.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b6423c573b758d09539f5e6c4712c1a9fd35dccf835f81d99473d50a50ad49b0 -size 693322 diff --git a/libupnp-1.14.25.tar.bz2 b/libupnp-1.14.25.tar.bz2 new file mode 100644 index 0000000..b6fb9c4 --- /dev/null +++ b/libupnp-1.14.25.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36fdf15767573f4f92320f01b3fd3c1cb41732b91cfc24d10d1e6a55969c9f56 +size 689990 diff --git a/libupnp.changes b/libupnp.changes index 474429b..207d67a 100644 --- a/libupnp.changes +++ b/libupnp.changes @@ -1,3 +1,40 @@ +------------------------------------------------------------------- +Sun Nov 9 16:16:04 UTC 2025 - Arjen de Korte + +- Update to release 1.14.25 + * no changelog +- Update to release 1.14.24 + * Fix possible close() on non-initialized socket. + * ssdp_device.c: Fix missing casts in setsockopt() + * Windows thinks argument 4 of setsockopt() is a const char *. Add casts + to avoid build errors with GCC. + * Fixes: 52cb6b52d2 ("ssdp_device.c: Bind SSDP UDP response to 1900") +- Update to release 1.14.23 + * Improve SSDP initialization and error handling (#486) + * It was possible for some uninitialized garbage to cause getaddrinfo() to + fail on glibc 2.41, which would crash the client program. Instead, + zero the whole struct, and gracefully handle getaddrinfo() failures. +- Update to release 1.14.22 + * Fix broken compilation on Alpine 3.21 / gcc-14.2 +- Update to release 1.14.21 + * Fix subs not working on Windows due to missing netmask + * Lots of IXML fuzzer fixes + * ssdp_device.c: Bind SSDP UDP response to 1900 +- Update to release 1.14.20 + * ixml has its own version + * Add CORS header to avoid browser warnings + * Add new API call + * Add internal function + * Implement setting allow-origin in header + * Implement new API call + * Headers do not have to be quoted + * Allow setting MaxJobsTotal for ThreadPools + * fix formats under newer newer MSVC + * fix 32-bit format warnings + * Fixes broken cmake regex + * Fixes cmake redefinition warnings +- Change to cmake in order to provide .cmake in addition to .pc file + ------------------------------------------------------------------- Mon Apr 22 21:50:57 UTC 2024 - Jan Engelhardt diff --git a/libupnp.spec b/libupnp.spec index baad641..59e225a 100644 --- a/libupnp.spec +++ b/libupnp.spec @@ -1,7 +1,7 @@ # # spec file for package libupnp # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2011, Sascha Peilicke # # All modifications and additions to the file contributed by third parties @@ -20,7 +20,7 @@ %define pnpver 17 %define ixmlver 11 Name: libupnp -Version: 1.14.19 +Version: 1.14.25 Release: 0 Summary: An implementation of Universal Plug and Play (UPnP) License: BSD-3-Clause @@ -28,7 +28,8 @@ Group: Development/Libraries/C and C++ URL: https://github.com/pupnp/pupnp Source: https://github.com/pupnp/pupnp/releases/download/release-%version/%name-%version.tar.bz2 Source3: baselibs.conf -BuildRequires: libtool +BuildRequires: cmake >= 3.11 +BuildRequires: gcc-c++ BuildRequires: pkg-config %description @@ -69,17 +70,18 @@ systems. %build # the openssl simply does not compile -%configure \ - --disable-samples \ - --enable-ipv6 \ - --disable-static \ - --enable-reuseaddr \ - --disable-open_ssl \ - --enable-unspecified_server -%make_build +%cmake \ + -DUPNP_BUILD_SAMPLES=OFF \ + -DUPNP_ENABLE_IPV6=ON \ + -DUPNP_BUILD_STATIC=OFF \ + -DUPNP_MINISERVER_REUSEADDR=ON \ + -DUPNP_ENABLE_OPEN_SSL=OFF \ + -DUPNP_ENABLE_UNSPECIFIED_SERVER=ON \ + -DBUILD_TESTING=ON +%cmake_build %install -%make_install +%cmake_install find "%buildroot" -type f -name "*.la" -delete -print %ldconfig_scriptlets -n %name%pnpver @@ -99,5 +101,9 @@ find "%buildroot" -type f -name "*.la" -delete -print %_libdir/libixml.so %_libdir/libupnp.so %_includedir/upnp/ +%dir %_libdir/cmake/IXML +%_libdir/cmake/IXML/*.cmake +%dir %_libdir/cmake/UPNP +%_libdir/cmake/UPNP/*.cmake %changelog -- 2.51.1