9
0

Accepting request 177331 from home:coolo:update-perl

- updated to 1.22
   Deal with class names containing '=' [RT#72415]
   Filters now get access to $ctx->expr; the textual expression
   denoting the current object.

OBS-URL: https://build.opensuse.org/request/show/177331
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-Dump?expand=0&rev=14
This commit is contained in:
Stephan Kulow
2013-06-04 08:45:48 +00:00
committed by Git OBS Bridge
parent d4c3bc7dbc
commit dd2f32e575
4 changed files with 43 additions and 26 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bdf9f4a7ed8a5cbd2ee2d35054c8725ff539b4b5ff50501e7aca007211369eb9
size 20132

3
Data-Dump-1.22.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:533caad79f2f5ff453ed30137c96c1cb2a7e83972bf9dc48d265e0e035a738b2
size 20621

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Jun 4 07:32:27 UTC 2013 - coolo@suse.com
- updated to 1.22
Deal with class names containing '=' [RT#72415]
Filters now get access to $ctx->expr; the textual expression
denoting the current object.
-------------------------------------------------------------------
Wed Mar 7 10:05:16 UTC 2012 - andrea.turrini@gmail.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Data-Dump
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,42 +17,53 @@
Name: perl-Data-Dump
Version: 1.22
Release: 0
%define cpan_name Data-Dump
Summary: Pretty printing of data structures
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Version: 1.21
Release: 0
Url: http://search.cpan.org/dist/Data-Dump
Source: http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Data-Dump-%{version}.tar.gz
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
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
Provides: %{cpan_name}
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
#BuildRequires: perl(Data::Dump)
#BuildRequires: perl(Data::Dump::FilterContext)
#BuildRequires: perl(Data::Dump::Filtered)
%{perl_requires}
%description
This module provides functions that take a list of values as their
argument and produce a string as their result. The string contains Perl
code that, when "eval"ed, produces a deep copy of the original
arguments.
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);
Produces:
Authors:
--------
Gisle Aas <gisle@aas.no>
"(1, [2, 3], { 4 => 5 })"
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.
The following functions are provided (only the dd* functions are exported
by default):
* dump( ... )
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
%{__make}
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
@@ -62,11 +73,8 @@ Authors:
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-, root, root)
%defattr(-,root,root,755)
%doc Changes README
%changelog