Hello community, here is the log from the commit of package perl-Cwd-Guard for openSUSE:Factory checked in at 2016-05-25 21:27:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Cwd-Guard (Old) and /work/SRC/openSUSE:Factory/.perl-Cwd-Guard.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Cwd-Guard" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Cwd-Guard/perl-Cwd-Guard.changes 2014-09-17 17:26:47.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Cwd-Guard.new/perl-Cwd-Guard.changes 2016-05-25 21:27:25.000000000 +0200 @@ -1,0 +2,10 @@ +Thu May 5 09:00:24 UTC 2016 - co...@suse.com + +- updated to 0.05 + see /usr/share/doc/packages/perl-Cwd-Guard/Changes + + 0.05 2016-04-14T02:47:15Z + + - add a new test (Thank you eserte) + +------------------------------------------------------------------- Old: ---- Cwd-Guard-0.04.tar.gz New: ---- Cwd-Guard-0.05.tar.gz cpanspec.yml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Cwd-Guard.spec ++++++ --- /var/tmp/diff_new_pack.RnMyxW/_old 2016-05-25 21:27:25.000000000 +0200 +++ /var/tmp/diff_new_pack.RnMyxW/_new 2016-05-25 21:27:25.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Cwd-Guard # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX 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,21 +17,21 @@ Name: perl-Cwd-Guard -Version: 0.04 +Version: 0.05 Release: 0 %define cpan_name Cwd-Guard Summary: Temporary changing working directory (chdir) License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Cwd-Guard/ -Source: http://www.cpan.org/authors/id/K/KA/KAZEBURO/%{cpan_name}-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/K/KA/KAZEBURO/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(CPAN::Meta) -BuildRequires: perl(CPAN::Meta::Prereqs) -BuildRequires: perl(Module::Build) >= 0.38 +BuildRequires: perl(Module::Build) >= 0.380000 +BuildRequires: perl(Test::Requires) BuildRequires: perl(parent) Requires: perl(parent) %{perl_requires} @@ -56,6 +56,6 @@ %files -f %{name}.files %defattr(-,root,root,755) -%doc Changes cpanfile LICENSE README.md +%doc Changes LICENSE README.md %changelog ++++++ Cwd-Guard-0.04.tar.gz -> Cwd-Guard-0.05.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cwd-Guard-0.04/Build.PL new/Cwd-Guard-0.05/Build.PL --- old/Cwd-Guard-0.04/Build.PL 2013-06-03 04:04:07.000000000 +0200 +++ new/Cwd-Guard-0.05/Build.PL 2016-04-14 04:47:27.000000000 +0200 @@ -12,8 +12,6 @@ use Module::Build; use File::Basename; use File::Spec; -use CPAN::Meta; -use CPAN::Meta::Prereqs; my %args = ( license => 'perl', @@ -25,12 +23,16 @@ name => 'Cwd-Guard', module_name => 'Cwd::Guard', - allow_pure_perl => 0, + allow_pureperl => 0, script_files => [glob('script/*'), glob('bin/*')], + c_source => [qw()], + PL_files => {}, test_files => ((-d '.git' || $ENV{RELEASE_TESTING}) && -d 'xt') ? 't/ xt/' : 't/', recursive_test_files => 1, + + ); if (-d 'share') { $args{share_dir} = 'share'; @@ -49,20 +51,15 @@ )->new(%args); $builder->create_build_script(); -my $mbmeta = CPAN::Meta->load_file('MYMETA.json'); -my $meta = CPAN::Meta->load_file('META.json'); -my $prereqs_hash = CPAN::Meta::Prereqs->new( - $meta->prereqs -)->with_merged_prereqs( - CPAN::Meta::Prereqs->new($mbmeta->prereqs) -)->as_string_hash; -my $mymeta = CPAN::Meta->new( - { - %{$meta->as_struct}, - prereqs => $prereqs_hash - } -); -print "Merging cpanfile prereqs to MYMETA.yml\n"; -$mymeta->save('MYMETA.yml', { version => 1.4 }); -print "Merging cpanfile prereqs to MYMETA.json\n"; -$mymeta->save('MYMETA.json', { version => 2 }); +use File::Copy; + +print "cp META.json MYMETA.json\n"; +copy("META.json","MYMETA.json") or die "Copy failed(META.json): $!"; + +if (-f 'META.yml') { + print "cp META.yml MYMETA.yml\n"; + copy("META.yml","MYMETA.yml") or die "Copy failed(META.yml): $!"; +} else { + print "There is no META.yml... You may install this module from the repository...\n"; +} + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cwd-Guard-0.04/Changes new/Cwd-Guard-0.05/Changes --- old/Cwd-Guard-0.04/Changes 2013-06-03 04:04:07.000000000 +0200 +++ new/Cwd-Guard-0.05/Changes 2016-04-14 04:47:27.000000000 +0200 @@ -1,5 +1,9 @@ Revision history for Perl extension Cwd::Guard +0.05 2016-04-14T02:47:15Z + + - add a new test (Thank you eserte) + 0.04 2013-06-03T02:04:02Z - use fchdir when available (ap++) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cwd-Guard-0.04/MANIFEST new/Cwd-Guard-0.05/MANIFEST --- old/Cwd-Guard-0.04/MANIFEST 2013-06-03 04:04:07.000000000 +0200 +++ new/Cwd-Guard-0.05/MANIFEST 2016-04-14 04:47:27.000000000 +0200 @@ -7,5 +7,6 @@ lib/Cwd/Guard.pm t/00_compile.t t/01_basic.t +t/02_renamed.t META.yml MANIFEST \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cwd-Guard-0.04/META.json new/Cwd-Guard-0.05/META.json --- old/Cwd-Guard-0.04/META.json 2013-06-03 04:04:07.000000000 +0200 +++ new/Cwd-Guard-0.05/META.json 2016-04-14 04:47:27.000000000 +0200 @@ -4,8 +4,10 @@ "Masahiro Nagano <kazeburo {at} gmail.com>" ], "dynamic_config" : 0, - "generated_by" : "Minilla/v0.4.6", - "license" : "perl_5", + "generated_by" : "Minilla/v2.4.1", + "license" : [ + "perl_5" + ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : "2" @@ -19,26 +21,27 @@ "share", "eg", "examples", - "author" + "author", + "builder" ] }, "prereqs" : { "build" : { "requires" : { - "Test::More" : "0" + "Test::More" : "0", + "Test::Requires" : "0" } }, "configure" : { "requires" : { - "CPAN::Meta" : "0", - "CPAN::Meta::Prereqs" : "0", "Module::Build" : "0.38" } }, "develop" : { "requires" : { "Test::CPAN::Meta" : "0", - "Test::MinimumVersion" : "0.10108", + "Test::MinimumVersion::Fast" : "0.04", + "Test::PAUSE::Permissions" : "0.04", "Test::Pod" : "1.41", "Test::Spellunker" : "v0.2.7" } @@ -55,7 +58,7 @@ "provides" : { "Cwd::Guard" : { "file" : "lib/Cwd/Guard.pm", - "version" : "0.04" + "version" : "0.05" } }, "release_status" : "stable", @@ -69,9 +72,11 @@ "web" : "https://github.com/kazeburo/Cwd-Guard" } }, - "version" : "0.04", + "version" : "0.05", "x_contributors" : [ "Aristotle Pagaltzis <pagalt...@gmx.de>", + "Slaven Rezic <slaven.re...@idealo.de>", "Masahiro Nagano <kazeb...@gmail.com>" - ] + ], + "x_serialization_backend" : "JSON::PP version 2.27203" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cwd-Guard-0.04/META.yml new/Cwd-Guard-0.05/META.yml --- old/Cwd-Guard-0.04/META.yml 2013-06-03 04:04:07.000000000 +0200 +++ new/Cwd-Guard-0.05/META.yml 2016-04-14 04:47:27.000000000 +0200 @@ -3,17 +3,16 @@ author: - 'Masahiro Nagano <kazeburo {at} gmail.com>' build_requires: - Test::More: 0 + Test::More: '0' + Test::Requires: '0' configure_requires: - CPAN::Meta: 0 - CPAN::Meta::Prereqs: 0 - Module::Build: 0.38 + Module::Build: '0.38' dynamic_config: 0 -generated_by: 'Minilla/v0.4.6, CPAN::Meta::Converter version 2.130880' +generated_by: 'Minilla/v2.4.1, CPAN::Meta::Converter version 2.150005' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html - version: 1.4 + version: '1.4' name: Cwd-Guard no_index: directory: @@ -24,20 +23,23 @@ - eg - examples - author + - builder provides: Cwd::Guard: file: lib/Cwd/Guard.pm - version: 0.04 + version: '0.05' requires: - Cwd: 0 - Exporter: 0 - if: 0 - parent: 0 + Cwd: '0' + Exporter: '0' + if: '0' + parent: '0' resources: bugtracker: https://github.com/kazeburo/Cwd-Guard/issues homepage: https://github.com/kazeburo/Cwd-Guard repository: git://github.com/kazeburo/Cwd-Guard.git -version: 0.04 +version: '0.05' x_contributors: - 'Aristotle Pagaltzis <pagalt...@gmx.de>' + - 'Slaven Rezic <slaven.re...@idealo.de>' - 'Masahiro Nagano <kazeb...@gmail.com>' +x_serialization_backend: 'CPAN::Meta::YAML version 0.012' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cwd-Guard-0.04/README.md new/Cwd-Guard-0.05/README.md --- old/Cwd-Guard-0.04/README.md 2013-06-03 04:04:07.000000000 +0200 +++ new/Cwd-Guard-0.05/README.md 2016-04-14 04:47:27.000000000 +0200 @@ -14,8 +14,6 @@ } # back to $dir - - # DESCRIPTION CORE::chdir Cwd:: Guard can change the current directory (chdir) using a limited scope. @@ -33,7 +31,7 @@ # SEE ALSO -[File::chdir](http://search.cpan.org/perldoc?File::chdir), [File::pushd](http://search.cpan.org/perldoc?File::pushd) +[File::chdir](https://metacpan.org/pod/File::chdir), [File::pushd](https://metacpan.org/pod/File::pushd) # LICENSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cwd-Guard-0.04/cpanfile new/Cwd-Guard-0.05/cpanfile --- old/Cwd-Guard-0.04/cpanfile 2013-06-03 04:04:07.000000000 +0200 +++ new/Cwd-Guard-0.05/cpanfile 2016-04-14 04:47:27.000000000 +0200 @@ -4,4 +4,5 @@ requires 'Cwd'; on build => sub { requires 'Test::More'; + requires 'Test::Requires'; }; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cwd-Guard-0.04/lib/Cwd/Guard.pm new/Cwd-Guard-0.05/lib/Cwd/Guard.pm --- old/Cwd-Guard-0.04/lib/Cwd/Guard.pm 2013-06-03 04:04:07.000000000 +0200 +++ new/Cwd-Guard-0.05/lib/Cwd/Guard.pm 2016-04-14 04:47:27.000000000 +0200 @@ -7,7 +7,7 @@ our @EXPORT_OK = qw/cwd_guard/; our $Error; -our $VERSION = '0.04'; +our $VERSION = '0.05'; use constant USE_FCHDIR => eval { opendir my $dh, '.'; chdir $dh; 1 }; use if !USE_FCHDIR, Cwd => qw/getcwd/; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Cwd-Guard-0.04/t/02_renamed.t new/Cwd-Guard-0.05/t/02_renamed.t --- old/Cwd-Guard-0.04/t/02_renamed.t 1970-01-01 01:00:00.000000000 +0100 +++ new/Cwd-Guard-0.05/t/02_renamed.t 2016-04-14 04:47:27.000000000 +0200 @@ -0,0 +1,32 @@ +use strict; +use warnings; +use Test::More; + +use Cwd qw/getcwd/; +use Cwd::Guard qw/cwd_guard/; +use File::Temp qw/tempdir/; + +use Test::Requires qw/File::Spec::Link/; + +plan skip_all => "Safe renames only possible with fchdir" + if !Cwd::Guard::USE_FCHDIR; + +my $tempdir_path = tempdir(CLEANUP => 1); +my $tempdir = File::Spec::Link->resolve_path($tempdir_path); + +my $olddir = "$tempdir/foo"; +my $newdir = "$tempdir/bla"; +mkdir $olddir; +chdir $olddir or die $!; +{ + my $guard = cwd_guard $tempdir; + rename $olddir, $newdir or die $!; +} + +is getcwd, $newdir, 'can change back to renamed directory'; + +chdir '/'; # so tempdir can do a cleanup + +done_testing; + +__END__ ++++++ cpanspec.yml ++++++ --- #description_paragraphs: 3 #description: |- # override description from CPAN #summary: override summary from CPAN #no_testing: broken upstream #sources: # - source1 # - source2 #patches: # foo.patch: -p1 # bar.patch: #preamble: |- # BuildRequires: gcc-c++ #post_prep: |- # hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` # sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL #post_build: |- # rm unused.files #post_install: |- # sed on %{name}.files #license: SUSE-NonFree #skip_noarch: 1 #custom_build: |- #./Build build flags=%{?_smp_mflags} --myflag #custom_test: |- #startserver && make test #ignore_requires: Bizarre::Module