1 | # Recognize terminal size |
---|
2 | %bcond_with perl_Term_Table_enables_terminal |
---|
3 | # Respect Unicode rules when breaking lines |
---|
4 | %bcond_with perl_Term_Table_enables_unicode |
---|
5 | |
---|
6 | Name: perl-Term-Table |
---|
7 | Version: 0.013 |
---|
8 | Release: 3%{?_dist_release} |
---|
9 | Summary: Format a header and rows into a table |
---|
10 | License: GPL+ or Artistic |
---|
11 | URL: https://metacpan.org/release/Term-Table |
---|
12 | Source0: https://cpan.metacpan.org/authors/id/E/EX/EXODIST/Term-Table-%{version}.tar.gz |
---|
13 | |
---|
14 | Vendor: Project Vine |
---|
15 | Distribution: Vine Linux |
---|
16 | |
---|
17 | BuildArch: noarch |
---|
18 | BuildRequires: make |
---|
19 | BuildRequires: perl >= 2:5.26.2 |
---|
20 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
21 | BuildRequires: perl(strict) |
---|
22 | BuildRequires: perl(warnings) |
---|
23 | # Run-time: |
---|
24 | BuildRequires: perl(Carp) |
---|
25 | BuildRequires: perl(Config) |
---|
26 | BuildRequires: perl(Importer) |
---|
27 | BuildRequires: perl(List::Util) |
---|
28 | BuildRequires: perl(Scalar::Util) |
---|
29 | # Optional run-time: |
---|
30 | %if %{with perl_Term_Table_enables_terminal} |
---|
31 | # Term::ReadKey 2.32 not used if Term::Size::Any is available |
---|
32 | # Prefer Term::Size::Any over Term::ReadKey |
---|
33 | BuildRequires: perl(Term::Size::Any) |
---|
34 | %endif |
---|
35 | %if %{with perl_Term_Table_enables_unicode} |
---|
36 | BuildRequires: perl(Unicode::GCString) |
---|
37 | %endif |
---|
38 | # Tests: |
---|
39 | BuildRequires: perl(base) |
---|
40 | #BuildRequires: perl(Test2::API) |
---|
41 | #BuildRequires: perl(Test2::Tools::Tiny) |
---|
42 | BuildRequires: perl(Test::More) |
---|
43 | BuildRequires: perl(utf8) |
---|
44 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
45 | Requires: perl(Importer) >= 0.024 |
---|
46 | %if %{with perl_Term_Table_enables_terminal} |
---|
47 | Suggests: perl(Term::ReadKey) |
---|
48 | # Prefer Term::Size::Any over Term::ReadKey |
---|
49 | Recommends: perl(Term::Size::Any) |
---|
50 | %endif |
---|
51 | %if %{with perl_Term_Table_enables_unicode} |
---|
52 | Recommends: perl(Unicode::GCString) |
---|
53 | %endif |
---|
54 | |
---|
55 | # Remove under-specified dependencies |
---|
56 | %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Importer\\)$ |
---|
57 | |
---|
58 | %description |
---|
59 | This Perl module is able to format rows of data into tables. |
---|
60 | |
---|
61 | %prep |
---|
62 | %setup -q -n Term-Table-%{version} |
---|
63 | |
---|
64 | %build |
---|
65 | perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 |
---|
66 | make %{?_smp_mflags} |
---|
67 | |
---|
68 | %install |
---|
69 | make pure_install DESTDIR=$RPM_BUILD_ROOT |
---|
70 | %{_fixperms} $RPM_BUILD_ROOT/* |
---|
71 | |
---|
72 | %check |
---|
73 | %if %{with perl_Term_Table_enables_terminal} |
---|
74 | unset TABLE_TERM_SIZE |
---|
75 | make test |
---|
76 | %endif |
---|
77 | |
---|
78 | %files |
---|
79 | %license LICENSE |
---|
80 | %doc Changes README |
---|
81 | %{perl_vendorlib}/* |
---|
82 | %{_mandir}/man3/* |
---|
83 | |
---|
84 | %changelog |
---|
85 | * Sun May 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.013-3 |
---|
86 | - initial build for Vine Linux. |
---|
87 | |
---|
88 | * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.013-2 |
---|
89 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild |
---|
90 | |
---|
91 | * Wed Dec 05 2018 Petr Pisar <ppisar@redhat.com> - 0.013-1 |
---|
92 | - 0.013 bump |
---|
93 | |
---|
94 | * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.012-4 |
---|
95 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
---|
96 | |
---|
97 | * Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.012-3 |
---|
98 | - Perl 5.28 rebuild |
---|
99 | |
---|
100 | * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.012-2 |
---|
101 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
---|
102 | |
---|
103 | * Fri Oct 20 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.012-1 |
---|
104 | - 0.012 bump |
---|
105 | |
---|
106 | * Wed Oct 11 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.011-1 |
---|
107 | - 0.011 bump |
---|
108 | |
---|
109 | * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.008-3 |
---|
110 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
---|
111 | |
---|
112 | * Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.008-2 |
---|
113 | - Perl 5.26 rebuild |
---|
114 | |
---|
115 | * Mon Mar 20 2017 Petr Pisar <ppisar@redhat.com> - 0.008-1 |
---|
116 | - 0.008 bump |
---|
117 | |
---|
118 | * Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.006-2 |
---|
119 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild |
---|
120 | |
---|
121 | * Wed Jan 11 2017 Petr Pisar <ppisar@redhat.com> - 0.006-1 |
---|
122 | - 0.006 bump |
---|
123 | |
---|
124 | * Mon Jan 02 2017 Petr Pisar <ppisar@redhat.com> - 0.005-1 |
---|
125 | - 0.005 bump |
---|
126 | |
---|
127 | * Wed Dec 21 2016 Petr Pisar <ppisar@redhat.com> - 0.004-1 |
---|
128 | - 0.004 bump |
---|
129 | |
---|
130 | * Tue Dec 20 2016 Petr Pisar <ppisar@redhat.com> 0.002-1 |
---|
131 | - Specfile autogenerated by cpanspec 1.78. |
---|