mirror of
https://abf.rosa.ru/djam/openssl.git
synced 2025-02-23 16:22:50 +00:00
Produce RHEL/Fedora compatibility libraries
This commit is contained in:
parent
7a2dda8a3c
commit
8041ee5e18
1 changed files with 52 additions and 1 deletions
53
openssl.spec
53
openssl.spec
|
@ -5,6 +5,12 @@
|
||||||
%define devname %mklibname openssl -d
|
%define devname %mklibname openssl -d
|
||||||
%define staticname %mklibname openssl -s -d
|
%define staticname %mklibname openssl -s -d
|
||||||
|
|
||||||
|
# patchelf 0.9 is buggy so compat libraries are experimental for now
|
||||||
|
%bcond_without compat
|
||||||
|
%define major_compat 10
|
||||||
|
%define libcrypto_compat %mklibname crypto %{major_compat}
|
||||||
|
%define libssl_compat %mklibname ssl %{major_compat}
|
||||||
|
|
||||||
%define conflict2 %mklibname openssl 0.9.8
|
%define conflict2 %mklibname openssl 0.9.8
|
||||||
|
|
||||||
# Number of threads to spawn when testing some threading fixes.
|
# Number of threads to spawn when testing some threading fixes.
|
||||||
|
@ -15,7 +21,7 @@
|
||||||
Summary: Secure Sockets Layer communications libs & utils
|
Summary: Secure Sockets Layer communications libs & utils
|
||||||
Name: openssl
|
Name: openssl
|
||||||
Version: 1.0.2m
|
Version: 1.0.2m
|
||||||
Release: 1
|
Release: 2
|
||||||
License: BSD-like
|
License: BSD-like
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Url: https://www.openssl.org
|
Url: https://www.openssl.org
|
||||||
|
@ -43,6 +49,11 @@ Patch302: openssl-1.0.2-enginesdir.patch
|
||||||
Patch303: openssl-0.9.8a-no-rpath.patch
|
Patch303: openssl-0.9.8a-no-rpath.patch
|
||||||
Patch304: openssl-1.0.2-test-use-localhost.patch
|
Patch304: openssl-1.0.2-test-use-localhost.patch
|
||||||
BuildRequires: bc
|
BuildRequires: bc
|
||||||
|
%if %{with compat}
|
||||||
|
# readelf is used to produce libcrypto.so.10 and libssl.so.10
|
||||||
|
# needed for compatibility with Fedora/RHEL (Viber etc)
|
||||||
|
BuildRequires: patchelf >= 0.10-0.20170615.2
|
||||||
|
%endif
|
||||||
%{?_with_krb5:BuildRequires: krb5-devel}
|
%{?_with_krb5:BuildRequires: krb5-devel}
|
||||||
BuildRequires: sctp-devel
|
BuildRequires: sctp-devel
|
||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
|
@ -169,6 +180,38 @@ cryptographic algorithms and protocols, including DES, RC4, RSA and SSL.
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
%if %{with compat}
|
||||||
|
%package -n %{libcrypto_compat}
|
||||||
|
Summary: Secure Sockets Layer communications libs (Fedora compatibility only)
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n %{libcrypto_compat}
|
||||||
|
The libraries files are needed for various cryptographic algorithms
|
||||||
|
and protocols, including DES, RC4, RSA and SSL.
|
||||||
|
|
||||||
|
%files -n %{libcrypto_compat}
|
||||||
|
%doc FAQ LICENSE NEWS PROBLEMS README*
|
||||||
|
%{_libdir}/libcrypto.so.%{major_compat}*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
%if %{with compat}
|
||||||
|
%package -n %{libssl_compat}
|
||||||
|
Summary: Secure Sockets Layer communications libs (Fedora compatibility only)
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n %{libssl_compat}
|
||||||
|
The libraries files are needed for various cryptographic algorithms
|
||||||
|
and protocols, including DES, RC4, RSA and SSL.
|
||||||
|
|
||||||
|
%files -n %{libssl_compat}
|
||||||
|
%doc FAQ LICENSE NEWS PROBLEMS README*
|
||||||
|
%{_libdir}/libssl.so.%{major_compat}*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .gost
|
%patch0 -p1 -b .gost
|
||||||
|
@ -311,6 +354,14 @@ chmod 755 %{buildroot}%{_libdir}/openssl-%{major}/engines/*.so*
|
||||||
chmod 755 %{buildroot}%{_libdir}/*.so*
|
chmod 755 %{buildroot}%{_libdir}/*.so*
|
||||||
chmod 755 %{buildroot}%{_bindir}/*
|
chmod 755 %{buildroot}%{_bindir}/*
|
||||||
|
|
||||||
|
%if %{with compat}
|
||||||
|
# RHEL/Fedora compatibility libraries
|
||||||
|
cp %{buildroot}%{_libdir}/libcrypto.so.%{major} %{buildroot}%{_libdir}/libcrypto.so.%{major_compat}
|
||||||
|
cp %{buildroot}%{_libdir}/libssl.so.%{major} %{buildroot}%{_libdir}/libssl.so.%{major_compat}
|
||||||
|
patchelf --set-soname libcrypto.so.%{major_compat} %{buildroot}%{_libdir}/libcrypto.so.%{major_compat}
|
||||||
|
patchelf --set-soname libssl.so.%{major_compat} %{buildroot}%{_libdir}/libssl.so.%{major_compat}
|
||||||
|
%endif
|
||||||
|
|
||||||
# nuke a mistake
|
# nuke a mistake
|
||||||
rm -f %{buildroot}%{_mandir}/man3/.3
|
rm -f %{buildroot}%{_mandir}/man3/.3
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue