Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 87f6bbae1e263708fbd36b3f0be9abe9 > files > 2

perl-Text-Table-Tiny-1.30.0-1.mga9.src.rpm

%define upstream_name    Text-Table-Tiny
%define upstream_version 1.03

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    %mkrel 1

Summary:    Generate simple text tables from 2D arrays
License:    GPLv1+ or Artistic
Group:      Development/Perl
Url:        https://metacpan.org/release/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Ref::Util) >= 0.202.0
BuildRequires: perl(String::TtyLength) >= 0.20.0
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(lib)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(warnings)
BuildArch:  noarch

%description
This module provides a single function, 'generate_table', which formats a
two-dimensional array of data as a text table. There are a number of
options for adjusting the output format, but the intention is that the
default option is good enough for most uses.

The example shown in the SYNOPSIS generates the following table:

 +------------+---------+-------+
 | Pokemon    | Type    | Count |
 +------------+---------+-------+
 | Abra       | Psychic | 5     |
 | Ekans      | Poison  | 123   |
 | Feraligatr | Water   | 5678  |
 +------------+---------+-------+

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make_build

%check
%make_build test

%install
%make_install

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%perl_vendorlib/*

%changelog
* Wed Jun 22 2022 tv <tv> 1.30.0-1.mga9
+ Revision: 1865454
- update to 1.03

* Mon Mar 21 2022 umeabot <umeabot> 1.20.0-2.mga9
+ Revision: 1813219
- Mageia 9 Mass Rebuild

* Mon Sep 14 2020 tv <tv> 1.20.0-1.mga8
+ Revision: 1626261
- update to 1.02

* Wed Sep 09 2020 tv <tv> 1.10.0-1.mga8
+ Revision: 1623780
- update to 1.01

* Mon Aug 10 2020 tv <tv> 1.0.0-1.mga8
+ Revision: 1612609
- imported package perl-Text-Table-Tiny