From 30818f50b787031564202bf48d509d021891e6cb Mon Sep 17 00:00:00 2001 From: Sreenivasulu Malavathula Date: Mon, 16 Dec 2024 18:22:28 -0600 Subject: [PATCH] perl-Math-Int64: Update Version from 0.54 -> 0.57. --- .../perl-Math-Int64.signatures.json | 4 +- .../perl-Math-Int64/perl-Math-Int64.spec | 115 ++++++++++++++---- cgmanifest.json | 4 +- 3 files changed, 97 insertions(+), 26 deletions(-) diff --git a/SPECS-EXTENDED/perl-Math-Int64/perl-Math-Int64.signatures.json b/SPECS-EXTENDED/perl-Math-Int64/perl-Math-Int64.signatures.json index 74a1a64ed99..70316e55c12 100644 --- a/SPECS-EXTENDED/perl-Math-Int64/perl-Math-Int64.signatures.json +++ b/SPECS-EXTENDED/perl-Math-Int64/perl-Math-Int64.signatures.json @@ -1,5 +1,5 @@ { "Signatures": { - "perl-Math-Int64-0.54.tar.gz": "dcfc51e698437ea6b9cefe0276215c56cdb6a7f85e3e24a2b6b4189f1960d351" + "Math-Int64-0.57.tar.gz": "12c60111c1cfceb257ac2ccc5b2e1721879efa09a1b0a73e8836afca107a7d75" } -} +} \ No newline at end of file diff --git a/SPECS-EXTENDED/perl-Math-Int64/perl-Math-Int64.spec b/SPECS-EXTENDED/perl-Math-Int64/perl-Math-Int64.spec index b8c4e7d3183..3237c2952e7 100644 --- a/SPECS-EXTENDED/perl-Math-Int64/perl-Math-Int64.spec +++ b/SPECS-EXTENDED/perl-Math-Int64/perl-Math-Int64.spec @@ -1,25 +1,26 @@ Vendor: Microsoft Corporation Distribution: Azure Linux Name: perl-Math-Int64 -Version: 0.54 -Release: 14%{?dist} +Version: 0.57 +Release: 4%{?dist} Summary: Manipulate 64 bits integers in Perl -License: (GPL+ or Artistic) and Public Domain and BSD +License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Math-Int64 -Source0: https://cpan.metacpan.org/modules/by-module/Math/Math-Int64-%{version}.tar.gz#/perl-Math-Int64-%{version}.tar.gz +Source0: https://cpan.metacpan.org/modules/by-module/Math/Math-Int64-%{version}.tar.gz +BuildRequires: coreutils BuildRequires: findutils BuildRequires: make -BuildRequires: perl-interpreter BuildRequires: perl-devel BuildRequires: perl-generators +BuildRequires: perl-interpreter BuildRequires: perl(base) BuildRequires: perl(blib) BuildRequires: perl(Carp) BuildRequires: perl(Config) BuildRequires: perl(constant) BuildRequires: perl(Exporter) -BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(ExtUtils::CBuilder) +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 BuildRequires: perl(File::Basename) BuildRequires: perl(File::Spec) BuildRequires: perl(File::Temp) @@ -36,43 +37,113 @@ BuildRequires: perl(warnings) BuildRequires: perl(warnings::register) BuildRequires: perl(XSLoader) Requires: perl(XSLoader) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This module adds support for 64 bit integers, signed and unsigned, to Perl. +%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 Math-Int64-%{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 OPTIMIZE="$RPM_OPT_FLAGS" -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" \ + NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install DESTDIR=$RPM_BUILD_ROOT - -find $RPM_BUILD_ROOT -type f -name .packlist -delete -find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete - -%{_fixperms} $RPM_BUILD_ROOT/* +%{make_install} +find %{buildroot} -type f -name '*.bs' -size 0 -delete +%{_fixperms} %{buildroot}/* + +# 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 %check make test %files -%if 0%{?_licensedir:1} %license COPYING -%else -%doc COPYING -%endif %doc Changes README.md examples %{perl_vendorarch}/auto/* %{perl_vendorarch}/Math* -%{_mandir}/man3/* +%{_mandir}/man3/Math::* + +%files tests +%{_libexecdir}/%{name} %changelog -* Fri Oct 15 2021 Pawel Winogrodzki - 0.54-14 -- Initial CBL-Mariner import from Fedora 32 (license: MIT). +* Mon Dec 16 2024 Sreenivasulu Malavathula 0.57-4 +- Initial Azure Linux import from Fedora 41 (license: MIT) +- License verified + +* Fri Jul 19 2024 Fedora Release Engineering - 0.57-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Jun 10 2024 Jitka Plesnikova - 0.57-2 +- Perl 5.40 rebuild + +* Thu Jan 25 2024 Jitka Plesnikova - 0.57-1 +- 0.57 bump (rhbz#2259452) +- Package tests + +* Sun Jan 21 2024 Fedora Release Engineering - 0.54-26 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 0.54-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jul 11 2023 Jitka Plesnikova - 0.54-24 +- Perl 5.38 rebuild + +* Fri Jan 20 2023 Fedora Release Engineering - 0.54-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 0.54-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon May 30 2022 Jitka Plesnikova - 0.54-21 +- Perl 5.36 rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.54-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 0.54-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri May 21 2021 Jitka Plesnikova - 0.54-18 +- Perl 5.34 rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.54-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 0.54-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jun 22 2020 Jitka Plesnikova - 0.54-15 +- Perl 5.32 rebuild + +* Tue Feb 18 2020 Jitka Plesnikova - 0.54-14 +- Modernize spec file * Thu Jan 30 2020 Fedora Release Engineering - 0.54-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/cgmanifest.json b/cgmanifest.json index e724680b882..cb78616264c 100644 --- a/cgmanifest.json +++ b/cgmanifest.json @@ -18233,8 +18233,8 @@ "type": "other", "other": { "name": "perl-Math-Int64", - "version": "0.54", - "downloadUrl": "https://cpan.metacpan.org/modules/by-module/Math/Math-Int64-0.54.tar.gz" + "version": "0.57", + "downloadUrl": "https://cpan.metacpan.org/modules/by-module/Math/Math-Int64-0.57.tar.gz" } } },