diff -urp redhat.orig/SPECS/openssl.spec redhat/SPECS/openssl.spec --- redhat.orig/SPECS/openssl.spec 2010-06-03 17:59:49.000000000 +0900 +++ redhat/SPECS/openssl.spec 2010-06-03 18:05:40.000000000 +0900 @@ -22,11 +22,11 @@ Summary: A general purpose cryptography library with TLS implementation Name: openssl -Version: 0.9.8n +Version: 0.9.8o Release: 2%{?dist} # We remove certain patented algorithms from the openssl source tarball # with the hobble-openssl script which is included below. -Source: openssl-%{version}-usa.tar.bz2 +Source: openssl-%{version}.tar.gz Source1: hobble-openssl Source2: Makefile.certificate Source6: make-dummy-cert @@ -75,6 +75,15 @@ BuildRequires: mktemp, krb5-devel, perl, BuildRequires: /usr/bin/rename Requires: mktemp, ca-certificates >= 2008-5 +# CentOS5 hack +Requires(post): /sbin/ldconfig coreutils +Requires(postun): /sbin/ldconfig +%ifarch ppc64 s390x sparc64 x86_64 +Provides: libcrypto.so.6()(64bit) libssl.so.6()(64bit) +%else +Provides: libcrypto.so.6 libssl.so.6 +%endif + %description The OpenSSL toolkit provides support for secure communications between machines. OpenSSL includes a certificate management tool and shared @@ -150,7 +159,7 @@ from other formats to the formats used b %patch50 -p1 -b .rng-seed %patch51 -p1 -b .multi-crl -%patch60 -p1 -b .originfo +#%patch60 -p1 -b .originfo # Modify the various perl scripts to reference perl in the right location. perl util/perlpath.pl `dirname %{__perl}` @@ -235,8 +244,10 @@ make -C test apps tests %{__os_install_post} \ fips/fips_standalone_sha1 $RPM_BUILD_ROOT%{_libdir}/libcrypto.so.%{version} >$RPM_BUILD_ROOT%{_libdir}/.libcrypto.so.%{version}.hmac \ ln -sf .libcrypto.so.%{version}.hmac $RPM_BUILD_ROOT%{_libdir}/.libcrypto.so.%{soversion}.hmac \ + ln -sf .libcrypto.so.%{version}.hmac $RPM_BUILD_ROOT%{_libdir}/.libcrypto.so.6.hmac \ fips/fips_standalone_sha1 $RPM_BUILD_ROOT%{_libdir}/libssl.so.%{version} >$RPM_BUILD_ROOT%{_libdir}/.libssl.so.%{version}.hmac \ ln -sf .libssl.so.%{version}.hmac $RPM_BUILD_ROOT%{_libdir}/.libssl.so.%{soversion}.hmac \ + ln -sf .libssl.so.%{version}.hmac $RPM_BUILD_ROOT%{_libdir}/.libssl.so.6.hmac \ %{nil} %install @@ -256,6 +267,7 @@ for lib in $RPM_BUILD_ROOT%{_libdir}/*.s chmod 755 ${lib} ln -s -f `basename ${lib}` $RPM_BUILD_ROOT%{_libdir}/`basename ${lib} .%{version}` ln -s -f `basename ${lib}` $RPM_BUILD_ROOT%{_libdir}/`basename ${lib} .%{version}`.%{soversion} + ln -s -f `basename ${lib}` $RPM_BUILD_ROOT%{_libdir}/`basename ${lib} .%{version}`.6 done # Install a makefile for generating keys and self-signed certs, and a script @@ -376,6 +388,7 @@ rm -rf $RPM_BUILD_ROOT/%{_libdir}/fipsca %attr(0755,root,root) %{_bindir}/openssl %attr(0755,root,root) %{_libdir}/*.so.%{version} %attr(0755,root,root) %{_libdir}/*.so.%{soversion} +%attr(0755,root,root) %{_libdir}/*.so.6 %attr(0644,root,root) %{_libdir}/.libcrypto.so.*.hmac %attr(0644,root,root) %{_libdir}/.libssl.so.*.hmac %attr(0755,root,root) %{_libdir}/openssl