2010-04-03 18:56:49 +00:00
|
|
|
#
|
2011-12-22 19:04:00 +00:00
|
|
|
# spec file for package perl-Data-Dump
|
2010-04-03 18:56:49 +00:00
|
|
|
#
|
2013-06-04 08:45:48 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-04-03 18:56:49 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2011-12-22 19:04:14 +00:00
|
|
|
|
2010-04-03 18:56:49 +00:00
|
|
|
Name: perl-Data-Dump
|
2013-06-04 08:45:48 +00:00
|
|
|
Version: 1.22
|
|
|
|
Release: 0
|
2011-12-22 19:04:00 +00:00
|
|
|
%define cpan_name Data-Dump
|
2006-10-31 15:10:37 +00:00
|
|
|
Summary: Pretty printing of data structures
|
2011-12-22 19:04:14 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2006-10-31 15:10:37 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2013-06-04 08:45:48 +00:00
|
|
|
Url: http://search.cpan.org/dist/Data-Dump/
|
|
|
|
Source: http://www.cpan.org/authors/id/G/GA/GAAS/%{cpan_name}-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
2011-12-22 19:04:00 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-04-03 18:56:49 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2013-06-04 08:45:48 +00:00
|
|
|
#BuildRequires: perl(Data::Dump)
|
|
|
|
#BuildRequires: perl(Data::Dump::FilterContext)
|
|
|
|
#BuildRequires: perl(Data::Dump::Filtered)
|
|
|
|
%{perl_requires}
|
2006-10-31 15:10:37 +00:00
|
|
|
|
|
|
|
%description
|
2013-06-04 08:45:48 +00:00
|
|
|
This module provide a few functions that traverse their argument and
|
|
|
|
produces a string as its result. The string contains Perl code that, when
|
|
|
|
'eval'ed, produces a deep copy of the original arguments.
|
|
|
|
|
|
|
|
The main feature of the module is that it strives to produce output that is
|
|
|
|
easy to read. Example:
|
|
|
|
|
|
|
|
@a = (1, [2, 3], {4 => 5});
|
|
|
|
dump(@a);
|
2006-10-31 15:10:37 +00:00
|
|
|
|
2013-06-04 08:45:48 +00:00
|
|
|
Produces:
|
2011-03-03 21:22:51 +00:00
|
|
|
|
2013-06-04 08:45:48 +00:00
|
|
|
"(1, [2, 3], { 4 => 5 })"
|
2011-03-03 21:22:51 +00:00
|
|
|
|
2013-06-04 08:45:48 +00:00
|
|
|
If you dump just a little data, it is output on a single line. If you dump
|
|
|
|
data that is more complex or there is a lot of it, line breaks are
|
|
|
|
automatically added to keep it easy to read.
|
2011-03-03 21:22:51 +00:00
|
|
|
|
2013-06-04 08:45:48 +00:00
|
|
|
The following functions are provided (only the dd* functions are exported
|
|
|
|
by default):
|
|
|
|
|
|
|
|
* dump( ... )
|
2006-10-31 15:10:37 +00:00
|
|
|
|
|
|
|
%prep
|
2010-04-03 18:56:49 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2006-10-31 15:10:37 +00:00
|
|
|
|
|
|
|
%build
|
2013-06-04 08:45:48 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
2010-04-03 18:56:49 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
2006-10-31 15:10:37 +00:00
|
|
|
|
|
|
|
%install
|
2010-04-03 18:56:49 +00:00
|
|
|
%perl_make_install
|
2006-10-31 15:10:37 +00:00
|
|
|
%perl_process_packlist
|
2010-04-03 18:56:49 +00:00
|
|
|
%perl_gen_filelist
|
2006-10-31 15:10:37 +00:00
|
|
|
|
2010-04-03 18:56:49 +00:00
|
|
|
%files -f %{name}.files
|
2013-06-04 08:45:48 +00:00
|
|
|
%defattr(-,root,root,755)
|
2010-04-03 18:56:49 +00:00
|
|
|
%doc Changes README
|
2006-10-31 15:10:37 +00:00
|
|
|
|
|
|
|
%changelog
|