commit 93845dc5ed14ed454656bf04d1a101650b692c86 Author: MSVSphere Packaging Team Date: Fri Oct 25 17:57:33 2024 +0300 import perl-Mozilla-CA-20231213-4.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bc0a320 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Mozilla-CA-20231213.tar.gz diff --git a/.perl-Mozilla-CA.metadata b/.perl-Mozilla-CA.metadata new file mode 100644 index 0000000..5293cc2 --- /dev/null +++ b/.perl-Mozilla-CA.metadata @@ -0,0 +1 @@ +b4873254b7eed8f2b5d7a8b18bc9dfc0494ac979 SOURCES/Mozilla-CA-20231213.tar.gz diff --git a/SOURCES/Mozilla-CA-20231213-Redirect-to-ca-certificates-bundle.patch b/SOURCES/Mozilla-CA-20231213-Redirect-to-ca-certificates-bundle.patch new file mode 100644 index 0000000..06e2686 --- /dev/null +++ b/SOURCES/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/SPECS/perl-Mozilla-CA.spec b/SPECS/perl-Mozilla-CA.spec new file mode 100644 index 0000000..9859a8e --- /dev/null +++ b/SPECS/perl-Mozilla-CA.spec @@ -0,0 +1,272 @@ +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: 20231213 +Release: 4%{?dist} +Summary: Mozilla's CA certificate bundle in PEM format +# README: MPL-2.0 +## Unbundled +# mk-ca-bundle.pl: MIT +# lib/Mozilla/CA/cacert.pem: MPL-2.0 +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-20231213-Redirect-to-ca-certificates-bundle.patch +BuildArch: noarch +BuildRequires: coreutils +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +# Run-time: +BuildRequires: ca-certificates +BuildRequires: perl(strict) +BuildRequires: perl(File::Spec) +# Tests: +BuildRequires: perl(Test::More) +Requires: ca-certificates + +%description +Mozilla::CA provides a path to ca-certificates copy of Mozilla's bundle of +certificate authority certificates in a form that can be consumed by modules +and libraries based on OpenSSL. + +%package tests +Summary: Tests for %{name} +Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: perl-Test-Harness + +%description tests +Tests from %{name}. Execute them +with "%{_libexecdir}/%{name}/test". + +%prep +%setup -q -n Mozilla-CA-%{version} +%patch -P0 -p1 +# Remove a bundled CA bundle for sure +rm lib/Mozilla/CA/cacert.pem +# Help generators to recognize Perl scripts +for F in t/*.t; do + perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F" + chmod +x "$F" +done + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +# Install tests +mkdir -p %{buildroot}%{_libexecdir}/%{name} +cp -a t %{buildroot}%{_libexecdir}/%{name} +cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' +#!/bin/sh +cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" +EOF +chmod +x %{buildroot}%{_libexecdir}/%{name}/test +%{_fixperms} %{buildroot}/* + +%check +make test + +%files +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%files tests +%{_libexecdir}/%{name} + +%changelog +* Fri Oct 25 2024 MSVSphere Packaging Team - 20231213-4 +- Rebuilt for MSVSphere 10 + +* Mon Jun 24 2024 Troy Dawson - 20231213-4 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 20231213-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 20231213-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Dec 14 2023 Michal Josef Špaček - 20231213-1 +- 20231213 bump + +* Fri Aug 25 2023 Michal Josef Špaček - 20230821-1 +- 20230821 bump + +* Tue Aug 15 2023 Michal Josef Špaček - 20230807-1 +- 20230807 bump + +* Thu Aug 03 2023 Michal Josef Špaček - 20230801-1 +- 20230801 bump +- Fix %patch macro usage + +* Fri Jul 21 2023 Fedora Release Engineering - 20221114-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jan 20 2023 Fedora Release Engineering - 20221114-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Nov 15 2022 Michal Josef Špaček - 20221114-1 +- 20221114 bump + +* Mon Nov 07 2022 Michal Josef Špaček - 20211001-5 +- Package tests +- Unify variable to macro +- Update license to SPDX format + +* Fri Jul 22 2022 Fedora Release Engineering - 20211001-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon May 30 2022 Jitka Plesnikova - 20211001-3 +- Perl 5.36 rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 20211001-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Dec 02 2021 Jitka Plesnikova - 20211001-1 +- 20211001 bump + +* Thu Jul 22 2021 Fedora Release Engineering - 20200520-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri May 21 2021 Jitka Plesnikova - 20200520-5 +- Perl 5.34 rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 20200520-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 20200520-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jun 22 2020 Jitka Plesnikova - 20200520-2 +- Perl 5.32 rebuild + +* Wed May 20 2020 Petr Pisar - 20200520-1 +- 20200520 bump + +* Thu Jan 30 2020 Fedora Release Engineering - 20180117-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 20180117-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu May 30 2019 Jitka Plesnikova - 20180117-5 +- Perl 5.30 rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 20180117-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 20180117-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Jun 27 2018 Jitka Plesnikova - 20180117-2 +- Perl 5.28 rebuild + +* Fri Mar 02 2018 Petr Pisar - 20180117-1 +- 20180117 bump + +* Thu Feb 08 2018 Fedora Release Engineering - 20160104-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 20160104-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Jun 04 2017 Jitka Plesnikova - 20160104-5 +- Perl 5.26 rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 20160104-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sun May 15 2016 Jitka Plesnikova - 20160104-3 +- Perl 5.24 rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 20160104-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Jan 05 2016 Petr Pisar - 20160104-1 +- 20160104 bump + +* Wed Aug 26 2015 Petr Pisar - 20150826-1 +- 20150826 bump +- License changed from (MPLv1.1 or LGPLv2+ or GPLv2+) to (MPLv2.0) + +* Thu Jun 18 2015 Fedora Release Engineering - 20141217-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Jun 03 2015 Jitka Plesnikova - 20141217-2 +- Perl 5.22 rebuild + +* Fri Jan 02 2015 Petr Pisar - 20141217-1 +- 20141217 bump + +* Wed Aug 27 2014 Jitka Plesnikova - 20130114-7 +- Perl 5.20 rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 20130114-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu Jan 16 2014 Petr Pisar - 20130114-5 +- Specify all dependencies + +* Sat Aug 03 2013 Fedora Release Engineering - 20130114-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Jul 17 2013 Petr Pisar - 20130114-3 +- Perl 5.18 rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 20130114-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Jan 15 2013 Petr Pisar - 20130114-1 +- 20130114 bump + +* Thu Aug 23 2012 Petr Pisar - 20120823-1 +- 20120823 bump + +* Wed Aug 22 2012 Petr Pisar - 20120822-1 +- 20120822 bump + +* Fri Jul 20 2012 Fedora Release Engineering - 20120309-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jun 08 2012 Petr Pisar - 20120309-2 +- Perl 5.16 rebuild + +* Wed Mar 14 2012 Petr Pisar - 20120309-1 +- 20120309 bump + +* Wed Jan 18 2012 Petr Pisar - 20120118-1 +- 20120118 bump + +* Fri Jan 13 2012 Fedora Release Engineering - 20111025-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Oct 25 2011 Petr Pisar - 20111025-1 +- 20111025 bump +- Remove defattr from spec code + +* Fri Sep 16 2011 Petr Pisar - 20110914-2 +- Redirect to ca-certificates bundle (bug #738383) + +* Thu Sep 15 2011 Petr Pisar - 20110914-1 +- 20110914 bump + +* Mon Sep 05 2011 Petr Pisar - 20110904-1 +- 20110904 bump + +* Fri Jun 17 2011 Marcela Mašláňová - 20110409-2 +- Perl mass rebuild + +* Mon Apr 11 2011 Petr Pisar - 20110409-1 +- 20110409 bump + +* Mon Mar 28 2011 Petr Pisar 20110301-1 +- Specfile autogenerated by cpanspec 1.78. +- Correct License tag +- Remove BuildRoot stuff