From 26cb864cee790d78580a40f5842587b948294375 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jul 01 2020 21:00:36 +0000 Subject: import perl-Term-Table-0.015-2.module+el8.3.0+6718+7f269185 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c1438d5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Term-Table-0.015.tar.gz diff --git a/.perl-Term-Table.metadata b/.perl-Term-Table.metadata new file mode 100644 index 0000000..89ccf61 --- /dev/null +++ b/.perl-Term-Table.metadata @@ -0,0 +1 @@ +db510c603cd766c5ada06aba7f55bd06de1f1596 SOURCES/Term-Table-0.015.tar.gz diff --git a/SOURCES/Term-Table-0.015-Use-system-Object-HashBase.patch b/SOURCES/Term-Table-0.015-Use-system-Object-HashBase.patch new file mode 100644 index 0000000..5a04a16 --- /dev/null +++ b/SOURCES/Term-Table-0.015-Use-system-Object-HashBase.patch @@ -0,0 +1,84 @@ +From 49bf49b99a7ffb12b68035f096c160bc51e48775 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Thu, 21 Nov 2019 09:22:33 +0100 +Subject: [PATCH] Use system Object::HashBase +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Petr Písař +--- + Makefile.PL | 1 + + lib/Term/Table.pm | 2 +- + lib/Term/Table/Cell.pm | 2 +- + lib/Term/Table/CellStack.pm | 2 +- + lib/Term/Table/LineBreak.pm | 2 +- + 5 files changed, 5 insertions(+), 4 deletions(-) + +diff --git a/Makefile.PL b/Makefile.PL +index 44de066..4d4c7d4 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -20,6 +20,7 @@ my %WriteMakefileArgs = ( + "Carp" => 0, + "Importer" => "0.024", + "List::Util" => 0, ++ "Object::HashBase" => "0.008", + "Scalar::Util" => 0 + }, + "TEST_REQUIRES" => { +diff --git a/lib/Term/Table.pm b/lib/Term/Table.pm +index 578eba8..3190bcd 100644 +--- a/lib/Term/Table.pm ++++ b/lib/Term/Table.pm +@@ -11,7 +11,7 @@ use Scalar::Util qw/blessed/; + use List::Util qw/max sum/; + use Carp qw/croak carp/; + +-use Term::Table::HashBase qw/rows _columns collapse max_width mark_tail sanitize show_header auto_columns no_collapse header allow_overflow pad/; ++use Object::HashBase 0.008 qw/rows _columns collapse max_width mark_tail sanitize show_header auto_columns no_collapse header allow_overflow pad/; + + sub BORDER_SIZE() { 4 } # '| ' and ' |' borders + sub DIV_SIZE() { 3 } # ' | ' column delimiter +diff --git a/lib/Term/Table/Cell.pm b/lib/Term/Table/Cell.pm +index 978ef06..10d2b70 100644 +--- a/lib/Term/Table/Cell.pm ++++ b/lib/Term/Table/Cell.pm +@@ -9,7 +9,7 @@ use Term::Table::Util qw/uni_length/; + + use List::Util qw/sum/; + +-use Term::Table::HashBase qw/value border_left border_right _break _widths border_color value_color reset_color/; ++use Object::HashBase 0.008 qw/value border_left border_right _break _widths border_color value_color reset_color/; + + my %CHAR_MAP = ( + # Special case, \n should render as \n, but also actually do the newline thing +diff --git a/lib/Term/Table/CellStack.pm b/lib/Term/Table/CellStack.pm +index 7b99f6a..a948d10 100644 +--- a/lib/Term/Table/CellStack.pm ++++ b/lib/Term/Table/CellStack.pm +@@ -4,7 +4,7 @@ use warnings; + + our $VERSION = '0.015'; + +-use Term::Table::HashBase qw/-cells -idx/; ++use Object::HashBase 0.008 qw/-cells -idx/; + + use List::Util qw/max/; + +diff --git a/lib/Term/Table/LineBreak.pm b/lib/Term/Table/LineBreak.pm +index dc70ca3..ef95f7e 100644 +--- a/lib/Term/Table/LineBreak.pm ++++ b/lib/Term/Table/LineBreak.pm +@@ -8,7 +8,7 @@ use Carp qw/croak/; + use Scalar::Util qw/blessed/; + use Term::Table::Util qw/uni_length/; + +-use Term::Table::HashBase qw/string gcstring _len _parts idx/; ++use Object::HashBase 0.008 qw/string gcstring _len _parts idx/; + + sub init { + my $self = shift; +-- +2.21.0 + diff --git a/SPECS/perl-Term-Table.spec b/SPECS/perl-Term-Table.spec new file mode 100644 index 0000000..31f2312 --- /dev/null +++ b/SPECS/perl-Term-Table.spec @@ -0,0 +1,148 @@ +# Recognize terminal size +%bcond_without perl_Term_Table_enables_terminal +# Respect Unicode rules when breaking lines +%bcond_without perl_Term_Table_enables_unicode + +Name: perl-Term-Table +Version: 0.015 +Release: 2%{?dist} +Summary: Format a header and rows into a table +License: GPL+ or Artistic +URL: https://metacpan.org/release/Term-Table +Source0: https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Term-Table-%{version}.tar.gz +# Unbundle Object::HashBase +Patch0: Term-Table-0.015-Use-system-Object-HashBase.patch +BuildArch: noarch +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(:VERSION) >= 5.8.1 +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(Carp) +BuildRequires: perl(Config) +BuildRequires: perl(Importer) >= 0.024 +BuildRequires: perl(List::Util) +BuildRequires: perl(Object::HashBase) >= 0.008 +BuildRequires: perl(Scalar::Util) +# Optional run-time: +%if %{with perl_Term_Table_enables_terminal} +# Term::ReadKey 2.32 not used if Term::Size::Any is available +# Prefer Term::Size::Any over Term::ReadKey +BuildRequires: perl(Term::Size::Any) >= 0.002 +%endif +%if %{with perl_Term_Table_enables_unicode} +BuildRequires: perl(Unicode::GCString) >= 2013.10 +%endif +# Tests: +BuildRequires: perl(base) +BuildRequires: perl(Test2::API) +BuildRequires: perl(Test2::Tools::Tiny) >= 1.302097 +BuildRequires: perl(Test::More) +BuildRequires: perl(utf8) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Importer) >= 0.024 +%if %{with perl_Term_Table_enables_terminal} +Suggests: perl(Term::ReadKey) >= 2.32 +# Prefer Term::Size::Any over Term::ReadKey +Recommends: perl(Term::Size::Any) >= 0.002 +%endif +%if %{with perl_Term_Table_enables_unicode} +Recommends: perl(Unicode::GCString) >= 2013.10 +%endif + +# Remove under-specified dependencies +%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Importer\\)$ + +%description +This Perl module is able to format rows of data into tables. + +%prep +%setup -q -n Term-Table-%{version} +%patch0 -p1 +# Delete bundled Object::HashBase +for F in lib/Term/Table/HashBase.pm t/HashBase.t; do + perl -e 'unlink $ARGV[0] or die $!' "$F" + perl -i -s -ne 'print $_ unless m{\A\Q$file\E\b}' -- -file="$F" MANIFEST +done + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} + +%install +%{make_install} +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +unset TABLE_TERM_SIZE +make test + +%files +%license LICENSE +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Nov 21 2019 Petr Pisar - 0.015-2 +- Unbundle Object::HashBase + +* Tue Nov 19 2019 Petr Pisar - 0.015-1 +- 0.015 bump + +* Wed Oct 16 2019 Jitka Plesnikova - 0.014-1 +- 0.014 bump + +* Fri Jul 26 2019 Fedora Release Engineering - 0.013-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri May 31 2019 Jitka Plesnikova - 0.013-3 +- Perl 5.30 rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.013-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Wed Dec 05 2018 Petr Pisar - 0.013-1 +- 0.013 bump + +* Fri Jul 13 2018 Fedora Release Engineering - 0.012-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jun 28 2018 Jitka Plesnikova - 0.012-3 +- Perl 5.28 rebuild + +* Fri Feb 09 2018 Fedora Release Engineering - 0.012-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Oct 20 2017 Jitka Plesnikova - 0.012-1 +- 0.012 bump + +* Wed Oct 11 2017 Jitka Plesnikova - 0.011-1 +- 0.011 bump + +* Thu Jul 27 2017 Fedora Release Engineering - 0.008-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Jun 05 2017 Jitka Plesnikova - 0.008-2 +- Perl 5.26 rebuild + +* Mon Mar 20 2017 Petr Pisar - 0.008-1 +- 0.008 bump + +* Sat Feb 11 2017 Fedora Release Engineering - 0.006-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Jan 11 2017 Petr Pisar - 0.006-1 +- 0.006 bump + +* Mon Jan 02 2017 Petr Pisar - 0.005-1 +- 0.005 bump + +* Wed Dec 21 2016 Petr Pisar - 0.004-1 +- 0.004 bump + +* Tue Dec 20 2016 Petr Pisar 0.002-1 +- Specfile autogenerated by cpanspec 1.78.