Accepting request 305148 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/305148 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-Format-Pretty-Console?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
4e1f62fe1e
commit
1c7234c766
@@ -1,69 +1,88 @@
|
||||
# vim: set sw=4 ts=4 et nu:
|
||||
#
|
||||
# spec file for package perl-Data-Format-Pretty-Console
|
||||
#
|
||||
# Copyright (c) 2015 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.07
|
||||
Version: 0.33
|
||||
Release: 0
|
||||
%define cpan_name Data-Format-Pretty-Console
|
||||
Summary: Pretty-print data structure for console output
|
||||
Source: ftp://ftp.cpan.org/pub/CPAN/authors/id/S/SH/SHARYANTO/Data-Format-Pretty-Console-%{version}.tar.gz
|
||||
URL: http://search.cpan.org/dist/Data-Format-Pretty-Console
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
License: Perl License
|
||||
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
||||
%{perl_requires}
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(File::Find)
|
||||
BuildRequires: perl(File::Temp)
|
||||
BuildRequires: perl(Data::Dump::Partial)
|
||||
BuildRequires: perl(Module::Build) >= 0.3601
|
||||
BuildRequires: perl(Module::Build)
|
||||
BuildRequires: perl(Scalar::Util)
|
||||
BuildRequires: perl(Text::ASCIITable)
|
||||
BuildRequires: perl(YAML::Any)
|
||||
Requires: perl(Scalar::Util)
|
||||
Requires: perl(Data::Dump::Partial)
|
||||
Requires: perl(Text::ASCIITable)
|
||||
Requires: perl(YAML::Any)
|
||||
%if 0%{?suse_version} >= 1120
|
||||
Url: http://search.cpan.org/dist/Data-Format-Pretty-Console/
|
||||
Source0: http://www.cpan.org/authors/id/S/SH/SHARYANTO/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Data::Dump::Partial)
|
||||
BuildRequires: perl(Data::Unixish) >= 1.34
|
||||
BuildRequires: perl(Data::Unixish::Apply) >= 1.33
|
||||
BuildRequires: perl(JSON)
|
||||
BuildRequires: perl(Log::Any)
|
||||
BuildRequires: perl(Text::ANSITable) >= 0.08
|
||||
BuildRequires: perl(YAML::Any)
|
||||
BuildRequires: perl(experimental)
|
||||
Requires: perl(Data::Unixish) >= 1.34
|
||||
Requires: perl(Data::Unixish::Apply) >= 1.33
|
||||
Requires: perl(JSON)
|
||||
Requires: perl(Log::Any)
|
||||
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 ASCII
|
||||
table (or a series of ASCII tables), and failing that, display it as YAML.
|
||||
|
||||
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 in the future
|
||||
some formatting settings will be tweakable.
|
||||
|
||||
Most of the time, you don't have to configure anything, but some options
|
||||
are provided to tweak the output.
|
||||
|
||||
This module uses the Log::Any manpage for logging.
|
||||
|
||||
%prep
|
||||
%setup -q -n "Data-Format-Pretty-Console-%{version}"
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
%__perl ./Build.PL
|
||||
./Build
|
||||
|
||||
%install
|
||||
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
|
||||
%perl_process_packlist
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
./Build test
|
||||
%{__make} test
|
||||
|
||||
%clean
|
||||
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README Changes LICENSE
|
||||
%dir %{perl_vendorlib}/Data
|
||||
%dir %{perl_vendorlib}/Data/Format
|
||||
%dir %{perl_vendorlib}/Data/Format/Pretty
|
||||
%{perl_vendorlib}/Data/Format/Pretty/Console.pm
|
||||
%doc %{perl_man3dir}/Data::Format::Pretty::Console.%{perl_man3ext}%{ext_man}
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes LICENSE README
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user