changes api but it's used with SSLv2 only. openssl ref:
https://github.com/openssl/openssl/issues/14216
--- /dev/null
+--- ruby-2.6.8/ext/openssl/ossl_pkey_rsa.c.orig 2021-07-07 12:38:58.000000000 +0200
++++ ruby-2.6.8/ext/openssl/ossl_pkey_rsa.c 2021-10-13 12:03:34.317085257 +0200
+@@ -939,7 +939,9 @@
+ rb_define_method(cRSA, "params", ossl_rsa_get_params, 0);
+
+ DefRSAConst(PKCS1_PADDING);
++#if OPENSSL_VERSION_MAJOR < 3
+ DefRSAConst(SSLV23_PADDING);
++#endif
+ DefRSAConst(NO_PADDING);
+ DefRSAConst(PKCS1_OAEP_PADDING);
+
%bcond_with bootstrap # build bootstrap version
%bcond_with tests # build without tests
%bcond_with bootstrap # build bootstrap version
%bcond_with tests # build without tests
%define ruby_version 2.6
%define patchlevel 8
%define pkg_version %{ruby_version}.%{patchlevel}
%define ruby_version 2.6
%define patchlevel 8
%define pkg_version %{ruby_version}.%{patchlevel}
Patch4: strip-ccache.patch
Patch5: ruby-version.patch
Patch6: duplicated-paths.patch
Patch4: strip-ccache.patch
Patch5: ruby-version.patch
Patch6: duplicated-paths.patch
# obsolete?
Patch8: rubygems-2.0.0-binary-extensions.patch
Patch9: custom-rubygems-location.patch
# obsolete?
Patch8: rubygems-2.0.0-binary-extensions.patch
Patch9: custom-rubygems-location.patch
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
#%patch8 -p1
%patch9 -p1
%patch12 -p1
#%patch8 -p1
%patch9 -p1
%patch12 -p1