# # spec file for package perl-Data-Format-Pretty-Console # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # Name: perl-Data-Format-Pretty-Console Version: 0.37 Release: 0 %define cpan_name Data-Format-Pretty-Console Summary: Pretty-print data structure for console output License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Data-Format-Pretty-Console/ Source0: https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Data::Dump::Partial) BuildRequires: perl(Data::Unixish) >= 1.54 BuildRequires: perl(JSON::MaybeXS) BuildRequires: perl(Log::Any::IfLOG) >= 0.07 BuildRequires: perl(Test::More) >= 0.98 BuildRequires: perl(Text::ANSITable) >= 0.08 BuildRequires: perl(YAML::Any) BuildRequires: perl(experimental) Requires: perl(JSON::MaybeXS) Requires: perl(Log::Any::IfLOG) >= 0.07 Requires: perl(Text::ANSITable) >= 0.08 Requires: perl(YAML::Any) Requires: perl(experimental) Recommends: perl(Term::Size) %{perl_requires} %description This module is meant to output data structure in a "pretty" or "nice" format, suitable for console programs. The idea of this module is that for you to just merrily dump data structure to the console, and this module will figure out how to best display your data to the end-user. Currently this module tries to display the data mostly as a nice text table (or a series of text tables), and failing that, display it as YAML. This module takes piping into consideration, and will output a simpler, more suitable format when your user pipes your program's output into some other program. Most of the time, you don't have to configure anything, but some options are provided to tweak the output. %prep %setup -q -n %{cpan_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc Changes README %license LICENSE %changelog