Hello community, here is the log from the commit of package perl-CPAN-Meta-YAML for openSUSE:Factory checked in at 2012-02-16 10:06:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-CPAN-Meta-YAML (Old) and /work/SRC/openSUSE:Factory/.perl-CPAN-Meta-YAML.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-CPAN-Meta-YAML", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-CPAN-Meta-YAML/perl-CPAN-Meta-YAML.changes 2011-11-14 13:19:20.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-CPAN-Meta-YAML.new/perl-CPAN-Meta-YAML.changes 2012-02-16 10:06:47.000000000 +0100 @@ -1,0 +2,10 @@ +Mon Feb 13 08:49:19 UTC 2012 - co...@suse.com + +- updated to 0.007 + - Documentation fix to replace missing abstract + - Set back configure_requires prerequisite for ExtUtils::MakeMaker + from 6.30 to 6.17 (per request from Andreas Koenig) + - Fix documentation to clarify that users are responsible for + UTF-8 encoding/decoding + +------------------------------------------------------------------- Old: ---- CPAN-Meta-YAML-0.004.tar.gz New: ---- CPAN-Meta-YAML-0.007.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-CPAN-Meta-YAML.spec ++++++ --- /var/tmp/diff_new_pack.cwSanf/_old 2012-02-16 10:06:48.000000000 +0100 +++ /var/tmp/diff_new_pack.cwSanf/_new 2012-02-16 10:06:48.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package perl-CPAN-Meta-YAML # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 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 @@ -16,43 +16,26 @@ # - Name: perl-CPAN-Meta-YAML -Version: 0.004 -Release: 1 -License: GPL-1.0+ or Artistic-1.0 +Version: 0.007 +Release: 0 %define cpan_name CPAN-Meta-YAML Summary: Read and write a subset of YAML for CPAN Meta files -Url: http://search.cpan.org/dist/CPAN-Meta-YAML/ +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl +Url: http://search.cpan.org/dist/CPAN-Meta-YAML/ Source: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Carp) -BuildRequires: perl(Exporter) -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 -BuildRequires: perl(File::Spec) -BuildRequires: perl(File::Spec::Functions) -BuildRequires: perl(Scalar::Util) -BuildRequires: perl(strict) -BuildRequires: perl(Test::More) -BuildRequires: perl(vars) #BuildRequires: perl(CPAN::Meta::YAML) +#BuildRequires: perl(Test::Requires) #BuildRequires: perl(t::lib::Test) #BuildRequires: perl(YAML) #BuildRequires: perl(YAML::Perl) #BuildRequires: perl(YAML::Syck) #BuildRequires: perl(YAML::XS) -Requires: perl(Carp) -Requires: perl(Exporter) -Requires: perl(File::Spec) -Requires: perl(File::Spec::Functions) -Requires: perl(Scalar::Util) -Requires: perl(strict) -Requires: perl(Test::More) -Requires: perl(vars) %{perl_requires} %description @@ -61,12 +44,18 @@ It should not be used for any other general YAML parsing or generation task. +NOTE: _META.yml_ (and _MYMETA.yml_) files should be UTF-8 encoded. Users +are responsible for proper encoding and decoding. In particular, the 'read' +and 'write' methods do *not* support UTF-8 and should not be used. + %prep %setup -q -n %{cpan_name}-%{version} +find . -type f -print0 | xargs -0 chmod 644 +# MANUAL BEGIN %if 0%{?rhel_version} || 0%{?centos_version} || 0%{?sles_version} == 10 %{__perl} -p -i -e 's|6.31|6.30|' Makefile.PL %endif -find . -type f -print0 | xargs -0 chmod 644 +# MANUAL END %build %{__perl} Makefile.PL INSTALLDIRS=vendor ++++++ CPAN-Meta-YAML-0.004.tar.gz -> CPAN-Meta-YAML-0.007.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-YAML-0.004/Changes new/CPAN-Meta-YAML-0.007/Changes --- old/CPAN-Meta-YAML-0.004/Changes 2011-09-06 15:42:59.000000000 +0200 +++ new/CPAN-Meta-YAML-0.007/Changes 2012-02-08 04:42:48.000000000 +0100 @@ -1,5 +1,25 @@ Revision history for CPAN-Meta-YAML +0.007 2012-02-07 22:42:42 EST5EDT + + - Generated from ADAMK/YAML-Tiny-1.50.tar.gz + + - Documentation fix to replace missing abstract + +0.006 2012-02-06 20:51:47 EST5EDT + + - Generated from ADAMK/YAML-Tiny-1.50.tar.gz + + - Set back configure_requires prerequisite for ExtUtils::MakeMaker + from 6.30 to 6.17 (per request from Andreas Koenig) + +0.005 2011-12-13 12:57:24 EST5EDT + + - Generated from ADAMK/YAML-Tiny-1.50.tar.gz + + - Fix documentation to clarify that users are responsible for + UTF-8 encoding/decoding + 0.004 2011-09-06 09:42:52 America/New_York - Generated from ADAMK/YAML-Tiny-1.50.tar.gz diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-YAML-0.004/LICENSE new/CPAN-Meta-YAML-0.007/LICENSE --- old/CPAN-Meta-YAML-0.004/LICENSE 2011-09-06 15:42:59.000000000 +0200 +++ new/CPAN-Meta-YAML-0.007/LICENSE 2012-02-08 04:42:48.000000000 +0100 @@ -22,7 +22,7 @@ Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + 51 Franklin St, Suite 500, Boston, MA 02110-1335 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-YAML-0.004/MANIFEST new/CPAN-Meta-YAML-0.007/MANIFEST --- old/CPAN-Meta-YAML-0.004/MANIFEST 2011-09-06 15:42:59.000000000 +0200 +++ new/CPAN-Meta-YAML-0.007/MANIFEST 2012-02-08 04:42:48.000000000 +0100 @@ -7,6 +7,7 @@ Makefile.PL README lib/CPAN/Meta/YAML.pm +t/00-compile.t t/01_compile.t t/02_basic.t t/03_regression.t @@ -35,6 +36,7 @@ t/data/utf_16_le_bom.yml t/data/vanilla.yml t/lib/Test.pm +xt/author/pod-spell.t xt/release/distmeta.t xt/release/pod-syntax.t xt/release/test-version.t diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-YAML-0.004/META.json new/CPAN-Meta-YAML-0.007/META.json --- old/CPAN-Meta-YAML-0.004/META.json 2011-09-06 15:42:59.000000000 +0200 +++ new/CPAN-Meta-YAML-0.007/META.json 2012-02-08 04:42:48.000000000 +0100 @@ -5,7 +5,7 @@ "David Golden <dagol...@cpan.org>" ], "dynamic_config" : 0, - "generated_by" : "Dist::Zilla version 4.300000, CPAN::Meta::Converter version 2.112150", + "generated_by" : "Dist::Zilla version 4.300005, CPAN::Meta::Converter version 2.112621", "license" : [ "perl_5" ], @@ -28,7 +28,7 @@ "prereqs" : { "configure" : { "requires" : { - "ExtUtils::MakeMaker" : "6.30" + "ExtUtils::MakeMaker" : "6.17" } }, "runtime" : { @@ -42,17 +42,20 @@ }, "test" : { "requires" : { + "File::Find" : 0, "File::Spec" : 0, "File::Spec::Functions" : 0, + "File::Temp" : 0, "Test::More" : 0, - "vars" : 0 + "vars" : 0, + "warnings" : 0 } } }, "provides" : { "CPAN::Meta::YAML" : { "file" : "lib/CPAN/Meta/YAML.pm", - "version" : "0.004" + "version" : "0.007" } }, "release_status" : "stable", @@ -61,13 +64,13 @@ "mailto" : "bug-cpan-meta-yaml at rt.cpan.org", "web" : "http://rt.cpan.org/Public/Dist/Display.html?Name=CPAN-Meta-YAML" }, - "homepage" : "http://github.com/dagolden/cpan-meta-yaml", + "homepage" : "https://github.com/dagolden/cpan-meta-yaml", "repository" : { "type" : "git", - "url" : "http://github.com/dagolden/cpan-meta-yaml", - "web" : "http://github.com/dagolden/cpan-meta-yaml" + "url" : "https://github.com/dagolden/cpan-meta-yaml.git", + "web" : "https://github.com/dagolden/cpan-meta-yaml" } }, - "version" : "0.004" + "version" : "0.007" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-YAML-0.004/META.yml new/CPAN-Meta-YAML-0.007/META.yml --- old/CPAN-Meta-YAML-0.004/META.yml 2011-09-06 15:42:59.000000000 +0200 +++ new/CPAN-Meta-YAML-0.007/META.yml 2012-02-08 04:42:48.000000000 +0100 @@ -4,14 +4,17 @@ - 'Adam Kennedy <ad...@cpan.org>' - 'David Golden <dagol...@cpan.org>' build_requires: + File::Find: 0 File::Spec: 0 File::Spec::Functions: 0 + File::Temp: 0 Test::More: 0 vars: 0 + warnings: 0 configure_requires: - ExtUtils::MakeMaker: 6.30 + ExtUtils::MakeMaker: 6.17 dynamic_config: 0 -generated_by: 'Dist::Zilla version 4.300000, CPAN::Meta::Converter version 2.112150' +generated_by: 'Dist::Zilla version 4.300005, CPAN::Meta::Converter version 2.112621' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -28,7 +31,7 @@ provides: CPAN::Meta::YAML: file: lib/CPAN/Meta/YAML.pm - version: 0.004 + version: 0.007 requires: Carp: 0 Exporter: 0 @@ -37,6 +40,6 @@ strict: 0 resources: bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=CPAN-Meta-YAML - homepage: http://github.com/dagolden/cpan-meta-yaml - repository: http://github.com/dagolden/cpan-meta-yaml -version: 0.004 + homepage: https://github.com/dagolden/cpan-meta-yaml + repository: https://github.com/dagolden/cpan-meta-yaml.git +version: 0.007 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-YAML-0.004/Makefile.PL new/CPAN-Meta-YAML-0.007/Makefile.PL --- old/CPAN-Meta-YAML-0.004/Makefile.PL 2011-09-06 15:42:59.000000000 +0200 +++ new/CPAN-Meta-YAML-0.007/Makefile.PL 2012-02-08 04:42:48.000000000 +0100 @@ -4,7 +4,7 @@ use 5.004; -use ExtUtils::MakeMaker 6.30; +use ExtUtils::MakeMaker 6.17; @@ -12,13 +12,16 @@ "ABSTRACT" => "Read and write a subset of YAML for CPAN Meta files", "AUTHOR" => "Adam Kennedy <adamk\@cpan.org>, David Golden <dagolden\@cpan.org>", "BUILD_REQUIRES" => { + "File::Find" => 0, "File::Spec" => 0, "File::Spec::Functions" => 0, + "File::Temp" => 0, "Test::More" => 0, - "vars" => 0 + "vars" => 0, + "warnings" => 0 }, "CONFIGURE_REQUIRES" => { - "ExtUtils::MakeMaker" => "6.30" + "ExtUtils::MakeMaker" => "6.17" }, "DISTNAME" => "CPAN-Meta-YAML", "EXE_FILES" => [], @@ -30,7 +33,7 @@ "Scalar::Util" => 0, "strict" => 0 }, - "VERSION" => "0.004", + "VERSION" => "0.007", "test" => { "TESTS" => "t/*.t" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-YAML-0.004/README new/CPAN-Meta-YAML-0.007/README --- old/CPAN-Meta-YAML-0.004/README 2011-09-06 15:42:59.000000000 +0200 +++ new/CPAN-Meta-YAML-0.007/README 2012-02-08 04:42:48.000000000 +0100 @@ -2,25 +2,25 @@ CPAN::Meta::YAML - Read and write a subset of YAML for CPAN Meta files VERSION - version 0.004 + version 0.007 SYNOPSIS use CPAN::Meta::YAML; - # methods for files - $yaml = CPAN::Meta::YAML->read('META.yml'); - $yaml->write('MYMETA.yml'); - - # methods for strings - $yaml_text = $yaml->write_string; - $yaml = CPAN::Meta::YAML->read_string($yaml_text); + # reading a META file + open $fh, "<:utf8", "META.yml"; + $yaml_text = do { local $/; <$fh> }; + $yaml = CPAN::Meta::YAML->read_string($yaml_text) + or die CPAN::Meta::YAML->errstr; # finding the metadata - my $meta = $yaml->[0]; + $meta = $yaml->[0]; - # handling errors - $yaml->write($file) + # writing a META file + $yaml_text = $yaml->write_string or die CPAN::Meta::YAML->errstr; + open $fh, ">:utf8", "META.yml"; + print $fh $yaml_text; DESCRIPTION This module implements a subset of the YAML specification for use in @@ -28,6 +28,10 @@ should not be used for any other general YAML parsing or generation task. + NOTE: META.yml (and MYMETA.yml) files should be UTF-8 encoded. Users are + responsible for proper encoding and decoding. In particular, the "read" + and "write" methods do not support UTF-8 and should not be used. + SUPPORT This module is currently derived from YAML::Tiny by Adam Kennedy. If there are bugs in how it parses a particular META.yml file, please file @@ -39,19 +43,17 @@ SUPPORT Bugs / Feature Requests - Please report any bugs or feature requests by email to - "bug-cpan-meta-yaml at rt.cpan.org", or through the web interface at + Please report any bugs or feature requests through the issue tracker at <http://rt.cpan.org/Public/Dist/Display.html?Name=CPAN-Meta-YAML>. You - will be automatically notified of any progress on the request by the - system. + will be notified automatically of any progress on your issue. Source Code This is open source software. The code repository is available for public review and contribution under the terms of the license. - <http://github.com/dagolden/cpan-meta-yaml> + <https://github.com/dagolden/cpan-meta-yaml> - git clone http://github.com/dagolden/cpan-meta-yaml + git clone https://github.com/dagolden/cpan-meta-yaml.git AUTHORS * Adam Kennedy <ad...@cpan.org> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-YAML-0.004/lib/CPAN/Meta/YAML.pm new/CPAN-Meta-YAML-0.007/lib/CPAN/Meta/YAML.pm --- old/CPAN-Meta-YAML-0.004/lib/CPAN/Meta/YAML.pm 2011-09-06 15:42:59.000000000 +0200 +++ new/CPAN-Meta-YAML-0.007/lib/CPAN/Meta/YAML.pm 2012-02-08 04:42:48.000000000 +0100 @@ -1,6 +1,6 @@ package CPAN::Meta::YAML; { - $CPAN::Meta::YAML::VERSION = '0.004'; + $CPAN::Meta::YAML::VERSION = '0.007'; } use strict; @@ -647,26 +647,26 @@ =head1 VERSION -version 0.004 +version 0.007 =head1 SYNOPSIS use CPAN::Meta::YAML; - # methods for files - $yaml = CPAN::Meta::YAML->read('META.yml'); - $yaml->write('MYMETA.yml'); - - # methods for strings - $yaml_text = $yaml->write_string; - $yaml = CPAN::Meta::YAML->read_string($yaml_text); + # reading a META file + open $fh, "<:utf8", "META.yml"; + $yaml_text = do { local $/; <$fh> }; + $yaml = CPAN::Meta::YAML->read_string($yaml_text) + or die CPAN::Meta::YAML->errstr; # finding the metadata - my $meta = $yaml->[0]; + $meta = $yaml->[0]; - # handling errors - $yaml->write($file) + # writing a META file + $yaml_text = $yaml->write_string or die CPAN::Meta::YAML->errstr; + open $fh, ">:utf8", "META.yml"; + print $fh $yaml_text; =head1 DESCRIPTION @@ -674,6 +674,10 @@ and writing CPAN metadata files like F<META.yml> and F<MYMETA.yml>. It should not be used for any other general YAML parsing or generation task. +NOTE: F<META.yml> (and F<MYMETA.yml>) files should be UTF-8 encoded. Users are +responsible for proper encoding and decoding. In particular, the C<read> and +C<write> methods do B<not> support UTF-8 and should not be used. + =head1 SUPPORT This module is currently derived from L<YAML::Tiny> by Adam Kennedy. If @@ -691,18 +695,18 @@ =head2 Bugs / Feature Requests -Please report any bugs or feature requests by email to C<bug-cpan-meta-yaml at rt.cpan.org>, or through -the web interface at L<http://rt.cpan.org/Public/Dist/Display.html?Name=CPAN-Meta-YAML>. You will be automatically notified of any -progress on the request by the system. +Please report any bugs or feature requests through the issue tracker +at L<http://rt.cpan.org/Public/Dist/Display.html?Name=CPAN-Meta-YAML>. +You will be notified automatically of any progress on your issue. =head2 Source Code This is open source software. The code repository is available for public review and contribution under the terms of the license. -L<http://github.com/dagolden/cpan-meta-yaml> +L<https://github.com/dagolden/cpan-meta-yaml> - git clone http://github.com/dagolden/cpan-meta-yaml + git clone https://github.com/dagolden/cpan-meta-yaml.git =head1 AUTHORS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-YAML-0.004/t/00-compile.t new/CPAN-Meta-YAML-0.007/t/00-compile.t --- old/CPAN-Meta-YAML-0.004/t/00-compile.t 1970-01-01 01:00:00.000000000 +0100 +++ new/CPAN-Meta-YAML-0.007/t/00-compile.t 2012-02-08 04:42:48.000000000 +0100 @@ -0,0 +1,73 @@ +#!perl + +use strict; +use warnings; + +use Test::More; + + + +use File::Find; +use File::Temp qw{ tempdir }; + +my @modules; +find( + sub { + return if $File::Find::name !~ /\.pm\z/; + my $found = $File::Find::name; + $found =~ s{^lib/}{}; + $found =~ s{[/\\]}{::}g; + $found =~ s/\.pm$//; + # nothing to skip + push @modules, $found; + }, + 'lib', +); + +sub _find_scripts { + my $dir = shift @_; + + my @found_scripts = (); + find( + sub { + return unless -f; + my $found = $File::Find::name; + # nothing to skip + open my $FH, '<', $_ or do { + note( "Unable to open $found in ( $! ), skipping" ); + return; + }; + my $shebang = <$FH>; + return unless $shebang =~ /^#!.*?\bperl\b\s*$/; + push @found_scripts, $found; + }, + $dir, + ); + + return @found_scripts; +} + +my @scripts; +do { push @scripts, _find_scripts($_) if -d $_ } + for qw{ bin script scripts }; + +my $plan = scalar(@modules) + scalar(@scripts); +$plan ? (plan tests => $plan) : (plan skip_all => "no tests to run"); + +{ + # fake home for cpan-testers + local $ENV{HOME} = tempdir( CLEANUP => 1 ); + + like( qx{ $^X -Ilib -e "require $_; print '$_ ok'" }, qr/^\s*$_ ok/s, "$_ loaded ok" ) + for sort @modules; + + SKIP: { + eval "use Test::Script 1.05; 1;"; + skip "Test::Script needed to test script compilation", scalar(@scripts) if $@; + foreach my $file ( @scripts ) { + my $script = $file; + $script =~ s!.*/!!; + script_compiles( $file, "$script script compiles" ); + } + } +} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-YAML-0.004/xt/author/pod-spell.t new/CPAN-Meta-YAML-0.007/xt/author/pod-spell.t --- old/CPAN-Meta-YAML-0.004/xt/author/pod-spell.t 1970-01-01 01:00:00.000000000 +0100 +++ new/CPAN-Meta-YAML-0.007/xt/author/pod-spell.t 2012-02-08 04:42:48.000000000 +0100 @@ -0,0 +1,22 @@ +#!perl +# This test is generated by Dist::Zilla::Plugin::Test::PodSpelling + +use Test::More; + +eval "use Pod::Wordlist::hanekomu"; +plan skip_all => "Pod::Wordlist::hanekomu required for testing POD spelling" + if $@; + +eval "use Test::Spelling 0.12"; +plan skip_all => "Test::Spelling 0.12 required for testing POD spelling" + if $@; + + +add_stopwords(<DATA>); +all_pod_files_spelling_ok('bin', 'lib'); +__DATA__ +Adam +Kennedy +David +Golden + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CPAN-Meta-YAML-0.004/xt/release/test-version.t new/CPAN-Meta-YAML-0.007/xt/release/test-version.t --- old/CPAN-Meta-YAML-0.004/xt/release/test-version.t 2011-09-06 15:42:59.000000000 +0200 +++ new/CPAN-Meta-YAML-0.007/xt/release/test-version.t 2012-02-08 04:42:48.000000000 +0100 @@ -4,9 +4,9 @@ use warnings; use Test::More; -eval "use Test::Version 0.04"; -plan skip_all => "Test::Version 0.04 required for testing versions" - if $@; +use Test::Requires { + 'Test::Version' => 0.04, +}; -version_all_ok(); +version_all_ok; done_testing; -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org