Patch7: %{name}-find.patch
Patch8: pic.patch
Patch10: %{name}_fix_for_x32.patch
+Patch11: engines-dir.patch
URL: http://www.openssl.org/
BuildRequires: bc
-BuildRequires: perl-devel >= 1:5.6.1
+BuildRequires: perl-devel >= 1:5.10.0
BuildRequires: rpm-perlprov >= 4.1-13
BuildRequires: rpmbuild(macros) >= 1.213
BuildRequires: sed >= 4.0
%ifarch x32
%patch10 -p1
%endif
-
-sed -i -e 's|\$prefix/\$libdir/engines|/%{_lib}/engines|g' Configure
+%patch11 -p1
%build
touch Makefile.*
OPTFLAGS="%{rpmcflags} %{rpmcppflags} %{?with_purify:-DPURIFY}" \
PERL="%{__perl}" \
%{__perl} ./Configure \
+ --prefix=%{_prefix} \
--openssldir=%{_sysconfdir}/%{name} \
--libdir=%{_lib} \
shared \
%{?with_sslv2:enable-ssl2}%{!?with_sslv2:no-ssl2} \
%{?with_sslv3:enable-ssl3}%{!?with_sslv3:no-ssl3} \
%{!?with_zlib:no-}zlib \
- enable-camelia \
enable-cms \
enable-idea \
enable-md2 \
enable-rc5 \
enable-rfc3779 \
enable-seed \
- enable-tlsext \
%ifarch %{x8664}
enable-ec_nistp_64_gcc_128 \
%endif
%endif
v=$(awk -F= '/^VERSION/{print $2}' Makefile)
-test "$v" = %{version}%{?with_snap:-dev}
+test "$v" = %{version}%{?subver:-%{subver}}%{?with_snap:-dev}
%{__make} -j1 all rehash %{?with_tests:tests} \
CC="%{__cc}" \