Sisyphus repositório
Última atualização: 12 novembro 2019 | SRPMs: 17528 | Visitas: 15704650
en ru br
ALT Linux repositórios
S:2.11.0-alt3

Group :: System/Legacy libraries
RPM: mbedtls11

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define pkgname mbedtls
%define so_tls_version 11

Name: %pkgname%so_tls_version
Version: 2.11.0
Release: alt3

Summary: Transport Layer Security protocol suite
License: Apache
Group: System/Legacy libraries

Url: https://tls.mbed.org/
Packager: Nazarov Denis <nenderus at altlinux.org>
Source: https://tls.mbed.org/download/%pkgname-%version-apache.tgz

Patch0: %pkgname-threading-alt.patch

BuildRequires: cmake
BuildRequires: libmbedx509-0
BuildRequires: libpkcs11-helper-devel
BuildRequires: zlib-devel

%description
mbed TLS is a light-weight open source cryptographic and SSL/TLS
library written in C. mbed TLS makes it easy for developers to include
cryptographic and SSL/TLS capabilities in their (embedded)
applications with as little hassle as possible.

%package -n lib%pkgname%so_tls_version
Summary: Transport Layer Security protocol suite
Group: System/Legacy libraries
Conflicts: hiawatha

%description -n lib%pkgname%so_tls_version
mbed TLS is a light-weight open source cryptographic and SSL/TLS
library written in C. mbed TLS makes it easy for developers to include
cryptographic and SSL/TLS capabilities in their (embedded)
applications with as little hassle as possible.

%prep
%setup -n %pkgname-%version
%patch0 -p1

%build
%__mkdir_p %_target_platform
pushd %_target_platform

cmake .. \
-DCMAKE_INSTALL_PREFIX:PATH=%prefix \
-DCMAKE_C_FLAGS:STRING='%optflags' \
-DENABLE_ZLIB_SUPPORT:BOOL=TRUE \
-DLIB_INSTALL_DIR:PATH=%_libdir \
-DUSE_SHARED_MBEDTLS_LIBRARY:BOOL=TRUE \
   -DUSE_STATIC_MBEDTLS_LIBRARY:BOOL=FALSE \
-DUSE_PKCS11_HELPER_LIBRARY:BOOL=TRUE \
-DCMAKE_BUILD_TYPE:STRING="Release"

popd

%make_build -C %_target_platform

%install
%makeinstall_std -C %_target_platform
%__rm -rf %buildroot{%_bindir,%_includedir}
%__rm -rf %buildroot%_libdir/*.{so,a}
%__rm -rf %buildroot%_libdir/libmbedcrypto.so.*
%__rm -rf %buildroot%_libdir/libmbedx509.so.*

%files -n lib%pkgname%so_tls_version
%_libdir/lib%pkgname.so.*

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009