Hello community,

here is the log from the commit of package perl-Module-Build-Tiny for 
openSUSE:Factory checked in at 2014-02-12 17:22:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Module-Build-Tiny (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Module-Build-Tiny.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Module-Build-Tiny"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-Module-Build-Tiny/perl-Module-Build-Tiny.changes
    2013-12-09 07:14:37.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-Module-Build-Tiny.new/perl-Module-Build-Tiny.changes
       2014-02-12 17:22:58.000000000 +0100
@@ -1,0 +2,11 @@
+Sun Feb  9 13:33:36 UTC 2014 - [email protected]
+
+- updated to 0.034
+         Make install tests more platform independent
+         Require Getopt::Long 2.36
+         Add install tests
+         Fix env options and Build.PL options being ignored (regression in 
0.031)
+         Process argument sources separately
+         Use mod2fname appropriately
+
+-------------------------------------------------------------------

Old:
----
  Module-Build-Tiny-0.030.tar.gz

New:
----
  Module-Build-Tiny-0.034.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Module-Build-Tiny.spec ++++++
--- /var/tmp/diff_new_pack.8j5ju9/_old  2014-02-12 17:22:59.000000000 +0100
+++ /var/tmp/diff_new_pack.8j5ju9/_new  2014-02-12 17:22:59.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Module-Build-Tiny
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 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,7 +17,7 @@
 
 
 Name:           perl-Module-Build-Tiny
-Version:        0.030
+Version:        0.034
 Release:        0
 %define cpan_name Module-Build-Tiny
 Summary:        A tiny replacement for Module::Build
@@ -35,22 +35,20 @@
 BuildRequires:  perl(ExtUtils::Helpers) >= 0.020
 BuildRequires:  perl(ExtUtils::InstallPaths) >= 0.002
 BuildRequires:  perl(ExtUtils::ParseXS)
+BuildRequires:  perl(Getopt::Long) >= 2.36
 BuildRequires:  perl(JSON::PP) >= 2
 BuildRequires:  perl(Module::Build)
-BuildRequires:  perl(TAP::Harness) >= 3.29
 BuildRequires:  perl(TAP::Harness::Env)
 BuildRequires:  perl(Test::More) >= 0.88
-#BuildRequires: perl(DistGen)
-#BuildRequires: perl(File::ShareDir)
-#BuildRequires: perl(Module::Build::Tiny)
+
 Requires:       perl(CPAN::Meta)
 Requires:       perl(ExtUtils::CBuilder)
 Requires:       perl(ExtUtils::Config) >= 0.003
 Requires:       perl(ExtUtils::Helpers) >= 0.020
 Requires:       perl(ExtUtils::InstallPaths) >= 0.002
 Requires:       perl(ExtUtils::ParseXS)
+Requires:       perl(Getopt::Long) >= 2.36
 Requires:       perl(JSON::PP) >= 2
-Requires:       perl(TAP::Harness) >= 3.29
 Requires:       perl(TAP::Harness::Env)
 %{perl_requires}
 

++++++ Module-Build-Tiny-0.030.tar.gz -> Module-Build-Tiny-0.034.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Module-Build-Tiny-0.030/Changes 
new/Module-Build-Tiny-0.034/Changes
--- old/Module-Build-Tiny-0.030/Changes 2013-10-11 12:01:50.000000000 +0200
+++ new/Module-Build-Tiny-0.034/Changes 2014-01-22 03:40:55.000000000 +0100
@@ -1,5 +1,19 @@
 Revision history for Module::Build::Tiny
 
+0.034     2014-01-22 03:40:21CET+0100 Europe/Amsterdam
+          Make install tests more platform independent
+
+0.033     2014-01-21 03:27:32CET+0100 Europe/Amsterdam
+          Require Getopt::Long 2.36
+          Add install tests
+
+0.032     2014-01-20 20:07:13CET+0100 Europe/Amsterdam
+          Fix env options and Build.PL options being ignored (regression in 
0.031)
+
+0.031     2014-01-20 16:24:58CET+0100 Europe/Amsterdam
+          Process argument sources separately
+          Use mod2fname appropriately
+
 0.030     2013-10-11 12:01:24 Europe/Amsterdam
           Added workaround for #54606 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Module-Build-Tiny-0.030/MANIFEST 
new/Module-Build-Tiny-0.034/MANIFEST
--- old/Module-Build-Tiny-0.030/MANIFEST        2013-10-11 12:01:50.000000000 
+0200
+++ new/Module-Build-Tiny-0.034/MANIFEST        2014-01-22 03:40:55.000000000 
+0100
@@ -1,3 +1,4 @@
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest 
v5.011.
 Build.PL
 Changes
 INSTALL
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Module-Build-Tiny-0.030/META.json 
new/Module-Build-Tiny-0.034/META.json
--- old/Module-Build-Tiny-0.030/META.json       2013-10-11 12:01:50.000000000 
+0200
+++ new/Module-Build-Tiny-0.034/META.json       2014-01-22 03:40:55.000000000 
+0100
@@ -5,7 +5,7 @@
       "David Golden <[email protected]>"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Dist::Zilla version 4.300038, CPAN::Meta::Converter 
version 2.120921",
+   "generated_by" : "Dist::Zilla version 5.011, CPAN::Meta::Converter version 
2.132830",
    "license" : [
       "perl_5"
    ],
@@ -18,6 +18,7 @@
       "configure" : {
          "requires" : {
             "CPAN::Meta" : "0",
+            "DynaLoader" : "0",
             "Exporter" : "5.57",
             "ExtUtils::CBuilder" : "0",
             "ExtUtils::Config" : "0.003",
@@ -29,10 +30,9 @@
             "File::Find" : "0",
             "File::Path" : "0",
             "File::Spec::Functions" : "0",
-            "Getopt::Long" : "0",
+            "Getopt::Long" : "2.36",
             "JSON::PP" : "2",
             "Pod::Man" : "0",
-            "TAP::Harness" : "3.29",
             "TAP::Harness::Env" : "0",
             "perl" : "5.006",
             "strict" : "0",
@@ -50,6 +50,7 @@
          },
          "requires" : {
             "CPAN::Meta" : "0",
+            "DynaLoader" : "0",
             "Exporter" : "5.57",
             "ExtUtils::CBuilder" : "0",
             "ExtUtils::Config" : "0.003",
@@ -61,10 +62,9 @@
             "File::Find" : "0",
             "File::Path" : "0",
             "File::Spec::Functions" : "0",
-            "Getopt::Long" : "0",
+            "Getopt::Long" : "2.36",
             "JSON::PP" : "2",
             "Pod::Man" : "0",
-            "TAP::Harness" : "3.29",
             "TAP::Harness::Env" : "0",
             "perl" : "5.006",
             "strict" : "0",
@@ -98,7 +98,7 @@
    "provides" : {
       "Module::Build::Tiny" : {
          "file" : "lib/Module/Build/Tiny.pm",
-         "version" : "0.030"
+         "version" : "0.034"
       }
    },
    "release_status" : "stable",
@@ -113,6 +113,6 @@
          "web" : "https://github.com/Leont/module-build-tiny";
       }
    },
-   "version" : "0.030"
+   "version" : "0.034"
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Module-Build-Tiny-0.030/META.yml 
new/Module-Build-Tiny-0.034/META.yml
--- old/Module-Build-Tiny-0.030/META.yml        2013-10-11 12:01:50.000000000 
+0200
+++ new/Module-Build-Tiny-0.034/META.yml        2014-01-22 03:40:55.000000000 
+0100
@@ -19,6 +19,7 @@
   lib: 0
 configure_requires:
   CPAN::Meta: 0
+  DynaLoader: 0
   Exporter: 5.57
   ExtUtils::CBuilder: 0
   ExtUtils::Config: 0.003
@@ -30,10 +31,9 @@
   File::Find: 0
   File::Path: 0
   File::Spec::Functions: 0
-  Getopt::Long: 0
+  Getopt::Long: 2.36
   JSON::PP: 2
   Pod::Man: 0
-  TAP::Harness: 3.29
   TAP::Harness::Env: 0
   perl: 5.006
   strict: 0
@@ -41,7 +41,7 @@
 conflicts:
   local::lib: '< 1.006008'
 dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.300038, CPAN::Meta::Converter version 
2.120921'
+generated_by: 'Dist::Zilla version 5.011, CPAN::Meta::Converter version 
2.132830'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -50,9 +50,10 @@
 provides:
   Module::Build::Tiny:
     file: lib/Module/Build/Tiny.pm
-    version: 0.030
+    version: 0.034
 requires:
   CPAN::Meta: 0
+  DynaLoader: 0
   Exporter: 5.57
   ExtUtils::CBuilder: 0
   ExtUtils::Config: 0.003
@@ -64,10 +65,9 @@
   File::Find: 0
   File::Path: 0
   File::Spec::Functions: 0
-  Getopt::Long: 0
+  Getopt::Long: 2.36
   JSON::PP: 2
   Pod::Man: 0
-  TAP::Harness: 3.29
   TAP::Harness::Env: 0
   perl: 5.006
   strict: 0
@@ -75,4 +75,4 @@
 resources:
   bugtracker: 
http://rt.cpan.org/Public/Dist/Display.html?Name=Module-Build-Tiny
   repository: git://github.com/Leont/module-build-tiny.git
-version: 0.030
+version: 0.034
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Module-Build-Tiny-0.030/README 
new/Module-Build-Tiny-0.034/README
--- old/Module-Build-Tiny-0.030/README  2013-10-11 12:01:50.000000000 +0200
+++ new/Module-Build-Tiny-0.034/README  2014-01-22 03:40:55.000000000 +0100
@@ -1,7 +1,7 @@
 
 
 This archive contains the distribution Module-Build-Tiny,
-version 0.030:
+version 0.034:
 
   A tiny replacement for Module::Build
 
@@ -11,3 +11,5 @@
 the same terms as the Perl 5 programming language system itself.
 
 
+This README file was generated by Dist::Zilla::Plugin::Readme v5.011.
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Module-Build-Tiny-0.030/dist.ini 
new/Module-Build-Tiny-0.034/dist.ini
--- old/Module-Build-Tiny-0.030/dist.ini        2013-10-11 12:01:50.000000000 
+0200
+++ new/Module-Build-Tiny-0.034/dist.ini        2014-01-22 03:40:55.000000000 
+0100
@@ -6,8 +6,6 @@
 copyright_year   = 2011
 
 ;Building
-[Prereqs / RuntimeRequires]
-TAP::Harness = 3.29
 [@LEONT]
 install_tool = self
 BuildSelf.auto_configure_requires = 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Module-Build-Tiny-0.030/lib/Module/Build/Tiny.pm 
new/Module-Build-Tiny-0.034/lib/Module/Build/Tiny.pm
--- old/Module-Build-Tiny-0.030/lib/Module/Build/Tiny.pm        2013-10-11 
12:01:50.000000000 +0200
+++ new/Module-Build-Tiny-0.034/lib/Module/Build/Tiny.pm        2014-01-22 
03:40:55.000000000 +0100
@@ -1,7 +1,5 @@
 package Module::Build::Tiny;
-{
-  $Module::Build::Tiny::VERSION = '0.030';
-}
+$Module::Build::Tiny::VERSION = '0.034';
 use strict;
 use warnings;
 use Exporter 5.57 'import';
@@ -16,7 +14,7 @@
 use File::Find ();
 use File::Path qw/mkpath rmtree/;
 use File::Spec::Functions qw/catfile catdir rel2abs abs2rel splitdir curdir/;
-use Getopt::Long qw/GetOptions/;
+use Getopt::Long 2.36 qw/GetOptionsFromArray/;
 use JSON::PP 2 qw/encode_json decode_json/;
 
 sub write_file {
@@ -50,9 +48,9 @@
        my ($source, $options) = @_;
 
        die "Can't build xs files under --pureperl-only\n" if 
$options->{'pureperl-only'};
-       my (undef, @dirnames) = splitdir(dirname($source));
-       my $file_base = basename($source, '.xs');
-       my $archdir = catdir(qw/blib arch auto/, @dirnames, $file_base);
+       my (undef, @parts) = splitdir(dirname($source));
+       push @parts, my $file_base = basename($source, '.xs');
+       my $archdir = catdir(qw/blib arch auto/, @parts);
        my $tempdir = 'temp';
 
        my $c_file = catfile($tempdir, "$file_base.c");
@@ -65,9 +63,12 @@
        my $builder = ExtUtils::CBuilder->new(config => 
$options->{config}->values_set);
        my $ob_file = $builder->compile(source => $c_file, defines => { VERSION 
=> qq/"$version"/, XS_VERSION => qq/"$version"/ }, include_dirs => [ curdir ]);
 
+       require DynaLoader;
+       my $mod2fname = defined &DynaLoader::mod2fname ? 
\&DynaLoader::mod2fname : sub { return $_[0][-1] };
+
        mkpath($archdir, $options->{verbose}, oct '755') unless -d $archdir;
-       my $lib_file = catfile($archdir, "$file_base." . 
$options->{config}->get('dlext'));
-       return $builder->link(objects => $ob_file, lib_file => $lib_file, 
module_name => join '::', @dirnames, $file_base);
+       my $lib_file = catfile($archdir, $mod2fname->(\@parts) . '.' . 
$options->{config}->get('dlext'));
+       return $builder->link(objects => $ob_file, lib_file => $lib_file, 
module_name => join '::', @parts);
 }
 
 sub find {
@@ -121,8 +122,9 @@
 sub Build {
        my $action = @ARGV && $ARGV[0] =~ /\A\w+\z/ ? shift @ARGV : 'build';
        die "No such action '$action'\n" if not $actions{$action};
-       unshift @ARGV, @{ decode_json(read_file('_build_params')) };
-       GetOptions(\my %opt, qw/install_base=s install_path=s% installdirs=s 
destdir=s prefix=s config=s% uninst:1 verbose:1 dry_run:1 pureperl-only:1 
create_packlist=i/);
+       my($env, $bargv) = @{ decode_json(read_file('_build_params')) };
+       my %opt;
+       GetOptionsFromArray($_, \%opt, qw/install_base=s install_path=s% 
installdirs=s destdir=s prefix=s config=s% uninst:1 verbose:1 dry_run:1 
pureperl-only:1 create_packlist=i/) for ($env, $bargv, \@ARGV);
        $_ = detildefy($_) for grep { defined } @opt{qw/install_base destdir 
prefix/}, values %{ $opt{install_path} };
        @opt{ 'config', 'meta' } = (ExtUtils::Config->new($opt{config}), 
get_meta());
        $actions{$action}->(%opt, install_paths => 
ExtUtils::InstallPaths->new(%opt, dist_name => $opt{meta}->name));
@@ -135,7 +137,7 @@
        write_file('Build', "#!perl\n$dir\nuse 
Module::Build::Tiny;\nBuild();\n");
        make_executable('Build');
        my @env = defined $ENV{PERL_MB_OPT} ? 
split_like_shell($ENV{PERL_MB_OPT}) : ();
-       write_file('_build_params', encode_json([ @env, @ARGV ]));
+       write_file('_build_params', encode_json([ \@env, \@ARGV ]));
        $meta->save(@$_) for ['MYMETA.json'], [ 'MYMETA.yml' => { version => 
1.4 } ];
 }
 
@@ -150,13 +152,15 @@
 
 =pod
 
+=encoding UTF-8
+
 =head1 NAME
 
 Module::Build::Tiny - A tiny replacement for Module::Build
 
 =head1 VERSION
 
-version 0.030
+version 0.034
 
 =head1 SYNOPSIS
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Module-Build-Tiny-0.030/t/00-compile.t 
new/Module-Build-Tiny-0.034/t/00-compile.t
--- old/Module-Build-Tiny-0.030/t/00-compile.t  2013-10-11 12:01:50.000000000 
+0200
+++ new/Module-Build-Tiny-0.034/t/00-compile.t  2014-01-22 03:40:55.000000000 
+0100
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.033
+# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.036
 
 use Test::More  tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0);
 
@@ -15,6 +15,8 @@
 
 # no fake home requested
 
+my $inc_switch = q[-Mblib];
+
 use File::Spec;
 use IPC::Open3;
 use IO::Handle;
@@ -26,11 +28,11 @@
     open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!";
     my $stderr = IO::Handle->new;
 
-    my $pid = open3($stdin, '>&STDERR', $stderr, $^X, '-Mblib', '-e', "require 
q[$lib]");
+    my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, '-e', 
"require q[$lib]");
     binmode $stderr, ':crlf' if $^O eq 'MSWin32';
     my @_warnings = <$stderr>;
     waitpid($pid, 0);
-    is($? >> 8, 0, "$lib loaded ok");
+    is($?, 0, "$lib loaded ok");
 
     if (@_warnings)
     {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Module-Build-Tiny-0.030/t/release-pod-syntax.t 
new/Module-Build-Tiny-0.034/t/release-pod-syntax.t
--- old/Module-Build-Tiny-0.030/t/release-pod-syntax.t  2013-10-11 
12:01:50.000000000 +0200
+++ new/Module-Build-Tiny-0.034/t/release-pod-syntax.t  2014-01-22 
03:40:55.000000000 +0100
@@ -7,6 +7,7 @@
   }
 }
 
+# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests.
 use Test::More;
 
 eval "use Test::Pod 1.41";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Module-Build-Tiny-0.030/t/simple.t 
new/Module-Build-Tiny-0.034/t/simple.t
--- old/Module-Build-Tiny-0.030/t/simple.t      2013-10-11 12:01:50.000000000 
+0200
+++ new/Module-Build-Tiny-0.034/t/simple.t      2014-01-22 03:40:55.000000000 
+0100
@@ -56,7 +56,7 @@
 #--------------------------------------------------------------------------#
 
 {
-  is(system($^X, "Build.PL"), 0, "Ran Build.PL");
+  is(system($^X, 'Build.PL', '--install_base=install'), 0, 'Ran Build.PL');
   ok( -f 'Build', "Build created" );
   if ($^O eq 'MSWin32') {
     ok( -f 'Build.bat', 'Build is executable');
@@ -121,4 +121,14 @@
   }
 }
 
+{
+  ok( open2(my($in, $out), $^X, Build => 'install'), 'Could run Build install' 
);
+  my $output = do { local $/; <$in> };
+  my $filename = quotemeta catfile(qw/install lib perl5/, $Config{archname}, 
qw/Foo Bar.pm/);
+  like($output, qr/Installing $filename/, 'Build install output looks 
correctly');
+
+  ok( -f "install/lib/perl5/$Config{archname}/Foo/Bar.pm", 'Module is 
installed');
+  ok( -f 'install/bin/simple', 'Script is installed');
+}
+
 done_testing;

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to