summaryrefslogtreecommitdiff
path: root/openssl110
diff options
context:
space:
mode:
Diffstat (limited to 'openssl110')
-rw-r--r--openssl110/openssl110.spec60
1 files changed, 60 insertions, 0 deletions
diff --git a/openssl110/openssl110.spec b/openssl110/openssl110.spec
new file mode 100644
index 0000000..df4f030
--- /dev/null
+++ b/openssl110/openssl110.spec
@@ -0,0 +1,60 @@
+%global pname openssl
+%global debug_package %{nil}
+Name: openssl110
+Version: 1.1.0i
+Release: 1
+Summary: Bundle of openssl 1.1.0f for el7 for internal use
+
+# References
+# https://linuxscriptshub.com/update-openssl-1-1-0-centos-6-9-7-0/
+# https://syslint.com/blog/tutorial/how-to-upgrade-openssl-on-centos-7-or-rhel-7/
+# https://webhostinggeeks.com/howto/how-to-install-and-update-openssl-on-centos-6-centos-7/
+Group: System Environment/Libraries
+License: OpenSSL
+URL: http://www.openssl.org/
+Source0: openssl-%{version}.tar.gz
+
+BuildRequires: coreutils
+Requires: coreutils, make
+
+%description
+Custom build of openssl 1.1.0 to provide the openssl s_client -proxy flag.
+Binary name is openssl110.
+
+%prep
+%setup -q -c
+
+%build
+cd %{pname}-%{version}
+./config
+make
+
+%install
+cd %{pname}-%{version}
+# skip the install_docs
+make install_sw install_ssldirs DESTDIR=%{buildroot}
+
+# customizations so this can coexist with the system openssl
+pushd %{buildroot}
+mv .%{_prefix}/local/bin/%{pname} .%{_prefix}/local/bin/%{name}
+rm .%{_prefix}/local/bin/c_rehash || :
+install -d %{buildroot}%{_sysconfdir}/ld.so.conf.d
+echo "/usr/local/lib64" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}.conf
+
+popd
+
+%post
+ldconfig 1>/dev/null 2>&1 || :
+
+%files
+%doc
+#%%defattr(0644, root, root)
+%{_sysconfdir}/ld.so.conf.d/*
+%{_prefix}/local/bin
+%{_prefix}/local/%{_lib}
+%{_prefix}/local/ssl
+%{_prefix}/local/include
+
+%changelog
+* Thu Sep 06 2018 B Stack <bgstack15@gmail.com> 1.1.0i-1
+- rpm rebuilt
bgstack15