Files
perl-Data-TreeDumper/perl-Data-TreeDumper.spec

80 lines
2.5 KiB
RPMSpec

#
# spec file for package perl-Data-TreeDumper
#
# 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-TreeDumper
Version: 0.37
Release: 0
%define cpan_name Data-TreeDumper
Summary: Improved replacement for Data::Dumper. Powerful filtering capability.
License: CHECK(GPL-1.0+ or Artistic-1.0)
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Data-TreeDumper/
Source: http://www.cpan.org/authors/id/N/NK/NKH/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Check::ISA)
BuildRequires: perl(Class::ISA)
BuildRequires: perl(Devel::Size) >= 0.58
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Sort::Naturally)
BuildRequires: perl(Term::Size) >= 0.2
BuildRequires: perl(Text::Wrap) >= 2001.0929
Requires: perl(Check::ISA)
Requires: perl(Class::ISA)
Requires: perl(Devel::Size) >= 0.58
Requires: perl(Sort::Naturally)
Requires: perl(Term::Size) >= 0.2
Requires: perl(Text::Wrap) >= 2001.0929
%{perl_requires}
%description
Data::Dumper and other modules do a great job of dumping data structures.
Their output, however, often takes more brain power to understand than the
data itself. When dumping large amounts of data, the output can be
overwhelming and it can be difficult to see the relationship between each
piece of the dumped data.
Data::TreeDumper also dumps data in a tree-like fashion but _hopefully_ in
a format more easily understood.
%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
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README s Todo
%changelog