From e4ff2b434f5e77a39eaa87d1587962ef7da3ec64 Mon Sep 17 00:00:00 2001 From: Michal Josef Špaček Date: Dec 14 2023 12:24:26 +0000 Subject: 20231213 bump --- diff --git a/.gitignore b/.gitignore index c39b522..0a1ae29 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ /Mozilla-CA-20230801.tar.gz /Mozilla-CA-20230807.tar.gz /Mozilla-CA-20230821.tar.gz +/Mozilla-CA-20231213.tar.gz diff --git a/Mozilla-CA-20230821-Redirect-to-ca-certificates-bundle.patch b/Mozilla-CA-20230821-Redirect-to-ca-certificates-bundle.patch deleted file mode 100644 index e3a0691..0000000 --- a/Mozilla-CA-20230821-Redirect-to-ca-certificates-bundle.patch +++ /dev/null @@ -1,70 +0,0 @@ -From ab01996d4d539cada0013b837b782f27db6b96ff Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= -Date: Fri, 16 Sep 2011 10:33:54 +0200 -Subject: [PATCH] Redirect to ca-certificates bundle -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -This patch replaces Mozilla-CA certificate bundle with a bundle -delivered by ca-certificates RPM package used as a single source of -the Mozilla certificate bundle. - -See for more -details. - -Signed-off-by: Petr Písař ---- - MANIFEST | 1 - - Makefile.PL | 8 ++++++++ - lib/Mozilla/CA.pm | 8 +------- - 3 files changed, 9 insertions(+), 8 deletions(-) - -diff --git a/MANIFEST b/MANIFEST -index a88847b..6577ede 100644 ---- a/MANIFEST -+++ b/MANIFEST -@@ -1,7 +1,6 @@ - .editorconfig - Changes - lib/Mozilla/CA.pm --lib/Mozilla/CA/cacert.pem - maint/cacert-diff - maint/get-tarball-name - maint/make-tarball -diff --git a/Makefile.PL b/Makefile.PL -index 9faf720..a491813 100644 ---- a/Makefile.PL -+++ b/Makefile.PL -@@ -88,3 +88,11 @@ - - ExtUtils::MakeMaker::WriteMakefile(%MM_ARGS); - ## END BOILERPLATE ########################################################### -+ -+package MY; -+sub MY::libscan { -+ my $name = shift->SUPER::libscan(@_); -+ # Remove private certificate bundle -+ if ($name =~ /cacert.pem\z/) { $name = '' }; -+ return $name; -+} -diff --git a/lib/Mozilla/CA.pm b/lib/Mozilla/CA.pm -index e4a6c56..fdb3c75 100644 ---- a/lib/Mozilla/CA.pm -+++ b/lib/Mozilla/CA.pm -@@ -5,11 +5,9 @@ - our $VERSION = '20230821'; - - use File::Spec (); --use File::Basename qw(dirname); - - sub SSL_ca_file { -- my $file = File::Spec->catfile(dirname(__FILE__), "CA", "cacert.pem"); -- return File::Spec->rel2abs($file); -+ return File::Spec->catfile('/etc/pki/tls/certs/ca-bundle.crt'); - } - - 1; --- -2.25.4 - diff --git a/Mozilla-CA-20231213-Redirect-to-ca-certificates-bundle.patch b/Mozilla-CA-20231213-Redirect-to-ca-certificates-bundle.patch new file mode 100644 index 0000000..06e2686 --- /dev/null +++ b/Mozilla-CA-20231213-Redirect-to-ca-certificates-bundle.patch @@ -0,0 +1,65 @@ +From ab01996d4d539cada0013b837b782f27db6b96ff Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Fri, 16 Sep 2011 10:33:54 +0200 +Subject: [PATCH] Redirect to ca-certificates bundle +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This patch replaces Mozilla-CA certificate bundle with a bundle +delivered by ca-certificates RPM package used as a single source of +the Mozilla certificate bundle. + +See for more +details. + +Signed-off-by: Petr Písař + +diff --git a/MANIFEST b/MANIFEST +index a88847b..6577ede 100644 +--- a/MANIFEST ++++ b/MANIFEST +@@ -1,7 +1,6 @@ + .editorconfig + Changes + lib/Mozilla/CA.pm +-lib/Mozilla/CA/cacert.pem + maint/cacert-diff + maint/get-tarball-name + maint/make-tarball +diff --git a/Makefile.PL b/Makefile.PL +index 9faf720..a491813 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -90,3 +90,11 @@ + + ExtUtils::MakeMaker::WriteMakefile(%MM_ARGS); + ## END BOILERPLATE ########################################################### ++ ++package MY; ++sub MY::libscan { ++ my $name = shift->SUPER::libscan(@_); ++ # Remove private certificate bundle ++ if ($name =~ /cacert.pem\z/) { $name = '' }; ++ return $name; ++} +diff --git a/lib/Mozilla/CA.pm b/lib/Mozilla/CA.pm +index e4a6c56..fdb3c75 100644 +--- a/lib/Mozilla/CA.pm ++++ b/lib/Mozilla/CA.pm +@@ -5,11 +5,9 @@ + our $VERSION = '20231213'; + + use File::Spec (); +-use File::Basename qw(dirname); + + sub SSL_ca_file { +- my $file = File::Spec->catfile(dirname(__FILE__), "CA", "cacert.pem"); +- return File::Spec->rel2abs($file); ++ return File::Spec->catfile('/etc/pki/tls/certs/ca-bundle.crt'); + } + + 1; +-- +2.25.4 + diff --git a/perl-Mozilla-CA.spec b/perl-Mozilla-CA.spec index c6cfef9..d0c837e 100644 --- a/perl-Mozilla-CA.spec +++ b/perl-Mozilla-CA.spec @@ -2,7 +2,7 @@ Name: perl-Mozilla-CA # You do not need to back-port a new version for updating a list of the # certificates. They are taken from ca-certificates package instead # per bug #738383. -Version: 20230821 +Version: 20231213 Release: 1%{?dist} Summary: Mozilla's CA certificate bundle in PEM format # README: MPL-2.0 @@ -13,7 +13,7 @@ License: MPL-2.0 URL: https://metacpan.org/release/Mozilla-CA Source0: https://cpan.metacpan.org/authors/id/A/AB/ABH/Mozilla-CA-%{version}.tar.gz # Use a CA bundle from ca-certificates package, bug #738383 -Patch0: Mozilla-CA-20230821-Redirect-to-ca-certificates-bundle.patch +Patch0: Mozilla-CA-20231213-Redirect-to-ca-certificates-bundle.patch BuildArch: noarch BuildRequires: coreutils BuildRequires: make @@ -81,6 +81,9 @@ make test %{_libexecdir}/%{name} %changelog +* Thu Dec 14 2023 Michal Josef Špaček - 20231213-1 +- 20231213 bump + * Fri Aug 25 2023 Michal Josef Špaček - 20230821-1 - 20230821 bump diff --git a/sources b/sources index b915a7b..a365698 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Mozilla-CA-20230821.tar.gz) = 2393e8ddd54abbef37987c8bd883e9cd790ed8ad7b1411203c7796b1f0b52fcf7a19e3803c374e9e84bf4310d67e4736f12731c5ca1337f99bb659bdca126c3a +SHA512 (Mozilla-CA-20231213.tar.gz) = 888c0847d4911348a775a25a0cb4609176d521a24e7f4dabe75bad9f286ca1cae9a79e52a4cacab529e306df699937059442cd77e0f560a8e0e731ca25c2e61c