File mingw64-libressl.spec of Package mingw64-libressl
#
# spec file for package mingw64-libressl
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mingw64-libressl
Version: 3.7.1
Release: 0
Summary: An SSL/TLS protocol implementation
License: OpenSSL
Group: Development/Libraries/C and C++
URL: https://libressl.org/
#Freshcode-URL: http://freshcode.club/projects/libressl
#Git-Clone: git://github.com/libressl-portable/portable
#See-Also: git://github.com/libressl-portable/openbsd
Source: http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-%version.tar.gz
Source2: http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-%version.tar.gz.asc
Source3: %name.keyring
Source9: rpmlintrc
Patch1: des-fcrypt.diff
Patch2: extra-symver.diff
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: libtool
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem
Conflicts: mingw64-openssl
%_mingw64_package_header_debug
BuildArch: noarch
#!BuildIgnore: post-build-checks
%description
LibreSSL is an open-source implementation of the Secure Sockets Layer
(SSL) and Transport Layer Security (TLS) protocols. It derives from
OpenSSL, with the aim of refactoring the OpenSSL code so as to
provide a more secure implementation.
%package -n mingw64-libcrypto50
Summary: An SSL/TLS protocol implementation
Group: System/Libraries
%description -n mingw64-libcrypto50
The "crypto" library implements a wide range of cryptographic
algorithms used in various Internet standards. The services provided
by this library are used by the LibreSSL implementations of SSL, TLS
and S/MIME, and they have also been used to implement SSH, OpenPGP,
and other cryptographic standards.
%package -n mingw64-libssl53
Summary: An SSL/TLS protocol implementation
Group: System/Libraries
%description -n mingw64-libssl53
LibreSSL is an open-source implementation of the Secure Sockets Layer
(SSL) and Transport Layer Security (TLS) protocols. It derives from
OpenSSL and intends to provide a more secure implementation.
%package -n mingw64-libtls26
Summary: A simplified interface for the OpenSSL/LibreSSL TLS protocol implementation
Group: System/Libraries
%description -n mingw64-libtls26
LibreSSL is an open-source implementation of the Secure Sockets Layer
(SSL) and Transport Layer Security (TLS) protocols. It derives from
OpenSSL and intends to provide a more secure implementation.
The libtls library provides a modern and simplified interface (of
libssl) for secure client and server communications.
%package devel
Summary: Development files for LibreSSL, an SSL/TLS protocol implementation
Group: Development/Libraries/C and C++
Conflicts: mingw64-libopenssl-devel
%description devel
LibreSSL is an open-source implementation of the Secure Sockets Layer
(SSL) and Transport Layer Security (TLS) protocols. It derives from
OpenSSL, with the aim of refactoring the OpenSSL code so as to
provide a more secure implementation.
This subpackage contains libraries and header files for developing
applications that want to make use of libressl.
%package devel-doc
Summary: Documentation for the LibreSSL API
Group: Documentation/Man
Conflicts: mingw64-libopenssl-devel
%description devel-doc
LibreSSL is an open-source implementation of the Secure Sockets Layer
(SSL) and Transport Layer Security (TLS) protocols.
This subpackage contains the manpages to the LibreSSL API.
%_mingw64_debug_package
%prep
%autosetup -p1 -n libressl-%version
%build
# In openSUSE mingw, we have the luxury of libgcc.
perl -i -pe 's{-static-libgcc}{}' configure.ac
# avoid dropping libraries
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
autoreconf -fi
MINGW64_LDFLAGS="-lssp %{_mingw64_ldflags}" \
%if 0%{?leap_version} <= 420300
%_mingw64_configure
%else
%_mingw64_configure --enable-libtls
%endif
%make_build
%install
%make_install
b="%buildroot"
rm -f "$b/%_mingw64_libdir"/libcrypto.a "$b/%_mingw64_libdir"/libssl.a \
"$b/%_mingw64_libdir"/libtls.a "$b/%_mingw64_libdir"/*.la
for i in "$b/%_mingw64_mandir"/man*; do
pushd "$i"
for j in *.*; do
mv "$j" "${j}ssl"
done
popd
done
%files
%_mingw64_sysconfdir/ssl/
%_mingw64_bindir/*.exe
%_mingw64_mandir/man1/*.1*
%_mingw64_mandir/man5/*.5*
%_mingw64_mandir/man8/*.8*
%license COPYING
%files -n mingw64-libcrypto50
%_mingw64_bindir/libcrypto-50.dll
%files -n mingw64-libssl53
%_mingw64_bindir/libssl-53.dll
%files -n mingw64-libtls26
%_mingw64_bindir/libtls-26.dll
%files devel
%_mingw64_includedir/openssl/
%_mingw64_includedir/tls.h
%_mingw64_libdir/*.dll.a
%_mingw64_libdir/pkgconfig/*.pc
%files devel-doc
%_mingw64_mandir/man3/*.3*
%changelog