70 lines
2.3 KiB
RPMSpec
70 lines
2.3 KiB
RPMSpec
![]() |
# vim: set sw=4 ts=4 et nu:
|
||
|
|
||
|
Name: perl-Data-Format-Pretty-Console
|
||
|
Version: 0.07
|
||
|
Release: 0
|
||
|
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
|
||
|
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
|
||
|
BuildArch: noarch
|
||
|
%endif
|
||
|
|
||
|
%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.
|
||
|
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.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n "Data-Format-Pretty-Console-%{version}"
|
||
|
|
||
|
%build
|
||
|
%__perl ./Build.PL
|
||
|
./Build
|
||
|
|
||
|
%install
|
||
|
./Build pure_install --destdir "%{buildroot}" --installdirs vendor
|
||
|
%perl_process_packlist
|
||
|
|
||
|
%check
|
||
|
./Build test
|
||
|
|
||
|
%clean
|
||
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
||
|
|
||
|
%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}
|
||
|
|