1e5590
# Recognize terminal size
1e5590
%bcond_without perl_Term_Table_enables_terminal
1e5590
# Respect Unicode rules when breaking lines
1e5590
%bcond_without perl_Term_Table_enables_unicode
1e5590
1e5590
Name:           perl-Term-Table
1e5590
Version:        0.015
1e5590
Release:        2%{?dist}
1e5590
Summary:        Format a header and rows into a table
1e5590
License:        GPL+ or Artistic
1e5590
URL:            https://metacpan.org/release/Term-Table
1e5590
Source0:        https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Term-Table-%{version}.tar.gz
1e5590
# Unbundle Object::HashBase
1e5590
Patch0:         Term-Table-0.015-Use-system-Object-HashBase.patch
1e5590
BuildArch:      noarch
1e5590
BuildRequires:  make
1e5590
BuildRequires:  perl-generators
1e5590
BuildRequires:  perl-interpreter
1e5590
BuildRequires:  perl(:VERSION) >= 5.8.1
1e5590
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
1e5590
BuildRequires:  perl(strict)
1e5590
BuildRequires:  perl(warnings)
1e5590
# Run-time:
1e5590
BuildRequires:  perl(Carp)
1e5590
BuildRequires:  perl(Config)
1e5590
BuildRequires:  perl(Importer) >= 0.024
1e5590
BuildRequires:  perl(List::Util)
1e5590
BuildRequires:  perl(Object::HashBase) >= 0.008
1e5590
BuildRequires:  perl(Scalar::Util)
1e5590
# Optional run-time:
1e5590
%if %{with perl_Term_Table_enables_terminal}
1e5590
# Term::ReadKey 2.32 not used if Term::Size::Any is available
1e5590
# Prefer Term::Size::Any over Term::ReadKey
1e5590
BuildRequires:  perl(Term::Size::Any) >= 0.002
1e5590
%endif
1e5590
%if %{with perl_Term_Table_enables_unicode}
1e5590
BuildRequires:  perl(Unicode::GCString) >= 2013.10
1e5590
%endif
1e5590
# Tests:
1e5590
BuildRequires:  perl(base)
1e5590
BuildRequires:  perl(Test2::API)
1e5590
BuildRequires:  perl(Test2::Tools::Tiny) >= 1.302097
1e5590
BuildRequires:  perl(Test::More)
1e5590
BuildRequires:  perl(utf8)
1e5590
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
1e5590
Requires:       perl(Importer) >= 0.024
1e5590
%if %{with perl_Term_Table_enables_terminal}
1e5590
Suggests:       perl(Term::ReadKey) >= 2.32
1e5590
# Prefer Term::Size::Any over Term::ReadKey
1e5590
Recommends:     perl(Term::Size::Any) >= 0.002
1e5590
%endif
1e5590
%if %{with perl_Term_Table_enables_unicode}
1e5590
Recommends:     perl(Unicode::GCString) >= 2013.10
1e5590
%endif
1e5590
1e5590
# Remove under-specified dependencies
1e5590
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Importer\\)$
1e5590
1e5590
%description
1e5590
This Perl module is able to format rows of data into tables.
1e5590
1e5590
%prep
1e5590
%setup -q -n Term-Table-%{version}
1e5590
%patch0 -p1
1e5590
# Delete bundled Object::HashBase
1e5590
for F in lib/Term/Table/HashBase.pm t/HashBase.t; do
1e5590
    perl -e 'unlink $ARGV[0] or die $!' "$F"
1e5590
    perl -i -s -ne 'print $_ unless m{\A\Q$file\E\b}' -- -file="$F" MANIFEST
1e5590
done
1e5590
1e5590
%build
1e5590
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
1e5590
%{make_build}
1e5590
1e5590
%install
1e5590
%{make_install}
1e5590
%{_fixperms} $RPM_BUILD_ROOT/*
1e5590
1e5590
%check
1e5590
unset TABLE_TERM_SIZE
1e5590
make test
1e5590
1e5590
%files
1e5590
%license LICENSE
1e5590
%doc Changes README
1e5590
%{perl_vendorlib}/*
1e5590
%{_mandir}/man3/*
1e5590
1e5590
%changelog
1e5590
* Thu Nov 21 2019 Petr Pisar <ppisar@redhat.com> - 0.015-2
1e5590
- Unbundle Object::HashBase
1e5590
1e5590
* Tue Nov 19 2019 Petr Pisar <ppisar@redhat.com> - 0.015-1
1e5590
- 0.015 bump
1e5590
1e5590
* Wed Oct 16 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.014-1
1e5590
- 0.014 bump
1e5590
1e5590
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.013-4
1e5590
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
1e5590
1e5590
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.013-3
1e5590
- Perl 5.30 rebuild
1e5590
1e5590
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.013-2
1e5590
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1e5590
1e5590
* Wed Dec 05 2018 Petr Pisar <ppisar@redhat.com> - 0.013-1
1e5590
- 0.013 bump
1e5590
1e5590
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.012-4
1e5590
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1e5590
1e5590
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.012-3
1e5590
- Perl 5.28 rebuild
1e5590
1e5590
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.012-2
1e5590
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1e5590
1e5590
* Fri Oct 20 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.012-1
1e5590
- 0.012 bump
1e5590
1e5590
* Wed Oct 11 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.011-1
1e5590
- 0.011 bump
1e5590
1e5590
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.008-3
1e5590
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1e5590
1e5590
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.008-2
1e5590
- Perl 5.26 rebuild
1e5590
1e5590
* Mon Mar 20 2017 Petr Pisar <ppisar@redhat.com> - 0.008-1
1e5590
- 0.008 bump
1e5590
1e5590
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.006-2
1e5590
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1e5590
1e5590
* Wed Jan 11 2017 Petr Pisar <ppisar@redhat.com> - 0.006-1
1e5590
- 0.006 bump
1e5590
1e5590
* Mon Jan 02 2017 Petr Pisar <ppisar@redhat.com> - 0.005-1
1e5590
- 0.005 bump
1e5590
1e5590
* Wed Dec 21 2016 Petr Pisar <ppisar@redhat.com> - 0.004-1
1e5590
- 0.004 bump
1e5590
1e5590
* Tue Dec 20 2016 Petr Pisar <ppisar@redhat.com> 0.002-1
1e5590
- Specfile autogenerated by cpanspec 1.78.