|
|
|
@ -2,9 +2,13 @@
|
|
|
|
|
%global _docdir_fmt %{name}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel}
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: mbedtls
|
|
|
|
|
Version: 2.16.12
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Version: 2.28.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Light-weight cryptographic and SSL/TLS library
|
|
|
|
|
License: ASL 2.0
|
|
|
|
|
URL: https://tls.mbed.org/
|
|
|
|
@ -18,10 +22,8 @@ BuildRequires: graphviz
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
BuildRequires: python3
|
|
|
|
|
|
|
|
|
|
# replace polarssl with mbedtls
|
|
|
|
|
|
|
|
|
|
Obsoletes: polarssl < 1.3.10
|
|
|
|
|
Provides: polarssl = %{version}-%{release}
|
|
|
|
|
Obsoletes: mbedtls-utils < 2.28.0-0
|
|
|
|
|
Obsoletes: mbedtls-static < 2.28.0-0
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Mbed TLS is a light-weight open source cryptographic and SSL/TLS
|
|
|
|
@ -30,15 +32,6 @@ cryptographic and SSL/TLS capabilities in their (embedded)
|
|
|
|
|
applications with as little hassle as possible.
|
|
|
|
|
FOSS License Exception: https://tls.mbed.org/foss-license-exception
|
|
|
|
|
|
|
|
|
|
%package utils
|
|
|
|
|
Summary: Utilities for %{name}
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
Obsoletes: polarssl-utils < 1.3.10
|
|
|
|
|
Provides: polarssl-utils = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description utils
|
|
|
|
|
Cryptographic utilities based on %{name}.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
@ -49,14 +42,6 @@ Provides: polarssl-devel = %{version}-%{release}
|
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
%package static
|
|
|
|
|
Summary: Static files for %{name}
|
|
|
|
|
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description static
|
|
|
|
|
The %{name}-static package contains static files for
|
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation files for %{name}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
@ -72,13 +57,17 @@ sed -i 's|//\(#define MBEDTLS_THREADING_C\)|\1|' include/mbedtls/config.h
|
|
|
|
|
sed -i 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' include/mbedtls/config.h
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export CFLAGS="%{optflags} -Wno-stringop-overflow -Wno-maybe-uninitialized"
|
|
|
|
|
export CXXLAGS="%{optflags} -Wno-stringop-overflow -Wno-maybe-uninitialized"
|
|
|
|
|
|
|
|
|
|
%cmake \
|
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
|
-DLINK_WITH_PTHREAD=ON \
|
|
|
|
|
-DINSTALL_MBEDTLS_HEADERS=ON \
|
|
|
|
|
-DENABLE_PROGRAMS=OFF \
|
|
|
|
|
-DUSE_SHARED_MBEDTLS_LIBRARY=ON \
|
|
|
|
|
-DUSE_STATIC_MBEDTLS_LIBRARY=ON
|
|
|
|
|
-DUSE_STATIC_MBEDTLS_LIBRARY=OFF \
|
|
|
|
|
-DGEN_FILES=OFF
|
|
|
|
|
|
|
|
|
|
%cmake_build
|
|
|
|
|
make apidoc
|
|
|
|
@ -86,11 +75,8 @@ make apidoc
|
|
|
|
|
%install
|
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
|
|
|
|
|
mv $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_libexecdir}/mbedtls
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%ctest
|
|
|
|
|
%ctest --output-on-failure --force-new-ctest-process --parallel 1
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
@ -100,20 +86,19 @@ mv $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_libexecdir}/mbedtls
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
|
|
%files utils
|
|
|
|
|
%{_libexecdir}/%{name}/
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/mbedtls/
|
|
|
|
|
%{_includedir}/psa/
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
|
|
|
|
|
%files static
|
|
|
|
|
%{_libdir}/*.a
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc apidoc/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Jan 22 2022 Morten Stevens <mstevens@fedoraproject.org> - 2.28.0-1
|
|
|
|
|
- Update to 2.28.0
|
|
|
|
|
- Dropped support for utils and static subpackage
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.16.12-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|