File libressl.spec of Package libressl
#
# spec file for package libressl
#
# Copyright (c) 2019 SUSE LINUX 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: libressl
Version: 2.9.2
Release: 0
Summary: An SSL/TLS protocol implementation
License: OpenSSL
Group: Development/Libraries/C and C++
Url: http://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/%name-%version.tar.gz
Source2: http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/%name-%version.tar.gz.asc
Source3: %name.keyring
Source4: baselibs.conf
Patch1: des-fcrypt.diff
Patch2: extra-symver.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: automake
BuildRequires: libtool
BuildRequires: fdupes
BuildRequires: pkg-config
Obsoletes: ssl
Provides: ssl
Provides: openssl(cli)
%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 libcrypto45
Summary: An SSL/TLS protocol implementation
Group: System/Libraries
%description -n libcrypto45
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 libssl47
Summary: An SSL/TLS protocol implementation
Group: System/Libraries
%description -n libssl47
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 libtls19
Summary: A simplified interface for the OpenSSL/LibreSSL TLS protocol implementation
Group: System/Libraries
%description -n libtls19
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++
Requires: libcrypto45 = %version
Requires: libssl47 = %version
Requires: libtls19 = %version
Conflicts: libopenssl-devel
Conflicts: otherproviders(ssl-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-static
Summary: Development files for LibreSSL, an SSL/TLS protocol implementation
Group: Development/Libraries/C and C++
Requires: libcrypto45 = %version
Requires: libssl47 = %version
Requires: libtls19 = %version
Conflicts: libopenssl-devel
Conflicts: otherproviders(ssl-devel)
%description devel-static
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
%if 0%{?suse_version} >= 1130
BuildArch: noarch
%endif
Conflicts: openssl-doc
%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.
%prep
%setup -q
%patch -P 1 -P 2 -p1
%build
autoreconf -fi
# Some smart people broke disable-static
%configure --enable-libtls
make %{?_smp_mflags}
%install
b="%buildroot"
%make_install
for i in "$b/%_mandir"/man*; do
pushd "$i"
for j in *.*; do
mv "$j" "${j}ssl"
done
popd
done
rm -f "%buildroot/%_sysconfdir/ssl/cert.pem"
%check
if ! make check %{?_smp_mflags}; then
cat tests/test-suite.log
exit 1
fi
%post -n libcrypto45 -p /sbin/ldconfig
%postun -n libcrypto45 -p /sbin/ldconfig
%post -n libssl47 -p /sbin/ldconfig
%postun -n libssl47 -p /sbin/ldconfig
%post -n libtls19 -p /sbin/ldconfig
%postun -n libtls19 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%dir %_sysconfdir/ssl/
%config %_sysconfdir/ssl/openssl.cnf
%config %_sysconfdir/ssl/x509v3.cnf
%_bindir/ocspcheck
%_bindir/openssl
%_mandir/man1/*.1*
%_mandir/man5/*.5*
%doc COPYING
%files -n libcrypto45
%defattr(-,root,root)
%_libdir/libcrypto.so.*
%files -n libssl47
%defattr(-,root,root)
%_libdir/libssl.so.*
%files -n libtls19
%defattr(-,root,root)
%_libdir/libtls.so.*
%files devel
%defattr(-,root,root)
%_includedir/openssl/
%_includedir/tls.h
%_libdir/libcrypto.so
%_libdir/libssl.so
%_libdir/libtls.so
%_libdir/pkgconfig/*.pc
%files devel-static
%_libdir/*.a
%_libdir/*.la
%files devel-doc
%defattr(-,root,root)
%_mandir/man3/*.*
%changelog