|
|
ebb33b |
# Recognize terminal size
|
|
|
ebb33b |
%bcond_without perl_Term_Table_enables_terminal
|
|
|
ebb33b |
# Respect Unicode rules when breaking lines
|
|
|
ebb33b |
%bcond_without perl_Term_Table_enables_unicode
|
|
|
ebb33b |
|
|
|
ebb33b |
Name: perl-Term-Table
|
|
|
ebb33b |
Version: 0.012
|
|
|
ebb33b |
Release: 2%{?dist}
|
|
|
ebb33b |
Summary: Format a header and rows into a table
|
|
|
ebb33b |
License: GPL+ or Artistic
|
|
|
ebb33b |
URL: http://search.cpan.org/dist/Term-Table/
|
|
|
ebb33b |
Source0: http://www.cpan.org/authors/id/E/EX/EXODIST/Term-Table-%{version}.tar.gz
|
|
|
ebb33b |
BuildArch: noarch
|
|
|
ebb33b |
BuildRequires: make
|
|
|
ebb33b |
BuildRequires: perl-generators
|
|
|
ebb33b |
BuildRequires: perl-interpreter
|
|
|
ebb33b |
BuildRequires: perl(:VERSION) >= 5.8.1
|
|
|
ebb33b |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
ebb33b |
BuildRequires: perl(strict)
|
|
|
ebb33b |
BuildRequires: perl(warnings)
|
|
|
ebb33b |
# Run-time:
|
|
|
ebb33b |
BuildRequires: perl(Carp)
|
|
|
ebb33b |
BuildRequires: perl(Config)
|
|
|
ebb33b |
BuildRequires: perl(Importer) >= 0.024
|
|
|
ebb33b |
BuildRequires: perl(List::Util)
|
|
|
ebb33b |
BuildRequires: perl(Scalar::Util)
|
|
|
ebb33b |
# Optional run-time:
|
|
|
ebb33b |
%if %{with perl_Term_Table_enables_terminal}
|
|
|
ebb33b |
# Term::ReadKey 2.32 not used if Term::Size::Any is available
|
|
|
ebb33b |
# Prefer Term::Size::Any over Term::ReadKey
|
|
|
ebb33b |
BuildRequires: perl(Term::Size::Any) >= 0.002
|
|
|
ebb33b |
%endif
|
|
|
ebb33b |
%if %{with perl_Term_Table_enables_unicode}
|
|
|
ebb33b |
BuildRequires: perl(Unicode::GCString) >= 2013.10
|
|
|
ebb33b |
%endif
|
|
|
ebb33b |
# Tests:
|
|
|
ebb33b |
BuildRequires: perl(base)
|
|
|
ebb33b |
BuildRequires: perl(Test2::API)
|
|
|
ebb33b |
BuildRequires: perl(Test2::Tools::Tiny) >= 1.302097
|
|
|
ebb33b |
BuildRequires: perl(Test::More)
|
|
|
ebb33b |
BuildRequires: perl(utf8)
|
|
|
ebb33b |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
ebb33b |
Requires: perl(Importer) >= 0.024
|
|
|
ebb33b |
%if %{with perl_Term_Table_enables_terminal}
|
|
|
ebb33b |
Suggests: perl(Term::ReadKey) >= 2.32
|
|
|
ebb33b |
# Prefer Term::Size::Any over Term::ReadKey
|
|
|
ebb33b |
Recommends: perl(Term::Size::Any) >= 0.002
|
|
|
ebb33b |
%endif
|
|
|
ebb33b |
%if %{with perl_Term_Table_enables_unicode}
|
|
|
ebb33b |
Recommends: perl(Unicode::GCString) >= 2013.10
|
|
|
ebb33b |
%endif
|
|
|
ebb33b |
|
|
|
ebb33b |
# Remove under-specified dependencies
|
|
|
ebb33b |
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Importer\\)$
|
|
|
ebb33b |
|
|
|
ebb33b |
%description
|
|
|
ebb33b |
This Perl module is able to format rows of data into tables.
|
|
|
ebb33b |
|
|
|
ebb33b |
%prep
|
|
|
ebb33b |
%setup -q -n Term-Table-%{version}
|
|
|
ebb33b |
|
|
|
ebb33b |
%build
|
|
|
ebb33b |
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
|
|
ebb33b |
make %{?_smp_mflags}
|
|
|
ebb33b |
|
|
|
ebb33b |
%install
|
|
|
ebb33b |
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
ebb33b |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
ebb33b |
|
|
|
ebb33b |
%check
|
|
|
ebb33b |
make test
|
|
|
ebb33b |
|
|
|
ebb33b |
%files
|
|
|
ebb33b |
%license LICENSE
|
|
|
ebb33b |
%doc Changes README
|
|
|
ebb33b |
%{perl_vendorlib}/*
|
|
|
ebb33b |
%{_mandir}/man3/*
|
|
|
ebb33b |
|
|
|
ebb33b |
%changelog
|
|
|
ebb33b |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.012-2
|
|
|
ebb33b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
ebb33b |
|
|
|
ebb33b |
* Fri Oct 20 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.012-1
|
|
|
ebb33b |
- 0.012 bump
|
|
|
ebb33b |
|
|
|
ebb33b |
* Wed Oct 11 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.011-1
|
|
|
ebb33b |
- 0.011 bump
|
|
|
ebb33b |
|
|
|
ebb33b |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.008-3
|
|
|
ebb33b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
ebb33b |
|
|
|
ebb33b |
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.008-2
|
|
|
ebb33b |
- Perl 5.26 rebuild
|
|
|
ebb33b |
|
|
|
ebb33b |
* Mon Mar 20 2017 Petr Pisar <ppisar@redhat.com> - 0.008-1
|
|
|
ebb33b |
- 0.008 bump
|
|
|
ebb33b |
|
|
|
ebb33b |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.006-2
|
|
|
ebb33b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
ebb33b |
|
|
|
ebb33b |
* Wed Jan 11 2017 Petr Pisar <ppisar@redhat.com> - 0.006-1
|
|
|
ebb33b |
- 0.006 bump
|
|
|
ebb33b |
|
|
|
ebb33b |
* Mon Jan 02 2017 Petr Pisar <ppisar@redhat.com> - 0.005-1
|
|
|
ebb33b |
- 0.005 bump
|
|
|
ebb33b |
|
|
|
ebb33b |
* Wed Dec 21 2016 Petr Pisar <ppisar@redhat.com> - 0.004-1
|
|
|
ebb33b |
- 0.004 bump
|
|
|
ebb33b |
|
|
|
ebb33b |
* Tue Dec 20 2016 Petr Pisar <ppisar@redhat.com> 0.002-1
|
|
|
ebb33b |
- Specfile autogenerated by cpanspec 1.78.
|