rebuilt with USE_STATIC_MBEDTLS_LIBRARY=ON (possibly required for obs-studio) [release 3.6.2-2mamba;Mon Jan 20 2025]
This commit is contained in:
parent
2aa17f38a8
commit
74b88d7b13
18
mbedtls.spec
18
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 <silvan.calarco@mambasoft.it> 3.6.2-2mamba
|
||||
- rebuilt with USE_STATIC_MBEDTLS_LIBRARY=ON (possibly required for obs-studio)
|
||||
|
||||
* Wed Oct 16 2024 Automatic Build System <autodist@openmamba.org> 3.6.2-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user