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