From 0d72867a0194eb17dcda7773ec741884ba6d447a6e6faa89703627491c4d9eb4 Mon Sep 17 00:00:00 2001 From: Pedro Monreal Gonzalez Date: Tue, 29 Jun 2021 10:22:03 +0000 Subject: [PATCH] Accepting request 903016 from devel:languages:perl:autoupdate - Limit description paragraphs - updated to 1.25 see /usr/share/doc/packages/perl-Data-Dump/Changes 2021-06-26 Breno G. de Oliveira Release 1.25 New option $Data::Dump::LINEWIDTH controls when to perform a linebreak (default is 60). Many thanks to Jonas Kramer, Rob Kinyon, cybernicus and Lady Aleena for submitting reports and pull requests. 2021-06-25 Breno G. de Oliveira Release 1.24 Strings like "NaN" are still strings Update maintainer and repository information OBS-URL: https://build.opensuse.org/request/show/903016 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-Dump?expand=0&rev=18 --- Data-Dump-1.23.tar.gz | 3 -- Data-Dump-1.25.tar.gz | 3 ++ cpanspec.yml | 2 +- perl-Data-Dump.changes | 21 +++++++++ perl-Data-Dump.spec | 96 +++++++----------------------------------- 5 files changed, 41 insertions(+), 84 deletions(-) delete mode 100644 Data-Dump-1.23.tar.gz create mode 100644 Data-Dump-1.25.tar.gz diff --git a/Data-Dump-1.23.tar.gz b/Data-Dump-1.23.tar.gz deleted file mode 100644 index 47ad5de..0000000 --- a/Data-Dump-1.23.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:af53b05ef1387b4cab4427e6789179283e4f0da8cf036e8db516ddb344512b65 -size 20771 diff --git a/Data-Dump-1.25.tar.gz b/Data-Dump-1.25.tar.gz new file mode 100644 index 0000000..9511ca0 --- /dev/null +++ b/Data-Dump-1.25.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4aa6e0ddbf39d5ad49bddfe0f89d9da864e3bc00f627125d1bc580472f53fbd +size 20912 diff --git a/cpanspec.yml b/cpanspec.yml index 9b7ec50..bc44bb3 100644 --- a/cpanspec.yml +++ b/cpanspec.yml @@ -1,5 +1,5 @@ --- -#description_paragraphs: 3 +description_paragraphs: 6 #no_testing: broken upstream #sources: # - source1 diff --git a/perl-Data-Dump.changes b/perl-Data-Dump.changes index 84cf166..2152c98 100644 --- a/perl-Data-Dump.changes +++ b/perl-Data-Dump.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Tue Jun 29 09:24:23 UTC 2021 - Tina Müller + +- Limit description paragraphs + +------------------------------------------------------------------- +Sun Jun 27 03:06:21 UTC 2021 - Tina Müller + +- updated to 1.25 + see /usr/share/doc/packages/perl-Data-Dump/Changes + + 2021-06-26 Breno G. de Oliveira + Release 1.25 + New option $Data::Dump::LINEWIDTH controls when to perform a + linebreak (default is 60). Many thanks to Jonas Kramer, Rob Kinyon, + cybernicus and Lady Aleena for submitting reports and pull requests. + 2021-06-25 Breno G. de Oliveira + Release 1.24 + Strings like "NaN" are still strings + Update maintainer and repository information + ------------------------------------------------------------------- Sun Jun 14 08:03:10 UTC 2015 - coolo@suse.com diff --git a/perl-Data-Dump.spec b/perl-Data-Dump.spec index 725567a..44537f8 100644 --- a/perl-Data-Dump.spec +++ b/perl-Data-Dump.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Data-Dump # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,30 +12,28 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -Name: perl-Data-Dump -Version: 1.23 -Release: 0 %define cpan_name Data-Dump +Name: perl-Data-Dump +Version: 1.25 +Release: 0 Summary: Pretty printing of data structures -License: Artistic-1.0 or GPL-1.0+ -Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Data-Dump/ -Source0: http://www.cpan.org/authors/id/G/GA/GAAS/%{cpan_name}-%{version}.tar.gz +License: Artistic-1.0 OR GPL-1.0-or-later +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/G/GA/GARU/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros %{perl_requires} %description -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. +This module provides a few functions that traverse their argument list and +return a string containing 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: @@ -51,76 +49,15 @@ 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( ... ) - -* pp( ... ) - - Returns a string containing a Perl expression. If you pass this string to - Perl's built-in eval() function it should return a copy of the arguments - you passed to dump(). - - If you call the function with multiple arguments then the output will be - wrapped in parenthesis "( ..., ... )". If you call the function with a - single argument the output will not have the wrapping. If you call the - function with a single scalar (non-reference) argument it will just - return the scalar quoted if needed, but never break it into multiple - lines. If you pass multiple arguments or references to arrays of hashes - then the return value might contain line breaks to format it for easier - reading. The returned string will never be "\n" terminated, even if - contains multiple lines. This allows code like this to place the - semicolon in the expected place: - - print '$obj = ', dump($obj), ";\n"; - - If dump() is called in void context, then the dump is printed on STDERR - and then "\n" terminated. You might find this useful for quick debug - printouts, but the dd*() functions might be better alternatives for this. - - There is no difference between dump() and pp(), except that dump() shares - its name with a not-so-useful perl builtin. Because of this some might - want to avoid using that name. - -* quote( $string ) - - Returns a quoted version of the provided string. - - It differs from 'dump($string)' in that it will quote even numbers and - not try to come up with clever expressions that might shorten the output. - If a non-scalar argument is provided then it's just stringified instead - of traversed. - -* dd( ... ) - -* ddx( ... ) - - These functions will call dump() on their argument and print the result - to STDOUT (actually, it's the currently selected output handle, but - STDOUT is the default for that). - - The difference between them is only that ddx() will prefix the lines it - prints with "# " and mark the first line with the file and line number - where it was called. This is meant to be useful for debug printouts of - state within programs. - -* dumpf( ..., \&filter ) - - Short hand for calling the dump_filtered() function of the - Data::Dump::Filtered manpage. This works like dump(), but the last - argument should be a filter callback function. As objects are visited the - filter callback is invoked and it can modify how the objects are dumped. - %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -%{__make} %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor +%make_build %check -%{__make} test +make test %install %perl_make_install @@ -128,7 +65,6 @@ by default): %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) -%doc Changes README +%doc Changes README.md %changelog