75 lines
2.5 KiB
RPMSpec
75 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package perl-Text-Matrix
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define cpan_name Text-Matrix
|
|
Name: perl-Text-Matrix
|
|
Version: 1.0.0
|
|
Release: 0
|
|
# 1.00 -> normalize -> 1.0.0
|
|
%define cpan_version 1.00
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: Text table layout for matrices of short regular data
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/S/SG/SGRAHAM/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(List::MoreUtils)
|
|
BuildRequires: perl(Module::Build) >= 0.23
|
|
BuildRequires: perl(Test::Exception)
|
|
Requires: perl(List::MoreUtils)
|
|
Provides: perl(Text::Matrix) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
Text::Matrix is a specialist table display module for display of matrices
|
|
of single-character (such as Y/N for yes/no) or short multi-character data
|
|
against row and column labels that are sufficiently longer that
|
|
conventional table layouts distort the layout of the data.
|
|
|
|
The core aim is to base the layout on the tabular data concisely and
|
|
formated regularly to reflect the terseness of the underlying data, without
|
|
being forced to compensate for the longer length of the labels for the
|
|
columns and rows.
|
|
|
|
Text::Matrix will also optionally split the matrix into several sections
|
|
based on width of the generated matrix, suitable for display in situations
|
|
where you don't want external line-wrapping to confuse the layout. (Display
|
|
on an xterm, cut-n-paste into an email, etc.)
|
|
|
|
%prep
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
|
|
|
%build
|
|
perl Build.PL --installdirs=vendor
|
|
./Build build --flags=%{?_smp_mflags}
|
|
|
|
%check
|
|
./Build test
|
|
|
|
%install
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc Changes README
|
|
|
|
%changelog
|