forked from pool/perl-Data-Dump
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:
committed by
Git OBS Bridge
parent
d4c3bc7dbc
commit
dd2f32e575
@@ -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
3
Data-Dump-1.22.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:533caad79f2f5ff453ed30137c96c1cb2a7e83972bf9dc48d265e0e035a738b2
|
||||||
|
size 20621
|
||||||
@@ -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
|
Wed Mar 7 10:05:16 UTC 2012 - andrea.turrini@gmail.com
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Data-Dump
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,42 +17,53 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: perl-Data-Dump
|
Name: perl-Data-Dump
|
||||||
|
Version: 1.22
|
||||||
|
Release: 0
|
||||||
%define cpan_name Data-Dump
|
%define cpan_name Data-Dump
|
||||||
Summary: Pretty printing of data structures
|
Summary: Pretty printing of data structures
|
||||||
License: Artistic-1.0 or GPL-1.0+
|
License: Artistic-1.0 or GPL-1.0+
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Version: 1.21
|
Url: http://search.cpan.org/dist/Data-Dump/
|
||||||
Release: 0
|
Source: http://www.cpan.org/authors/id/G/GA/GAAS/%{cpan_name}-%{version}.tar.gz
|
||||||
Url: http://search.cpan.org/dist/Data-Dump
|
BuildArch: noarch
|
||||||
Source: http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Data-Dump-%{version}.tar.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{perl_requires}
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
Provides: %{cpan_name}
|
#BuildRequires: perl(Data::Dump)
|
||||||
%if 0%{?suse_version} >= 1120
|
#BuildRequires: perl(Data::Dump::FilterContext)
|
||||||
BuildArch: noarch
|
#BuildRequires: perl(Data::Dump::Filtered)
|
||||||
%endif
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This module provides functions that take a list of values as their
|
This module provide a few functions that traverse their argument and
|
||||||
argument and produce a string as their result. The string contains Perl
|
produces a string as its result. The string contains Perl code that, when
|
||||||
code that, when "eval"ed, produces a deep copy of the original
|
'eval'ed, produces a deep copy of the original arguments.
|
||||||
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:
|
"(1, [2, 3], { 4 => 5 })"
|
||||||
--------
|
|
||||||
Gisle Aas <gisle@aas.no>
|
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
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
%{__make}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__make} test
|
%{__make} test
|
||||||
@@ -62,11 +73,8 @@ Authors:
|
|||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
|
||||||
%{__rm} -rf %{buildroot}
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-, root, root)
|
%defattr(-,root,root,755)
|
||||||
%doc Changes README
|
%doc Changes README
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user