From d9fecacece44d35ba331298536eee77475bd80fd Mon Sep 17 00:00:00 2001 From: Sreenivasulu Malavathula Date: Thu, 19 Dec 2024 19:01:58 -0600 Subject: [PATCH] perl-PAR-Dist: Update Version from 0.51 -> 0.53 --- .../perl-PAR-Dist.signatures.json | 4 +- .../perl-PAR-Dist/perl-PAR-Dist.spec | 125 +++++++++++++++--- cgmanifest.json | 4 +- 3 files changed, 110 insertions(+), 23 deletions(-) diff --git a/SPECS-EXTENDED/perl-PAR-Dist/perl-PAR-Dist.signatures.json b/SPECS-EXTENDED/perl-PAR-Dist/perl-PAR-Dist.signatures.json index a937118f1ae..801c2be9cae 100644 --- a/SPECS-EXTENDED/perl-PAR-Dist/perl-PAR-Dist.signatures.json +++ b/SPECS-EXTENDED/perl-PAR-Dist/perl-PAR-Dist.signatures.json @@ -1,5 +1,5 @@ { "Signatures": { - "perl-PAR-Dist-0.51.tar.gz": "d242062df9b689f39040e4c4e09131a6c464d0eefadbd1c9ac947173af33dff8" + "PAR-Dist-0.53.tar.gz": "04cbc81e786968f9a4109ad6c2f9b81e879ac0c6b6080a9d217443b61dfd2498" } -} +} \ No newline at end of file diff --git a/SPECS-EXTENDED/perl-PAR-Dist/perl-PAR-Dist.spec b/SPECS-EXTENDED/perl-PAR-Dist/perl-PAR-Dist.spec index 776f91a427e..2556dfbdd4a 100644 --- a/SPECS-EXTENDED/perl-PAR-Dist/perl-PAR-Dist.spec +++ b/SPECS-EXTENDED/perl-PAR-Dist/perl-PAR-Dist.spec @@ -1,12 +1,12 @@ Vendor: Microsoft Corporation Distribution: Azure Linux Name: perl-PAR-Dist -Version: 0.51 -Release: 2%{?dist} +Version: 0.53 +Release: 3%{?dist} Summary: Toolkit for creating and manipulating Perl PAR distributions -License: GPL+ or Artistic +License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/PAR-Dist -Source0: https://cpan.metacpan.org/authors/id/R/RS/RSCHUPP/PAR-Dist-%{version}.tar.gz#/perl-PAR-Dist-%{version}.tar.gz +Source0: https://cpan.metacpan.org/authors/id/R/RS/RSCHUPP/PAR-Dist-%{version}.tar.gz BuildArch: noarch BuildRequires: coreutils BuildRequires: make @@ -17,6 +17,7 @@ BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 # Run-time: BuildRequires: perl(Archive::Zip) BuildRequires: perl(Carp) +BuildRequires: perl(Config) BuildRequires: perl(Cwd) BuildRequires: perl(Exporter) # perl(ExtUtils::Install) not tested @@ -26,15 +27,13 @@ BuildRequires: perl(File::Find) BuildRequires: perl(File::Path) BuildRequires: perl(File::Spec) # perl(LWP::Simple) not tested -# perl(Module::Signature) >= 0.25 not tested +BuildRequires: perl(strict) +BuildRequires: perl(vars) +BuildRequires: perl(warnings) BuildRequires: perl(YAML::Tiny) # Tests: BuildRequires: perl(Test) BuildRequires: perl(Test::More) -# Optional tests: -BuildRequires: perl(Test::Pod) >= 1.00 -BuildRequires: perl(Test::Pod::Coverage) >= 1.00 -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(Archive::Zip) Requires: perl(Cwd) Requires: perl(ExtUtils::Install) @@ -42,8 +41,8 @@ Requires: perl(ExtUtils::MY) Requires: perl(File::Copy) Requires: perl(File::Find) Requires: perl(File::Path) +Requires: perl(File::Temp) Requires: perl(LWP::Simple) -Requires: perl(Module::Signature) >= 0.25 Requires: perl(YAML::Tiny) %description @@ -53,29 +52,107 @@ after their make or Build stage, a META.yml describing metadata of the original CPAN distribution, and a MANIFEST detailing all files within it. Digitally signed PAR distributions will also contain a SIGNATURE file. +%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 PAR-Dist-%{version} +# Help generators to recognize Perl scripts +for F in t/*.t; do + perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" + chmod +x "$F" +done + %build -%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install DESTDIR=$RPM_BUILD_ROOT -%{_fixperms} $RPM_BUILD_ROOT/* +%{make_install} +%{_fixperms} %{buildroot}/* + +# Install tests +mkdir -p %{buildroot}%{_libexecdir}/%{name} +cp -a t %{buildroot}%{_libexecdir}/%{name} +rm %{buildroot}%{_libexecdir}/%{name}/t/00pod* +cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' +#!/bin/bash +set -e +# Some tests write into temporary files/directories. The easiest solution +# is to copy the tests into a writable directory and execute them from there. +DIR=$(mktemp -d) +pushd "$DIR" +cp -a %{_libexecdir}/%{name}/* ./ +prove -I . -j "$(getconf _NPROCESSORS_ONLN)" +popd +rm -rf "$DIR" +EOF +chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check -make test PERL_TEST_POD=1 +unset PERL_TEST_POD +make test %files %license LICENSE %doc Changes README -%{perl_vendorlib}/* -%{_mandir}/man3/* +%{perl_vendorlib}/PAR* +%{_mandir}/man3/PAR::Dist* + +%files tests +%{_libexecdir}/%{name} %changelog -* Fri Oct 15 2021 Pawel Winogrodzki - 0.51-2 -- Initial CBL-Mariner import from Fedora 32 (license: MIT). +* Thu Dec 19 2024 Sreenivasulu Malavathula - 0.53-3 +- Initial Azure Linux import from Fedora 41 (license: MIT) +- License verified + +* Fri Jul 19 2024 Fedora Release Engineering - 0.53-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Jun 24 2024 Jitka Plesnikova - 0.53-1 +- 0.53 bump (rhbz#2292891) + +* Thu Jan 25 2024 Fedora Release Engineering - 0.52-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 0.52-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.52-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu May 11 2023 Jitka Plesnikova - 0.52-1 +- 0.52 bump +- Package tests + +* Fri Jan 20 2023 Fedora Release Engineering - 0.51-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 0.51-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jun 01 2022 Jitka Plesnikova - 0.51-6 +- Perl 5.36 rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.51-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 0.51-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri May 21 2021 Jitka Plesnikova - 0.51-3 +- Perl 5.34 rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.51-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Dec 01 2020 Jitka Plesnikova - 0.51-1 - 0.51 bump @@ -83,6 +160,16 @@ make test PERL_TEST_POD=1 * Wed Nov 18 2020 Jitka Plesnikova - 0.50-1 - 0.50 bump +* Tue Jul 28 2020 Fedora Release Engineering - 0.49-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jun 23 2020 Jitka Plesnikova - 0.49-22 +- Perl 5.32 rebuild + +* Wed Feb 26 2020 Jitka Plesnikova - 0.49-21 +- Use make_* macros +- Specify all dependencies + * Thu Jan 30 2020 Fedora Release Engineering - 0.49-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/cgmanifest.json b/cgmanifest.json index e724680b882..f01cd148135 100644 --- a/cgmanifest.json +++ b/cgmanifest.json @@ -18933,8 +18933,8 @@ "type": "other", "other": { "name": "perl-PAR-Dist", - "version": "0.51", - "downloadUrl": "https://cpan.metacpan.org/authors/id/R/RS/RSCHUPP/PAR-Dist-0.51.tar.gz" + "version": "0.53", + "downloadUrl": "https://cpan.metacpan.org/authors/id/R/RS/RSCHUPP/PAR-Dist-0.53.tar.gz" } } },