From 74b88d7b139548fa0035fe68201d7ba3855fbcd8 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Mon, 20 Jan 2025 15:15:27 +0100 Subject: [PATCH] rebuilt with USE_STATIC_MBEDTLS_LIBRARY=ON (possibly required for obs-studio) [release 3.6.2-2mamba;Mon Jan 20 2025] --- mbedtls.spec | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/mbedtls.spec b/mbedtls.spec index ac487b4..62203a2 100644 --- a/mbedtls.spec +++ b/mbedtls.spec @@ -1,6 +1,6 @@ Name: mbedtls Version: 3.6.2 -Release: 1mamba +Release: 2mamba Summary: A C library that implements cryptographic primitives, X.509 certificate manipulation and the SSL/TLS and DTLS protocols Group: System/Libraries Vendor: openmamba @@ -33,20 +33,10 @@ Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n lib%{name}-devel This package contains libraries and header files for developing applications that use %{name}. -%debug_package +%define toolchain clang %prep %setup -q -## enable flags for non-embedded systems -#sed -i 's|//\(#define MBEDTLS_THREADING_C\)|\1|' include/mbedtls/config.h -#sed -i 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' include/mbedtls/config.h - -## broken in 2.25.0 -#sed -i 's/thread_id, -ret/thread_id, (unsigned int)(-ret)/' programs/ssl/ssl_pthread_server.c -#sed -i 's/thread_id, ret/thread_id, (unsigned int)ret/' programs/ssl/ssl_pthread_server.c -#sed -i 's/ -ret );/ (unsigned int)(-ret) );/' programs/ssl/ssl_pthread_server.c -#sed -i 's/ -ret, error_buf/ (unsigned int)(-ret), error_buf/' programs/ssl/ssl_pthread_server.c -#sed -i 's/04x\\n", ret /04x\\n", (unsigned int)ret /' programs/ssl/ssl_pthread_server.c %build export CC=/usr/bin/clang @@ -54,6 +44,7 @@ export CXX=/usr/bin/clang++ %cmake -d build \ -DUSE_SHARED_MBEDTLS_LIBRARY=ON \ + -DUSE_STATIC_MBEDTLS_LIBRARY=ON \ %ifarch %{ix86} -DCMAKE_C_FLAGS="%{optflags} -mpclmul -msse2 -maes" \ %endif @@ -108,6 +99,9 @@ chmod +x %{buildroot}%{_libdir}/lib*.so* %doc ChangeLog README.md %changelog +* Mon Jan 20 2025 Silvan Calarco 3.6.2-2mamba +- rebuilt with USE_STATIC_MBEDTLS_LIBRARY=ON (possibly required for obs-studio) + * Wed Oct 16 2024 Automatic Build System 3.6.2-1mamba - automatic version update by autodist