# 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.2f
+Version: 1.0.2i
Release: 1
License: Apache-like
Group: Libraries
%if %{without snap}
-Source0: ftp://ftp.openssl.org/source/%{name}-%{version}.tar.gz
-# Source0-md5: b3bf73f507172be9292ea2a8c28b659d
+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.tar.gz
+Source1: https://github.com/openssl/openssl/archive/OpenSSL_1_0_2-stable/%{name}-%{version}-dev.tar.gz
%endif
Source2: %{name}.1.pl
Source3: %{name}-ssl-certificate.sh
%patch6 -p1
%patch7 -p1
%patch8 -p1
+%ifarch x32
%patch10 -p1
+%endif
sed -i -e 's|\$prefix/\$libdir/engines|/%{_lib}/engines|g' Configure
--libdir=%{_lib} \
shared \
threads \
- %{!?with_sslv2:no-ssl2} \
- %{!?with_sslv3:no-ssl3} \
+ %{?with_sslv2:enable-ssl2}%{!?with_sslv2:no-ssl2} \
+ %{?with_sslv3:enable-ssl3}%{!?with_sslv3:no-ssl3} \
%{!?with_zlib:no-}zlib \
enable-camelia \
enable-cms \