Update to 1.14.9

epel9^2
Nicolas Chauvet 4 years ago
parent 45fd53e60c
commit f02a1a557c

1
.gitignore vendored

@ -1 +1,2 @@
libupnp-*.tar.bz2
libupnp-*.tar.gz

@ -1,68 +0,0 @@
From 3968f7725a2eab6e579055ee44420f44c4a0be73 Mon Sep 17 00:00:00 2001
From: Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com>
Date: Sun, 1 Aug 2021 20:44:13 -0300
Subject: [PATCH] ithread: Remove references to
pthread_mutexattr_{g,s}etkind_np
---
upnp/inc/ithread.h | 33 ++++++++++++++-------------------
1 file changed, 14 insertions(+), 19 deletions(-)
diff --git a/upnp/inc/ithread.h b/upnp/inc/ithread.h
index f6800ea9..2087466b 100644
--- a/upnp/inc/ithread.h
+++ b/upnp/inc/ithread.h
@@ -304,11 +304,8 @@ static UPNP_INLINE int ithread_cleanup_thread(void)
* Returns EINVAL if the kind is not supported.
* See man page for pthread_mutexattr_setkind_np
*****************************************************************************/
-#if defined(PTHREAD_MUTEX_RECURSIVE) || defined(__DragonFly__)
- #define ithread_mutexattr_setkind_np pthread_mutexattr_settype
-#else
- #define ithread_mutexattr_setkind_np pthread_mutexattr_setkind_np
-#endif /* UPNP_USE_RWLOCK */
+#define ithread_mutexattr_setkind_np pthread_mutexattr_settype
+#define ithread_mutexattr_settype pthread_mutexattr_settype
/****************************************************************************
* Function: ithread_mutexattr_getkind_np
@@ -329,11 +326,8 @@ static UPNP_INLINE int ithread_cleanup_thread(void)
* Always returns 0.
* See man page for pthread_mutexattr_getkind_np
*****************************************************************************/
-#if defined(PTHREAD_MUTEX_RECURSIVE) || defined(__DragonFly__)
- #define ithread_mutexattr_getkind_np pthread_mutexattr_gettype
-#else
- #define ithread_mutexattr_getkind_np pthread_mutexattr_getkind_np
-#endif /* UPNP_USE_RWLOCK */
+#define ithread_mutexattr_getkind_np pthread_mutexattr_gettype
+#define ithread_mutexattr_gettype pthread_mutexattr_gettype
/****************************************************************************
* Function: ithread_mutex_init
@@ -898,15 +892,16 @@ static UPNP_INLINE int ithread_cleanup_thread(void)
#ifdef _WIN32
#define imillisleep Sleep
#else
-#if _POSIX_C_SOURCE < 200809L
- #define imillisleep(x) usleep(1000 * x)
-#else
- #define imillisleep(x) \
- do { \
- const struct timespec req = {0, x * 1000 * 1000}; \
- nanosleep(&req, NULL); \
- } while(0)
-#endif
+ #if _POSIX_C_SOURCE < 200809L
+ #define imillisleep(x) usleep(1000 * x)
+ #else
+ #define imillisleep(x) \
+ do { \
+ const struct timespec req = { \
+ 0, x * 1000 * 1000}; \
+ nanosleep(&req, NULL); \
+ } while (0)
+ #endif
#endif
#if !defined(PTHREAD_MUTEX_RECURSIVE) && !defined(__DragonFly__) && \

@ -1,14 +1,14 @@
Version: 1.14.7
Version: 1.14.9
Summary: Universal Plug and Play (UPnP) SDK
Name: libupnp
Release: 3%{?dist}
Release: 1%{?dist}
License: BSD
URL: https://sourceforge.net/projects/pupnp
Source: https://downloads.sourceforge.net/pupnp/%{name}-%{version}.tar.bz2
Patch0: 334.patch
URL: https://github.com/pupnp/pupnp
Source: %{url}/archive/release-%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: make
BuildRequires: libtool
%description
@ -25,11 +25,11 @@ The libupnp-devel package contains the files necessary for development with
the UPnP SDK libraries.
%prep
%setup -q
%autosetup -p1 -n pupnp-release-%{version}
%patch0 -p1
%build
autoreconf -vif
%configure \
--enable-static=no \
--enable-ipv6
@ -60,6 +60,9 @@ sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%{_libdir}/pkgconfig/libupnp.pc
%changelog
* Mon Aug 16 2021 Nicolas Chauvet <kwizart@gmail.com> - 1.14.9-1
- Update to 1.14.9
* Mon Aug 02 2021 Gwyn Ciesla <gwync@protonmail.com> - 1.14.7-3
- Upstream patch to fix FTBFS.

@ -1 +1 @@
SHA512 (libupnp-1.14.7.tar.bz2) = 8aacde63655d8673d50452c1c9e00c8e379e9a938bb0f510ab56764c397402519ca72d4481208ab08d7e2f5eb494f2713fed63a734401f62a9674a340f998e11
SHA512 (libupnp-1.14.9.tar.gz) = c8014e31e28accf5d139e00530f073aee350c4a79a3ded0d12a16e54aaf1cbd77b36d4eb6ede511b398b5a328a04d8c95a4fc417715f063bcf9c6e4e91bc057b

Loading…
Cancel
Save