import CS perl-App-cpanminus-1.7044-15.el9

This commit is contained in:
eabdullin 2025-03-11 07:57:44 +00:00
parent 72903cdf7c
commit 836c2e79fc

View File

@ -1,6 +1,6 @@
Name: perl-App-cpanminus Name: perl-App-cpanminus
Version: 1.7044 Version: 1.7044
Release: 14%{?dist} Release: 15%{?dist}
Summary: Get, unpack, build and install CPAN modules Summary: Get, unpack, build and install CPAN modules
# Other files: GPL+ or Artistic # Other files: GPL+ or Artistic
## unbundled ## unbundled
@ -134,12 +134,14 @@ with "%{_libexecdir}/%{name}/test".
podselect lib/App/cpanminus.pm > lib/App/cpanminus.pod podselect lib/App/cpanminus.pm > lib/App/cpanminus.pod
for F in bin/cpanm lib/App/cpanminus/fatscript.pm; do for F in bin/cpanm lib/App/cpanminus/fatscript.pm; do
# CVE-2024-45321 - patch to use https instead of http
perl -pi -E 's{http://(cpan\.cpantesters\.org|www\.cpan\.org|backpan\.perl\.org|cpan\.metacpan\.org|fastapi\.metacpan\.org|cpanmetadb\.plackperl\.org)}{https://$1}g' "$F"
%{SOURCE1} --libdir lib --filter '^App/cpanminus' "$F" > "${F}.stripped" %{SOURCE1} --libdir lib --filter '^App/cpanminus' "$F" > "${F}.stripped"
perl -c -Ilib "${F}.stripped" perl -c -Ilib "${F}.stripped"
mv "${F}.stripped" "$F" mv "${F}.stripped" "$F"
done done
%patch0 -p1 %patch -P0 -p1
# Help generators to recognize Perl scripts # Help generators to recognize Perl scripts
for F in t/*.t; do for F in t/*.t; do
@ -170,14 +172,18 @@ make test
%license LICENSE %license LICENSE
%doc Changes README %doc Changes README
%{perl_vendorlib}/* %{perl_vendorlib}/*
%{_mandir}/man3/*
%{_mandir}/man1/* %{_mandir}/man1/*
%{_mandir}/man3/*
%{_bindir}/cpanm %{_bindir}/cpanm
%files tests %files tests
%{_libexecdir}/%{name} %{_libexecdir}/%{name}
%changelog %changelog
* Thu Sep 19 2024 Jitka Plesnikova <jplesnik@redhat.com> - 1.7044-15
- Patch the code to use https instead of http (CVE-2024-45321)
- Resolves: RHEL-56520
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.7044-14 * Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.7044-14
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688 Related: rhbz#1991688