X-Git-Url: http://git.pld-linux.org/?p=packages%2Fopenssl.git;a=blobdiff_plain;f=openssl.spec;h=3d09b5375c1bbec52729ff0c5dc4c49aef23da5e;hp=23ccce135194e2c5398e82aa409480251c103833;hb=HEAD;hpb=657674fb119272462329c93cb8aed26af759c05e diff --git a/openssl.spec b/openssl.spec index 23ccce1..e1cc8b6 100644 --- a/openssl.spec +++ b/openssl.spec @@ -1,17 +1,9 @@ -# TODO -# - consider dropping last optflags.patch hunk and return to SOMAJOR (.so.1) sonames -# - find a way to simplify (drop) openssl-optflags.patch, it's pain to update here in pld # # Conditional build: %bcond_without tests # don't perform "make tests" %bcond_without zlib # zlib: note - enables CVE-2012-4929 vulnerability -%bcond_without sslv2 # SSLv2: note - many flaws http://en.wikipedia.org/wiki/Transport_Layer_Security#SSL_2.0 -%bcond_without sslv3 # SSLv3: note - enables CVE-2014-3566 vulnerability -%bcond_with purify # Compile openssl with "-DPURIFY", useful when one wants to - # use valgrind debugger against openssl-linked programs -%bcond_with snap # use GitHub snapshot to build branch release +%bcond_with sslv3 # SSLv3: note - enables CVE-2014-3566 vulnerability -%include /usr/lib/rpm/macros.perl Summary: OpenSSL Toolkit libraries for the "Secure Sockets Layer" (SSL v2/v3) Summary(de.UTF-8): Secure Sockets Layer (SSL)-Kommunikationslibrary Summary(es.UTF-8): Biblioteca C que suministra algoritmos y protocolos criptográficos @@ -21,44 +13,41 @@ Summary(pt_BR.UTF-8): Uma biblioteca C que fornece vários algoritmos e protocol Summary(ru.UTF-8): Библиотеки и утилиты для соединений через Secure Sockets Layer Summary(uk.UTF-8): Бібліотеки та утиліти для з'єднань через Secure Sockets Layer Name: openssl -# 1.0.2 will be LTS release -# Version 1.0.2 will be supported until 2019-12-31. -# https://www.openssl.org/about/releasestrat.html -Version: 1.0.2i +Version: 3.3.0 Release: 1 -License: Apache-like +License: Apache v2.0 Group: Libraries -%if %{without snap} -Source0: https://www.openssl.org/source/%{name}-%{version}.tar.gz -# Source0-md5: 9392e65072ce4b614c1392eefc1f23d0 -%else -Source1: https://github.com/openssl/openssl/archive/OpenSSL_1_0_2-stable/%{name}-%{version}-dev.tar.gz -%endif +Source0: https://github.com/openssl/openssl/releases/download/openssl-%{version}/%{name}-%{version}.tar.gz +# Source0-md5: c8b063afbea85d867e161ecb8816cfa9 Source2: %{name}.1.pl Source3: %{name}-ssl-certificate.sh Source4: %{name}-c_rehash.sh -Patch0: %{name}-alpha-ccc.patch -Patch1: %{name}-optflags.patch -Patch2: %{name}-include.patch -Patch3: %{name}-man-namespace.patch -Patch4: %{name}-asflag.patch -Patch5: %{name}-ca-certificates.patch -Patch6: %{name}-ldflags.patch -Patch7: %{name}-find.patch -Patch8: pic.patch -Patch10: %{name}_fix_for_x32.patch +Patch0: %{name}-optflags.patch +Patch1: %{name}-ca-certificates.patch +Patch2: %{name}-find.patch +Patch3: pic.patch +Patch4: engines-dir.patch URL: http://www.openssl.org/ -BuildRequires: bc -BuildRequires: perl-devel >= 1:5.6.1 +%ifarch %{arm} ppc mips sparc sparcv9 +BuildRequires: libatomic-devel +%endif +BuildRequires: libbrotli-devel +BuildRequires: libsctp-devel +BuildRequires: linux-libc-headers >= 7:4.13 +BuildRequires: perl-devel >= 1:5.10.0 +BuildRequires: pkgconfig BuildRequires: rpm-perlprov >= 4.1-13 -BuildRequires: rpmbuild(macros) >= 1.213 +BuildRequires: rpmbuild(macros) >= 1.745 BuildRequires: sed >= 4.0 -Requires: ca-certificates >= 20120623-1.1 +BuildRequires: zlib-devel +BuildRequires: zstd-devel +Requires: ca-certificates >= 20141019-3 Requires: rpm-whiteout >= 1.7 -Obsoletes: SSLeay -Obsoletes: SSLeay-devel -Obsoletes: SSLeay-perl -Obsoletes: libopenssl0 +Obsoletes: SSLeay < 0.9.3 +Obsoletes: SSLeay-devel < 0.9.3 +Obsoletes: SSLeay-perl < 0.9.3 +Obsoletes: libopenssl0 < 1 +Obsoletes: openssl-engines < 3.0.0-2 %if "%{pld_release}" == "ac" Conflicts: neon < 0.26.3-3 Conflicts: ntpd < 4.2.4p8-10 @@ -122,53 +111,11 @@ RC4, RSA и SSL. користування, що реалізують велику кількість криптографічних алгоритмів, включаючи DES, RC4, RSA та SSL. -%package engines -Summary: OpenSSL optional crypto engines -Summary(pl.UTF-8): Opcjonalne silniki kryptograficzne dla OpenSSL-a -Group: Libraries -Requires: %{name} = %{version}-%{release} - -%description engines -With OpenSSL 0.9.6, a new component was added to support alternative -cryptography implementations, most commonly for interfacing with -external crypto devices (eg. accelerator cards). This component is -called ENGINE. - -There are currently built-in ENGINE implementations for the following -crypto devices: - -- CryptoSwift -- Compaq Atalla -- nCipher CHIL -- Nuron -- Broadcom uBSec - -In addition, dynamic binding to external ENGINE implementations is now -provided by a special ENGINE called "dynamic". - -%description engines -l pl.UTF-8 -Począwszy od OpenSSL-a 0.9.6 został dodany nowy komponent, mający -wspierać alternatywne implementacje kryptografii, przeważnie -współpracujące z zewnętrznymi urządzeniami kryptograficznymi (np. -kartami akceleratorów). Komponent ten jest nazywany SILNIKIEM (ang. -ENGINE). - -Obecnie istnieją wbudowane implementacje silników dla następujących -urządzeń kryptograficznych: -- CryptoSwift -- Compaq Atalla -- nCipher CHIL -- Nuron -- Broadcom uBSec - -Ponadto zapewnione jest dynamiczne wiązanie dla zewnętrznych -implementacji silników poprzez specjalny silnik o nazwie "dynamic". - %package tools Summary: OpenSSL command line tool and utilities Summary(pl.UTF-8): Zestaw narzędzi i skryptów Group: Applications/Communications -Requires: %{name} = %{version}-%{release} +Requires: %{name}%{?_isa} = %{version}-%{release} Requires: which %description tools @@ -199,8 +146,8 @@ Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para desenvolvimento O Summary(ru.UTF-8): Библиотеки, хедеры и утилиты для Secure Sockets Layer Summary(uk.UTF-8): Бібліотеки, хедери та утиліти для Secure Sockets Layer Group: Development/Libraries -Requires: %{name} = %{version}-%{release} -Obsoletes: libopenssl0-devel +Requires: %{name}%{?_isa} = %{version}-%{release} +Obsoletes: libopenssl0-devel < 1 %description devel Development part of OpenSSL library. @@ -259,51 +206,42 @@ RC4, RSA и SSL. Включает статические библиотеки д бібліотеки для розробки програм з використанням SSL. %prep -%if %{with snap} -%setup -qcT -a1 -mv %{name}-OpenSSL_1_0_2-stable/* . -%else %setup -q -%endif %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 -%patch5 -p1 -%patch6 -p1 -%patch7 -p1 -%patch8 -p1 -%ifarch x32 -%patch10 -p1 -%endif -sed -i -e 's|\$prefix/\$libdir/engines|/%{_lib}/engines|g' Configure +# fails with enable-sctp as of 1.1.1 +%{__rm} test/recipes/80-test_ssl_new.t %build touch Makefile.* -%{__perl} util/perlpath.pl %{__perl} - -OPTFLAGS="%{rpmcflags} %{rpmcppflags} %{?with_purify:-DPURIFY}" \ PERL="%{__perl}" \ %{__perl} ./Configure \ + --prefix=%{_prefix} \ --openssldir=%{_sysconfdir}/%{name} \ --libdir=%{_lib} \ + -Wa,--noexecstack \ shared \ threads \ - %{?with_sslv2:enable-ssl2}%{!?with_sslv2:no-ssl2} \ %{?with_sslv3:enable-ssl3}%{!?with_sslv3:no-ssl3} \ %{!?with_zlib:no-}zlib \ - enable-camelia \ + enable-brotli \ enable-cms \ enable-idea \ enable-md2 \ enable-mdc2 \ enable-rc5 \ enable-rfc3779 \ + enable-sctp \ enable-seed \ - enable-tlsext \ + enable-camellia \ + enable-ktls \ + enable-fips \ + enable-zstd \ %ifarch %{x8664} enable-ec_nistp_64_gcc_128 \ %endif @@ -316,7 +254,7 @@ PERL="%{__perl}" \ %endif %endif %ifarch alpha - linux-alpha+bwx-gcc + linux-alpha-gcc %endif %ifarch %{x8664} linux-x86_64 @@ -342,53 +280,47 @@ PERL="%{__perl}" \ %ifarch sparc64 linux64-sparcv9 %endif -%ifarch armv4 armv5 armv5t armv5te armv5tel +%ifarch %{arm} linux-armv4 %endif +%ifarch aarch64 + linux-aarch64 +%endif -v=$(awk -F= '/^VERSION/{print $2}' Makefile) -test "$v" = %{version}%{?with_snap:-dev} +v=$(awk -F= '/^VERSION=/{print $2}' Makefile) +test "$v" = %{version} -%{__make} -j1 all rehash %{?with_tests:tests} \ +%{__make} all \ CC="%{__cc}" \ - ASFLAG='$(CFLAG) -Wa,--noexecstack' \ + OPTFLAGS="%{rpmcflags} %{rpmcppflags}" \ INSTALLTOP=%{_prefix} -# Rename POD sources of man pages. "openssl_" prefix is added to each -# manpage to avoid potential conflicts with other packages. - -for dir in doc/{apps,ssl,crypto}; do - cd $dir || exit 1; - %{__perl} -pi -e 's/(\W)((?