Files
perl-Data-Format-Pretty-Con…/perl-Data-Format-Pretty-Console.spec
Stephan Kulow 5ade882e6a Accepting request 494772 from devel:languages:perl:autoupdate
- updated to 0.37
   see /usr/share/doc/packages/perl-Data-Format-Pretty-Console/Changes
  0.37    2016-03-13 (PERLANCAR)
  
  	- No functional changes.
  
  	- Bump prereq version Data::Unixish to 0.54 [RT#112947].
  
  
  0.36    2016-03-11 (PERLANCAR)
  
  	- Replace JSON with JSON::MaybeXS.
  
  
  0.35    2015-10-20 (PERLANCAR)
  
  	- No functional changes.
  
  	- Avoid runtime requires of Data::Unixish (now only TestRequires).
  
  
  0.34    2015-08-17 (PERLANCAR)
  
  	- No functional changes.
  
  	- Switch from Log::Any to Log::Any::IfLOG.

OBS-URL: https://build.opensuse.org/request/show/494772
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-Format-Pretty-Console?expand=0&rev=4
2017-05-18 08:31:48 +00:00

86 lines
2.9 KiB
RPMSpec

#
# 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