File mingw32-libressl.spec of Package mingw32-libressl
#
# spec file for package mingw32-libressl
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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: mingw32-libressl
Version: 2.5.3
Release: 0
Summary: An SSL/TLS protocol implementation
License: OpenSSL
Group: Development/Libraries/C and C++
Url: http://libressl.org/
#Git-Clone: git://github.com/libressl-portable/portable
#DL-URL: http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: libtool >= 2
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
Conflicts: mingw32-openssl
%_mingw32_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 mingw32-libcrypto41
Summary: An SSL/TLS protocol implementation
Group: System/Libraries
%description -n mingw32-libcrypto41
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 mingw32-libssl43
Summary: An SSL/TLS protocol implementation
Group: System/Libraries
%description -n mingw32-libssl43
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 mingw32-libtls15
Summary: A simplified interface for the OpenSSL/LibreSSL TLS protocol implementation
Group: System/Libraries
%description -n mingw32-libtls15
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: mingw32-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: mingw32-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.
%_mingw32_debug_package
%prep
%setup -qn libressl-%version
%build
# In openSUSE mingw, we have the luxury of libgcc.
perl -i -pe 's{-static-libgcc}{}' configure.ac
autoreconf -fi
%_mingw32_configure --enable-libtls
make %{?_smp_mflags}
%install
b="%buildroot"
make install DESTDIR="$b"
rm -f "$b/%_mingw32_libdir"/libcrypto.a "$b/%_mingw32_libdir"/libssl.a \
"$b/%_mingw32_libdir"/libtls.a "$b/%_mingw32_libdir"/*.la
for i in "$b/%_mingw32_mandir"/man*; do
pushd "$i"
for j in *.*; do
mv "$j" "${j}ssl"
done
popd
done
%files
%defattr(-,root,root)
%_mingw32_sysconfdir/ssl/
%_mingw32_bindir/*.exe
%_mingw32_mandir/man1/*.1*
%doc COPYING
%files -n mingw32-libcrypto41
%defattr(-,root,root)
%_mingw32_bindir/libcrypto-41.dll
%files -n mingw32-libssl43
%defattr(-,root,root)
%_mingw32_bindir/libssl-43.dll
%files -n mingw32-libtls15
%defattr(-,root,root)
%_mingw32_bindir/libtls-15.dll
%files devel
%defattr(-,root,root)
%_mingw32_includedir/openssl/
%_mingw32_includedir/tls.h
%_mingw32_libdir/*.dll.a
%_mingw32_libdir/pkgconfig/*.pc
%files devel-doc
%defattr(-,root,root)
%_mingw32_mandir/man3/*.*
%changelog