[ruby] Kill bundled certificates.

Vít Ondruch vondruch at fedoraproject.org
Wed May 7 13:42:18 UTC 2014


commit efdf386e3192775d84b69006d3bc12d5532455d2
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Wed May 7 15:40:54 2014 +0200

    Kill bundled certificates.

 ruby.spec |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/ruby.spec b/ruby.spec
index 655437b..df45731 100644
--- a/ruby.spec
+++ b/ruby.spec
@@ -430,6 +430,16 @@ install -m644 %{SOURCE7} %{buildroot}%{_includedir}/%{name}/config.h
 # http://bugs.ruby-lang.org/issues/7807
 sed -i 's/Version: \${ruby_version}/Version: %{ruby_version}/' %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
 
+# Kill bundled certificates, as they should be part of ca-sertificates.
+for cert in \
+  Class3PublicPrimaryCertificationAuthority.pem \
+  DigiCertHighAssuranceEVRootCA.pem \
+  EntrustnetSecureServerCertificationAuthority.pem \
+  GeoTrustGlobalCA.pem
+do
+  rm %{buildroot}%{rubygems_dir}/rubygems/ssl_certs/$cert
+done
+
 # Move macros file insto proper place and replace the %%{name} macro, since it
 # would be wrongly evaluated during build of other packages.
 mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d
@@ -862,6 +872,7 @@ OPENSSL_ENABLE_MD5_VERIFY=1 make check TESTS="-v $DISABLE_TESTS"
 * Tue May 06 2014 Vít Ondruch <vondruch at redhat.com> - 2.1.1-20
 - Remove useless exclude (rhbz#1065897).
 - Extract load macro into external file and include it.
+- Kill bundled certificates.
 
 * Wed Apr 23 2014 Vít Ondruch <vondruch at redhat.com> - 2.1.1-19
 - Correctly expand $(prefix) in some Makefiles, e.g. eruby.


More information about the scm-commits mailing list