Last active
December 26, 2023 05:47
-
-
Save ryochin/cc414bd3dc94069e8c9488dba06af6f9 to your computer and use it in GitHub Desktop.
OpenSSL 3 that installed to /usr/local/openssl-3.xx.xx without docs for CentOS 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: openssl3.2 | |
Version: 3.2.0 | |
Release: 1%{?dist} | |
Summary: Utilities from the general purpose cryptography library with TLS implementation | |
License: Apache License v2.0 | |
URL: https://www.openssl.org/ | |
Source0: https://www.openssl.org/source/openssl-%{version}.tar.gz | |
BuildRequires: perl-IPC-Cmd | |
%description | |
OpenSSL 3 that installed to /usr/local/openssl-3.xx.xx without docs for CentOS 7 | |
%prep | |
%setup -n openssl-%{version} | |
%global ssldir /usr/local/openssl | |
%global prefix %{ssldir}-%{version} | |
%build | |
./Configure --prefix=%{prefix} '-Wl,-rpath,$(LIBRPATH)' | |
make %{?_smp_mflags} | |
%install | |
make install_sw install_ssldirs DESTDIR="%{?buildroot}" | |
mkdir -p %{buildroot}/%{_sysconfdir}/ld.so.conf.d | |
echo "%{ssldir}/lib64" > %{buildroot}/%{_sysconfdir}/ld.so.conf.d/openssl.conf | |
%clean | |
rm -rf $RPM_BUILD_ROOT | |
%files | |
%dir %{prefix} | |
%dir %{prefix}/bin | |
%dir %{prefix}/include | |
%dir %{prefix}/include/openssl | |
%dir %{prefix}/lib64 | |
%dir %{prefix}/ssl | |
%dir %{prefix}/ssl/misc | |
%{_sysconfdir}/ld.so.conf.d/openssl.conf | |
%{prefix}/bin/c_rehash | |
%{prefix}/bin/openssl | |
%{prefix}/include/openssl/* | |
%{prefix}/lib64/* | |
%{prefix}/ssl/ct* | |
%{prefix}/ssl/misc/* | |
%{prefix}/ssl/openssl.cnf* | |
%post | |
ldconfig | |
ln -sf %{prefix} %{ssldir} | |
%postun | |
ldconfig | |
rm -f %{ssldir} | |
%changelog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment