diff --git a/.gitignore b/.gitignore index 428f0ac..bbc507c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/Data-Dump-1.23.tar.gz +Data-Dump-1.25.tar.gz diff --git a/.perl-Data-Dump.metadata b/.perl-Data-Dump.metadata deleted file mode 100644 index bfbdd49..0000000 --- a/.perl-Data-Dump.metadata +++ /dev/null @@ -1 +0,0 @@ -3f5c0d4a15c8dd6befbcdceb41fe15b9aef1b741 SOURCES/Data-Dump-1.23.tar.gz diff --git a/SPECS/perl-Data-Dump.spec b/perl-Data-Dump.spec similarity index 52% rename from SPECS/perl-Data-Dump.spec rename to perl-Data-Dump.spec index 453499d..a535ad2 100644 --- a/SPECS/perl-Data-Dump.spec +++ b/perl-Data-Dump.spec @@ -1,16 +1,17 @@ Name: perl-Data-Dump -Version: 1.23 -Release: 7%{?dist} +Version: 1.25 +Release: 13%{?dist} Summary: Pretty printing of data structures -License: GPL+ or Artistic -Group: Development/Libraries -URL: http://search.cpan.org/dist/Data-Dump/ -Source0: http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Data-Dump-%{version}.tar.gz +License: GPL-1.0-or-later OR Artistic-1.0-Perl +URL: https://metacpan.org/release/Data-Dump +Source0: https://cpan.metacpan.org/modules/by-module/Data/Data-Dump-%{version}.tar.gz BuildArch: noarch # Build +BuildRequires: coreutils BuildRequires: make -BuildRequires: perl-interpreter BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 # Runtime BuildRequires: perl(base) @@ -20,7 +21,7 @@ BuildRequires: perl(MIME::Base64) BuildRequires: perl(overload) BuildRequires: perl(strict) BuildRequires: perl(subs) -# XXX: BuildRequires: perl(Term::ANSIColor) +BuildRequires: perl(Term::ANSIColor) BuildRequires: perl(vars) BuildRequires: perl(warnings) # Tests only @@ -28,7 +29,6 @@ BuildRequires: perl(IO::Socket::INET) BuildRequires: perl(Symbol) BuildRequires: perl(Test) BuildRequires: perl(Test::More) -Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) # Really optional Suggests: perl(MIME::Base64) @@ -38,26 +38,130 @@ values as its argument and produces a string as its result. The string contains Perl code that, when evaled, produces a deep copy of the original arguments. The string is formatted for easy reading. +%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 Data-Dump-%{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=%{buildroot} -%{_fixperms} %{buildroot}/* +%{make_install} +%{_fixperms} -c %{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 -%doc Changes README -%{perl_vendorlib}/* -%{_mandir}/man3/* +%doc Changes README.md +%{perl_vendorlib}/Data/ +%{_mandir}/man3/Data::Dump.3* +%{_mandir}/man3/Data::Dump::Filtered.3* +%{_mandir}/man3/Data::Dump::Trace.3* + +%files tests +%{_libexecdir}/%{name} %changelog +* Tue Oct 29 2024 Troy Dawson - 1.25-13 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Sat Jul 13 2024 Michal Josef Špaček - 1.25-12 +- Package tests + +* Mon Jun 24 2024 Troy Dawson - 1.25-11 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 1.25-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.25-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 1.25-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Mar 02 2023 Michal Josef Špaček - 1.25-7 +- Update license to SPDX format + +* Fri Jan 20 2023 Fedora Release Engineering - 1.25-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.25-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon May 30 2022 Jitka Plesnikova - 1.25-4 +- Perl 5.36 rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 1.25-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 1.25-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sat Jun 26 2021 Paul Howarth - 1.25-1 +- Update to 1.25 + - Strings like "NaN" are still strings + - Update maintainer and repository information + - New option $Data::Dump::LINEWIDTH controls when to perform a line break + (default is 60) +- Use author-independent source URL +- Use %%{make_build} and %%{make_install} macros +- Make %%files list more explicit + +* Fri May 21 2021 Jitka Plesnikova - 1.23-17 +- Perl 5.34 rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 1.23-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1.23-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jun 22 2020 Jitka Plesnikova - 1.23-14 +- Perl 5.32 rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 1.23-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 1.23-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu May 30 2019 Jitka Plesnikova - 1.23-11 +- Perl 5.30 rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 1.23-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.23-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jun 28 2018 Jitka Plesnikova - 1.23-8 +- Perl 5.28 rebuild + * Thu Feb 08 2018 Fedora Release Engineering - 1.23-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/sources b/sources new file mode 100644 index 0000000..7858cb9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Data-Dump-1.25.tar.gz) = fc859b0f02a44a959da3e162606c8fbaefececf8dbd0aa357d68a5a3143b818ae423dd7862063f2f77161ea000fcaa6841c96a2c4a268b889da9588292b157fe