Compare commits

...

10 Commits

Author SHA256 Message Date
4f0516cdea OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-ExtUtils-CBuilder?expand=0&rev=42 2022-05-17 08:11:48 +00:00
Stephan Kulow
1a614b8070 Accepting request 690857 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/690857
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-ExtUtils-CBuilder?expand=0&rev=34
2019-04-03 07:01:51 +00:00
84aba6e24f Accepting request 544532 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/544532
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-ExtUtils-CBuilder?expand=0&rev=33
2017-12-06 14:32:56 +00:00
Stephan Kulow
ce865b6e46 Accepting request 510437 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/510437
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-ExtUtils-CBuilder?expand=0&rev=32
2017-07-15 15:12:54 +00:00
67f82f95eb OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-ExtUtils-CBuilder?expand=0&rev=31 2015-10-10 11:12:32 +00:00
dbb1f56e4b Accepting request 337564 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/337564
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-ExtUtils-CBuilder?expand=0&rev=30
2015-10-10 11:12:08 +00:00
Stephan Kulow
a00c09d7e4 Accepting request 310906 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/310906
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-ExtUtils-CBuilder?expand=0&rev=29
2015-06-10 10:43:42 +00:00
Stephan Kulow
25324dc863 Accepting request 296452 from devel:languages:perl:autoupdate
automatic update

OBS-URL: https://build.opensuse.org/request/show/296452
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-ExtUtils-CBuilder?expand=0&rev=28
2015-04-15 07:40:24 +00:00
Ruediger Oertel
34f4c73744 osc copypac from project:openSUSE:13.1 package:perl-ExtUtils-CBuilder revision:1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-ExtUtils-CBuilder?expand=0&rev=27
2014-11-19 14:21:33 +00:00
Stephan Kulow
345c68e425 always buildrequire perl-macros if not present, move %perl_requires behind buildroot (script commit)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-ExtUtils-CBuilder?expand=0&rev=9
2010-12-03 14:04:34 +00:00
8 changed files with 302 additions and 655 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3c59f49f411d511d0bd82464f3bd7548fa366cdc48da12d86c6971ccb179f7c8
size 23530

View File

@@ -1,378 +0,0 @@
diff -ruN ExtUtils-CBuilder-0.27/Changes ExtUtils-CBuilder-0.2701/Changes
--- ExtUtils-CBuilder-0.27/Changes 2009-10-30 02:30:17.000000000 +0100
+++ ExtUtils-CBuilder-0.2701/Changes 2010-09-06 15:14:34.000000000 +0200
@@ -1,5 +1,11 @@
Revision history for Perl extension ExtUtils::CBuilder.
+0.2701 - Tue Feb 16 09:12:45 EST 2010
+
+ Bugs fixed:
+ - compile() now accepts both string & array for 'include_dirs'
+ argument, as documented.(RT#54606) [Alberto Sim<69>es]
+
0.27 - Thu Oct 29 21:29:56 EDT 2009
Other:
diff -ruN ExtUtils-CBuilder-0.27/lib/ExtUtils/CBuilder/Base.pm ExtUtils-CBuilder-0.2701/lib/ExtUtils/CBuilder/Base.pm
--- ExtUtils-CBuilder-0.27/lib/ExtUtils/CBuilder/Base.pm 2009-10-30 02:30:17.000000000 +0100
+++ ExtUtils-CBuilder-0.2701/lib/ExtUtils/CBuilder/Base.pm 2010-09-06 15:05:11.000000000 +0200
@@ -89,7 +89,9 @@
my $cf = $self->{config}; # For convenience
$args{object_file} ||= $self->object_file($args{source});
-
+
+ $args{include_dirs} = [ $args{include_dirs} ] if exists($args{include_dirs}) &&
+ ref($args{include_dirs}) ne "ARRAY";
my @include_dirs = $self->arg_include_dirs
(@{$args{include_dirs} || []},
$self->perl_inc());
diff -ruN ExtUtils-CBuilder-0.27/Makefile.PL ExtUtils-CBuilder-0.2701/Makefile.PL
--- ExtUtils-CBuilder-0.27/Makefile.PL 2009-10-30 02:30:17.000000000 +0100
+++ ExtUtils-CBuilder-0.2701/Makefile.PL 2010-09-06 15:05:11.000000000 +0200
@@ -1,19 +1,19 @@
-# Note: this file was auto-generated by Module::Build::Compat version 0.35_02
+# Note: this file was auto-generated by Module::Build::Compat version 0.3603
use ExtUtils::MakeMaker;
WriteMakefile
(
- 'PL_FILES' => {},
- 'INSTALLDIRS' => ($] >= 5.009003 ? 'perl' : 'site'),
'NAME' => 'ExtUtils::CBuilder',
- 'EXE_FILES' => [],
'VERSION_FROM' => 'lib/ExtUtils/CBuilder.pm',
'PREREQ_PM' => {
- 'Test::More' => '0.47',
- 'Text::ParseWords' => 0,
- 'IO::File' => 0,
- 'File::Spec' => 0,
+ 'Cwd' => 0,
'File::Basename' => 0,
- 'Cwd' => 0
- }
+ 'File::Spec' => 0,
+ 'IO::File' => 0,
+ 'Test::More' => '0.47',
+ 'Text::ParseWords' => 0
+ },
+ 'INSTALLDIRS' => ($] >= 5.009003 ? 'perl' : 'site'),
+ 'EXE_FILES' => [],
+ 'PL_FILES' => {}
)
;
diff -ruN ExtUtils-CBuilder-0.27/META.yml ExtUtils-CBuilder-0.2701/META.yml
--- ExtUtils-CBuilder-0.27/META.yml 2009-10-30 02:30:17.000000000 +0100
+++ ExtUtils-CBuilder-0.2701/META.yml 2010-09-06 15:05:11.000000000 +0200
@@ -1,21 +1,15 @@
---
-name: ExtUtils-CBuilder
-version: 0.27
+abstract: 'Compile and link C code for Perl modules'
author:
- 'Ken Williams, kwilliams@cpan.org'
-abstract: Compile and link C code for Perl modules
-license: perl
-resources:
- license: http://dev.perl.org/licenses/
- repository: http://svn.perl.org/modules/ExtUtils-CBuilder
build_requires:
Test::More: 0.47
-requires:
- Cwd: 0
- File::Basename: 0
- File::Spec: 0
- IO::File: 0
- Text::ParseWords: 0
+generated_by: 'Module::Build version 0.3603'
+license: perl
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
+name: ExtUtils-CBuilder
provides:
ExtUtils::CBuilder:
file: lib/ExtUtils/CBuilder.pm
@@ -56,7 +50,13 @@
ExtUtils::CBuilder::Platform::os2:
file: lib/ExtUtils/CBuilder/Platform/os2.pm
version: 0.27
-generated_by: Module::Build version 0.3502
-meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.4.html
- version: 1.4
+requires:
+ Cwd: 0
+ File::Basename: 0
+ File::Spec: 0
+ IO::File: 0
+ Text::ParseWords: 0
+resources:
+ license: http://dev.perl.org/licenses/
+ repository: git://github.com/dagolden/extutils-cbuilder.git
+version: 0.27
diff -ruN ExtUtils-CBuilder-0.27/README ExtUtils-CBuilder-0.2701/README
--- ExtUtils-CBuilder-0.27/README 2009-10-30 02:30:17.000000000 +0100
+++ ExtUtils-CBuilder-0.2701/README 2010-09-06 15:05:11.000000000 +0200
@@ -11,21 +11,21 @@
DESCRIPTION
This module can build the C portions of Perl modules by invoking the
appropriate compilers and linkers in a cross-platform manner. It was
- motivated by the `Module::Build' project, but may be useful for other
+ motivated by the "Module::Build" project, but may be useful for other
purposes as well. However, it is *not* intended as a general
cross-platform interface to all your C building needs. That would have
been a much more ambitious goal!
METHODS
- new Returns a new `ExtUtils::CBuilder' object. A `config' parameter lets
- you override `Config.pm' settings for all operations performed by
+ new Returns a new "ExtUtils::CBuilder" object. A "config" parameter lets
+ you override "Config.pm" settings for all operations performed by
the object, as in the following example:
# Use a different compiler than Config.pm says
my $b = ExtUtils::CBuilder->new( config =>
{ ld => 'gcc' } );
- A `quiet' parameter tells `CBuilder' to not print its `system()'
+ A "quiet" parameter tells "CBuilder" to not print its "system()"
commands before executing them:
# Be quieter than normal
@@ -43,47 +43,47 @@
compile
Compiles a C source file and produces an object file. The name of
the object file is returned. The source file is specified in a
- `source' parameter, which is required; the other parameters listed
+ "source" parameter, which is required; the other parameters listed
below are optional.
- `object_file'
+ "object_file"
Specifies the name of the output file to create. Otherwise the
- `object_file()' method will be consulted, passing it the name of
- the `source' file.
+ "object_file()" method will be consulted, passing it the name of
+ the "source" file.
- `include_dirs'
+ "include_dirs"
Specifies any additional directories in which to search for
header files. May be given as a string indicating a single
directory, or as a list reference indicating multiple
directories.
- `extra_compiler_flags'
+ "extra_compiler_flags"
Specifies any additional arguments to pass to the compiler.
Should be given as a list reference containing the arguments
individually, or if this is not possible, as a string containing
all the arguments together.
- `C++'
+ "C++"
Specifies that the source file is a C++ source file and sets
appropriate compiler flags
- The operation of this method is also affected by the `archlibexp',
- `cccdlflags', `ccflags', `optimize', and `cc' entries in
- `Config.pm'.
+ The operation of this method is also affected by the "archlibexp",
+ "cccdlflags", "ccflags", "optimize", and "cc" entries in
+ "Config.pm".
link
Invokes the linker to produce a library file from object files. In
scalar context, the name of the library file is returned. In list
context, the library file and any temporary files created are
- returned. A required `objects' parameter contains the name of the
+ returned. A required "objects" parameter contains the name of the
object files to process, either in a string (for one object file) or
list reference (for one or more files). The following parameters are
optional:
lib_file
Specifies the name of the output library file to create.
- Otherwise the `lib_file()' method will be consulted, passing it
- the name of the first entry in `objects'.
+ Otherwise the "lib_file()" method will be consulted, passing it
+ the name of the first entry in "objects".
module_name
Specifies the name of the Perl module that will be created by
@@ -93,25 +93,25 @@
extra_linker_flags
Any additional flags you wish to pass to the linker.
- On platforms where `need_prelink()' returns true, `prelink()' will
+ On platforms where "need_prelink()" returns true, "prelink()" will
be called automatically.
- The operation of this method is also affected by the `lddlflags',
- `shrpenv', and `ld' entries in `Config.pm'.
+ The operation of this method is also affected by the "lddlflags",
+ "shrpenv", and "ld" entries in "Config.pm".
link_executable
Invokes the linker to produce an executable file from object files.
In scalar context, the name of the executable file is returned. In
list context, the executable file and any temporary files created
- are returned. A required `objects' parameter contains the name of
+ are returned. A required "objects" parameter contains the name of
the object files to process, either in a string (for one object
file) or list reference (for one or more files). The optional
- parameters are the same as `link' with exception for
+ parameters are the same as "link" with exception for
exe_file
Specifies the name of the output executable file to create.
- Otherwise the `exe_file()' method will be consulted, passing it
- the name of the first entry in `objects'.
+ Otherwise the "exe_file()" method will be consulted, passing it
+ the name of the first entry in "objects".
object_file
my $object_file = $b->object_file($source_file);
@@ -138,13 +138,13 @@
prelink
On certain platforms like Win32, OS/2, VMS, and AIX, it is necessary
to perform some actions before invoking the linker. The
- `ExtUtils::Mksymlists' module does this, writing files used by the
+ "ExtUtils::Mksymlists" module does this, writing files used by the
linker during the creation of shared libraries for dynamic
extensions. The names of any files written will be returned as a
list.
Several parameters correspond to
- `ExtUtils::Mksymlists::Mksymlists()' options, as follows:
+ "ExtUtils::Mksymlists::Mksymlists()" options, as follows:
Mksymlists() prelink() type
-------------|-------------------|-------------------
@@ -157,26 +157,26 @@
IMPORTS | dl_imports | hash reference
VERSION | dl_version | string
- Please see the documentation for `ExtUtils::Mksymlists' for the
+ Please see the documentation for "ExtUtils::Mksymlists" for the
details of what these parameters do.
need_prelink
- Returns true on platforms where `prelink()' should be called during
+ Returns true on platforms where "prelink()" should be called during
linking, and false otherwise.
extra_link_args_after_prelink
Returns list of extra arguments to give to the link command; the
arguments are the same as for prelink(), with addition of array
reference to the results of prelink(); this reference is indexed by
- key `prelink_res'.
+ key "prelink_res".
TO DO
Currently this has only been tested on Unix and doesn't contain any of
- the Windows-specific code from the `Module::Build' project. I'll do that
+ the Windows-specific code from the "Module::Build" project. I'll do that
next.
HISTORY
- This module is an outgrowth of the `Module::Build' project, to which
+ This module is an outgrowth of the "Module::Build" project, to which
there have been many contributors. Notably, Randy W. Sims submitted lots
of code to support 3 compilers on Windows and helped with various other
platform-specific issues. Ilya Zakharevich has contributed fixes for
diff -ruN ExtUtils-CBuilder-0.27/SIGNATURE ExtUtils-CBuilder-0.2701/SIGNATURE
--- ExtUtils-CBuilder-0.27/SIGNATURE 2009-10-30 02:30:20.000000000 +0100
+++ ExtUtils-CBuilder-0.2701/SIGNATURE 2010-09-06 15:05:11.000000000 +0200
@@ -14,33 +14,33 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-SHA1 e662e62d05428d4eb050f3bd183a9c31d042b1c4 Changes
+SHA1 d11e87591d584b0340ff383265bda8bc7c63076e Changes
SHA1 f44181f0de8d9e5e85addef8ba2156e810c39884 INSTALL
SHA1 97312b1216af3f7b4474d3ca9dff779505eeebd8 MANIFEST
-SHA1 96bccf4039036a810a93e18f5fdeec8124463d44 META.yml
-SHA1 37cf75d38244706af65b0df2cbecea07df5a4a76 Makefile.PL
-SHA1 254c458b6cbbe607e670c9dbf73eaf2fd1c0eef9 README
-SHA1 bdb8da8c49f8cb54247fb5d202ef8e32a4715d23 lib/ExtUtils/CBuilder.pm
-SHA1 470aca5918e0393571f1648f06865cdebdc5ccfe lib/ExtUtils/CBuilder/Base.pm
-SHA1 9a95e6a187a17baf01d9828f64292399d882ca3d lib/ExtUtils/CBuilder/Platform/Unix.pm
-SHA1 590c542d65eb24128b75cd844a02730d307e9775 lib/ExtUtils/CBuilder/Platform/VMS.pm
-SHA1 2bc342e0aef6133a95b0d9900c559af542e160f6 lib/ExtUtils/CBuilder/Platform/Windows.pm
-SHA1 14cb5bb7e4e79a0ce934cbe5072d804dc502bcb1 lib/ExtUtils/CBuilder/Platform/Windows/BCC.pm
-SHA1 98b39b4d3dc8a98231f042ca92ad9d0a54ccbd88 lib/ExtUtils/CBuilder/Platform/Windows/GCC.pm
-SHA1 540493991196adbc99cafc2903a28cebe3ec676a lib/ExtUtils/CBuilder/Platform/Windows/MSVC.pm
-SHA1 99f32318dd14aaa10d08d5aedbc05093c005d450 lib/ExtUtils/CBuilder/Platform/aix.pm
-SHA1 85cfc376b760e9bcdf9d1606b37f8644a18bb178 lib/ExtUtils/CBuilder/Platform/cygwin.pm
-SHA1 d81eec7c302d61cf482995d5b0ec6967812c0ca1 lib/ExtUtils/CBuilder/Platform/darwin.pm
-SHA1 bd604b97a170de2317fd554ed591fe2716852be9 lib/ExtUtils/CBuilder/Platform/dec_osf.pm
-SHA1 1263d17a2e09f33b3eeb11d38d74b46d99786258 lib/ExtUtils/CBuilder/Platform/os2.pm
+SHA1 4f363bea795d4a16d163dbfdcd1c7ee17eb33f87 META.yml
+SHA1 c4e4c2660dd2e1201977fcabacdc87ec7b1788ce Makefile.PL
+SHA1 367fe94e72d126e254ec04ae48b5928eee8a5aa0 README
+SHA1 4b0a2617a5da9ee8038635b12a73f513cf2b1ec4 lib/ExtUtils/CBuilder.pm
+SHA1 c76206f15254dc0bb07ce0dd5c9d27461822c630 lib/ExtUtils/CBuilder/Base.pm
+SHA1 5069a16c3df09da68a9347be91ec61dff6e48e23 lib/ExtUtils/CBuilder/Platform/Unix.pm
+SHA1 305ac159194c8ab9131f85fa67a2ea4aba605b24 lib/ExtUtils/CBuilder/Platform/VMS.pm
+SHA1 b7a30d5de4081609b9fd8d6d593e5b4d2bc8f852 lib/ExtUtils/CBuilder/Platform/Windows.pm
+SHA1 510749eb22cb43f8ec572615299c15ac68e65313 lib/ExtUtils/CBuilder/Platform/Windows/BCC.pm
+SHA1 27d8d2268b9c54dde6173efc808bcc3e03fe122e lib/ExtUtils/CBuilder/Platform/Windows/GCC.pm
+SHA1 8f80d75e4c082e69d0a3e882be81dddb6f52c242 lib/ExtUtils/CBuilder/Platform/Windows/MSVC.pm
+SHA1 4291d03aa5310dacbf3c062fe8bb2418f5a9ef7f lib/ExtUtils/CBuilder/Platform/aix.pm
+SHA1 cb6ab6332aaadef250856fd02ed529273ca3c675 lib/ExtUtils/CBuilder/Platform/cygwin.pm
+SHA1 8e377a3357324464687645a2b1bfe9500af1f032 lib/ExtUtils/CBuilder/Platform/darwin.pm
+SHA1 5b3d324e3d17312f0a2d3ef93f819303f33161f9 lib/ExtUtils/CBuilder/Platform/dec_osf.pm
+SHA1 52180e92168935f3ba9321cb97d2e3805fe08891 lib/ExtUtils/CBuilder/Platform/os2.pm
SHA1 229af50d0c0fcaefaf7002efc8b77ec8be9055a7 t/00-have-compiler.t
-SHA1 83ae72eac9b9344f8a639eba3ffb288ecc505843 t/01-basic.t
+SHA1 6c951c076fe4fc63d164e33d48ae7aaa18c0e49e t/01-basic.t
SHA1 af3c21ce65198e7adb9c98721809d80e1a240618 t/02-link.t
SHA1 88d179cde999a9244750ce97e49c0338482d9e39 t/03-cplusplus.t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
-iEYEARECAAYFAkrqQakACgkQKeygAqLMQmP6jQCcDPHwMmgVDKB0puhydj5kuWnf
-WLYAmgMESq0/KIdzgbMOhzQ5kWcHDp7E
-=nVvM
+iEYEARECAAYFAkt6rYUACgkQKeygAqLMQmNVeQCgul4TMG76/Mtvp+yT07IH8vgx
+qR0AoO5EWCIRuHh6fEJJFEvmPFIY/PFy
+=3j4b
-----END PGP SIGNATURE-----
diff -ruN ExtUtils-CBuilder-0.27/t/01-basic.t ExtUtils-CBuilder-0.2701/t/01-basic.t
--- ExtUtils-CBuilder-0.27/t/01-basic.t 2009-10-30 02:30:17.000000000 +0100
+++ ExtUtils-CBuilder-0.2701/t/01-basic.t 2010-09-06 15:05:11.000000000 +0200
@@ -23,7 +23,7 @@
plan skip_all => "no compiler available for testing";
}
else {
- plan tests => 10;
+ plan tests => 12;
}
ok $b, "created EU::CB object";
@@ -70,3 +70,24 @@
is( $words[0], 'foo' );
is( $words[1], 'bar' );
}
+
+# include_dirs should be settable as string or list
+{
+ package Sub;
+ use base 'ExtUtils::CBuilder';
+ my $saw = 0;
+ sub do_system {1}
+ sub arg_include_dirs {
+ $saw = 1 if grep {$_ eq 'another dir'} @_;
+ }
+
+ package main;
+ my $s = Sub->new();
+ $s->compile(source => 'foo',
+ include_dirs => 'another dir');
+ ok $saw;
+
+ $s->compile(source => 'foo',
+ include_dirs => ['a dir', 'another dir']);
+ ok $saw;
+}

View File

@@ -1,126 +0,0 @@
diff -ruN ExtUtils-CBuilder-0.2701/Changes ExtUtils-CBuilder-0.2702/Changes
--- ExtUtils-CBuilder-0.2701/Changes 2010-09-06 15:14:34.000000000 +0200
+++ ExtUtils-CBuilder-0.2702/Changes 2010-09-06 15:18:50.000000000 +0200
@@ -1,5 +1,10 @@
Revision history for Perl extension ExtUtils::CBuilder.
+0.2702 Mon Feb 22 15:10:52 EST 2010
+
+ Bugs fixed:
+ - compile() changes in 0.2701 did not work on Windows. Now fixed.
+
0.2701 - Tue Feb 16 09:12:45 EST 2010
Bugs fixed:
diff -ruN ExtUtils-CBuilder-0.2701/lib/ExtUtils/CBuilder/Base.pm ExtUtils-CBuilder-0.2702/lib/ExtUtils/CBuilder/Base.pm
--- ExtUtils-CBuilder-0.2701/lib/ExtUtils/CBuilder/Base.pm 2010-09-06 15:05:11.000000000 +0200
+++ ExtUtils-CBuilder-0.2702/lib/ExtUtils/CBuilder/Base.pm 2010-09-06 15:18:19.000000000 +0200
@@ -90,8 +90,9 @@
$args{object_file} ||= $self->object_file($args{source});
- $args{include_dirs} = [ $args{include_dirs} ] if exists($args{include_dirs}) &&
- ref($args{include_dirs}) ne "ARRAY";
+ $args{include_dirs} = [ $args{include_dirs} ]
+ if exists($args{include_dirs}) && ref($args{include_dirs}) ne "ARRAY";
+
my @include_dirs = $self->arg_include_dirs
(@{$args{include_dirs} || []},
$self->perl_inc());
diff -ruN ExtUtils-CBuilder-0.2701/lib/ExtUtils/CBuilder/Platform/Windows.pm ExtUtils-CBuilder-0.2702/lib/ExtUtils/CBuilder/Platform/Windows.pm
--- ExtUtils-CBuilder-0.2701/lib/ExtUtils/CBuilder/Platform/Windows.pm 2010-09-06 15:05:11.000000000 +0200
+++ ExtUtils-CBuilder-0.2702/lib/ExtUtils/CBuilder/Platform/Windows.pm 2010-09-06 15:18:19.000000000 +0200
@@ -86,6 +86,9 @@
die "Missing 'source' argument to compile()" unless defined $args{source};
+ $args{include_dirs} = [ $args{include_dirs} ]
+ if exists($args{include_dirs}) && ref($args{include_dirs}) ne "ARRAY";
+
my ($basename, $srcdir) =
( File::Basename::fileparse($args{source}, '\.[^.]+$') )[0,1];
diff -ruN ExtUtils-CBuilder-0.2701/SIGNATURE ExtUtils-CBuilder-0.2702/SIGNATURE
--- ExtUtils-CBuilder-0.2701/SIGNATURE 2010-09-06 15:05:11.000000000 +0200
+++ ExtUtils-CBuilder-0.2702/SIGNATURE 2010-09-06 15:18:19.000000000 +0200
@@ -14,33 +14,33 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-SHA1 d11e87591d584b0340ff383265bda8bc7c63076e Changes
+SHA1 cfddbdb98b424d90999c68d5a47402038dd89190 Changes
SHA1 f44181f0de8d9e5e85addef8ba2156e810c39884 INSTALL
SHA1 97312b1216af3f7b4474d3ca9dff779505eeebd8 MANIFEST
-SHA1 4f363bea795d4a16d163dbfdcd1c7ee17eb33f87 META.yml
+SHA1 aee828aba4d6245fa9171e31b51791e2585dedcd META.yml
SHA1 c4e4c2660dd2e1201977fcabacdc87ec7b1788ce Makefile.PL
SHA1 367fe94e72d126e254ec04ae48b5928eee8a5aa0 README
-SHA1 4b0a2617a5da9ee8038635b12a73f513cf2b1ec4 lib/ExtUtils/CBuilder.pm
-SHA1 c76206f15254dc0bb07ce0dd5c9d27461822c630 lib/ExtUtils/CBuilder/Base.pm
-SHA1 5069a16c3df09da68a9347be91ec61dff6e48e23 lib/ExtUtils/CBuilder/Platform/Unix.pm
-SHA1 305ac159194c8ab9131f85fa67a2ea4aba605b24 lib/ExtUtils/CBuilder/Platform/VMS.pm
-SHA1 b7a30d5de4081609b9fd8d6d593e5b4d2bc8f852 lib/ExtUtils/CBuilder/Platform/Windows.pm
-SHA1 510749eb22cb43f8ec572615299c15ac68e65313 lib/ExtUtils/CBuilder/Platform/Windows/BCC.pm
-SHA1 27d8d2268b9c54dde6173efc808bcc3e03fe122e lib/ExtUtils/CBuilder/Platform/Windows/GCC.pm
-SHA1 8f80d75e4c082e69d0a3e882be81dddb6f52c242 lib/ExtUtils/CBuilder/Platform/Windows/MSVC.pm
-SHA1 4291d03aa5310dacbf3c062fe8bb2418f5a9ef7f lib/ExtUtils/CBuilder/Platform/aix.pm
-SHA1 cb6ab6332aaadef250856fd02ed529273ca3c675 lib/ExtUtils/CBuilder/Platform/cygwin.pm
-SHA1 8e377a3357324464687645a2b1bfe9500af1f032 lib/ExtUtils/CBuilder/Platform/darwin.pm
-SHA1 5b3d324e3d17312f0a2d3ef93f819303f33161f9 lib/ExtUtils/CBuilder/Platform/dec_osf.pm
-SHA1 52180e92168935f3ba9321cb97d2e3805fe08891 lib/ExtUtils/CBuilder/Platform/os2.pm
+SHA1 43aac91bce00d9305e895db6f8c857644acf3a79 lib/ExtUtils/CBuilder.pm
+SHA1 727e1856294e2be724775598893dd6905a0fb5a0 lib/ExtUtils/CBuilder/Base.pm
+SHA1 102111f96fcd7cf80d6c2396362170fb93d74c86 lib/ExtUtils/CBuilder/Platform/Unix.pm
+SHA1 ab9ea47c1498b3d5768ac07d326b267d885220c2 lib/ExtUtils/CBuilder/Platform/VMS.pm
+SHA1 4eafa26dbc97abb79b93bac7b11b5199e216375a lib/ExtUtils/CBuilder/Platform/Windows.pm
+SHA1 13cc491472351a789004a22a7a984b6cf1d0347f lib/ExtUtils/CBuilder/Platform/Windows/BCC.pm
+SHA1 ffbad90be6d1a5c466fa2275b973c7a57b65bcb8 lib/ExtUtils/CBuilder/Platform/Windows/GCC.pm
+SHA1 0f2da5c52f87b7ab9efcdc05ea8a58343ef285a3 lib/ExtUtils/CBuilder/Platform/Windows/MSVC.pm
+SHA1 3504b48ada9d63242399d21a8e081897370f2401 lib/ExtUtils/CBuilder/Platform/aix.pm
+SHA1 ebe03f12220c51e027e17ec80c83251b186663f6 lib/ExtUtils/CBuilder/Platform/cygwin.pm
+SHA1 63331516415f793d97ab435490b92c87e39b1c4f lib/ExtUtils/CBuilder/Platform/darwin.pm
+SHA1 7b646ae7f785a32380a2f1f049e4f57c8bbd06e4 lib/ExtUtils/CBuilder/Platform/dec_osf.pm
+SHA1 e4c33e08e78366a9ad679a8c655b4a166d97d45f lib/ExtUtils/CBuilder/Platform/os2.pm
SHA1 229af50d0c0fcaefaf7002efc8b77ec8be9055a7 t/00-have-compiler.t
-SHA1 6c951c076fe4fc63d164e33d48ae7aaa18c0e49e t/01-basic.t
+SHA1 ef9f8aac9f82faec883684cec771740eff106410 t/01-basic.t
SHA1 af3c21ce65198e7adb9c98721809d80e1a240618 t/02-link.t
SHA1 88d179cde999a9244750ce97e49c0338482d9e39 t/03-cplusplus.t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
-iEYEARECAAYFAkt6rYUACgkQKeygAqLMQmNVeQCgul4TMG76/Mtvp+yT07IH8vgx
-qR0AoO5EWCIRuHh6fEJJFEvmPFIY/PFy
-=3j4b
+iEYEARECAAYFAkuC5RIACgkQKeygAqLMQmNt8ACgr0RqQk9a3y8E/ESneLpVf7Cn
+QlcAoLVjJzPe4nAjH+qSD0WLc+BChvrN
+=Cz/h
-----END PGP SIGNATURE-----
diff -ruN ExtUtils-CBuilder-0.2701/t/01-basic.t ExtUtils-CBuilder-0.2702/t/01-basic.t
--- ExtUtils-CBuilder-0.2701/t/01-basic.t 2010-09-06 15:05:11.000000000 +0200
+++ ExtUtils-CBuilder-0.2702/t/01-basic.t 2010-09-06 15:18:19.000000000 +0200
@@ -74,11 +74,12 @@
# include_dirs should be settable as string or list
{
package Sub;
- use base 'ExtUtils::CBuilder';
+ use vars '@ISA';
+ @ISA = ('ExtUtils::CBuilder');
my $saw = 0;
- sub do_system {1}
- sub arg_include_dirs {
- $saw = 1 if grep {$_ eq 'another dir'} @_;
+ sub do_system {
+ $saw = 1 if grep {$_ =~ /another dir/} @_;
+ return 1;
}
package main;
@@ -87,6 +88,7 @@
include_dirs => 'another dir');
ok $saw;
+ $saw = 0;
$s->compile(source => 'foo',
include_dirs => ['a dir', 'another dir']);
ok $saw;

View File

@@ -1,95 +0,0 @@
diff -ruN ExtUtils-CBuilder-0.2702/Changes ExtUtils-CBuilder-0.2703/Changes
--- ExtUtils-CBuilder-0.2702/Changes 2010-09-06 15:18:50.000000000 +0200
+++ ExtUtils-CBuilder-0.2703/Changes 2010-09-06 15:20:01.000000000 +0200
@@ -1,6 +1,11 @@
Revision history for Perl extension ExtUtils::CBuilder.
-0.2702 Mon Feb 22 15:10:52 EST 2010
+0.2703 - Tue Mar 16 17:10:55 EDT 2010
+
+ Bugs fixed:
+ - fixed tests for Windows and MSVC [Jan Dubois]
+
+0.2702 - Mon Feb 22 15:10:52 EST 2010
Bugs fixed:
- compile() changes in 0.2701 did not work on Windows. Now fixed.
diff -ruN ExtUtils-CBuilder-0.2702/MANIFEST ExtUtils-CBuilder-0.2703/MANIFEST
--- ExtUtils-CBuilder-0.2702/MANIFEST 2010-09-06 15:18:19.000000000 +0200
+++ ExtUtils-CBuilder-0.2703/MANIFEST 2010-09-06 15:19:48.000000000 +0200
@@ -21,4 +21,3 @@
t/01-basic.t
t/02-link.t
t/03-cplusplus.t
-SIGNATURE Added here by Module::Build
diff -ruN ExtUtils-CBuilder-0.2702/SIGNATURE ExtUtils-CBuilder-0.2703/SIGNATURE
--- ExtUtils-CBuilder-0.2702/SIGNATURE 2010-09-06 15:18:19.000000000 +0200
+++ ExtUtils-CBuilder-0.2703/SIGNATURE 1970-01-01 01:00:00.000000000 +0100
@@ -1,46 +0,0 @@
-This file contains message digests of all files listed in MANIFEST,
-signed via the Module::Signature module, version 0.55.
-
-To verify the content in this distribution, first make sure you have
-Module::Signature installed, then type:
-
- % cpansign -v
-
-It will check each file's integrity, as well as the signature's
-validity. If "==> Signature verified OK! <==" is not displayed,
-the distribution may already have been compromised, and you should
-not run its Makefile.PL or Build.PL.
-
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-SHA1 cfddbdb98b424d90999c68d5a47402038dd89190 Changes
-SHA1 f44181f0de8d9e5e85addef8ba2156e810c39884 INSTALL
-SHA1 97312b1216af3f7b4474d3ca9dff779505eeebd8 MANIFEST
-SHA1 aee828aba4d6245fa9171e31b51791e2585dedcd META.yml
-SHA1 c4e4c2660dd2e1201977fcabacdc87ec7b1788ce Makefile.PL
-SHA1 367fe94e72d126e254ec04ae48b5928eee8a5aa0 README
-SHA1 43aac91bce00d9305e895db6f8c857644acf3a79 lib/ExtUtils/CBuilder.pm
-SHA1 727e1856294e2be724775598893dd6905a0fb5a0 lib/ExtUtils/CBuilder/Base.pm
-SHA1 102111f96fcd7cf80d6c2396362170fb93d74c86 lib/ExtUtils/CBuilder/Platform/Unix.pm
-SHA1 ab9ea47c1498b3d5768ac07d326b267d885220c2 lib/ExtUtils/CBuilder/Platform/VMS.pm
-SHA1 4eafa26dbc97abb79b93bac7b11b5199e216375a lib/ExtUtils/CBuilder/Platform/Windows.pm
-SHA1 13cc491472351a789004a22a7a984b6cf1d0347f lib/ExtUtils/CBuilder/Platform/Windows/BCC.pm
-SHA1 ffbad90be6d1a5c466fa2275b973c7a57b65bcb8 lib/ExtUtils/CBuilder/Platform/Windows/GCC.pm
-SHA1 0f2da5c52f87b7ab9efcdc05ea8a58343ef285a3 lib/ExtUtils/CBuilder/Platform/Windows/MSVC.pm
-SHA1 3504b48ada9d63242399d21a8e081897370f2401 lib/ExtUtils/CBuilder/Platform/aix.pm
-SHA1 ebe03f12220c51e027e17ec80c83251b186663f6 lib/ExtUtils/CBuilder/Platform/cygwin.pm
-SHA1 63331516415f793d97ab435490b92c87e39b1c4f lib/ExtUtils/CBuilder/Platform/darwin.pm
-SHA1 7b646ae7f785a32380a2f1f049e4f57c8bbd06e4 lib/ExtUtils/CBuilder/Platform/dec_osf.pm
-SHA1 e4c33e08e78366a9ad679a8c655b4a166d97d45f lib/ExtUtils/CBuilder/Platform/os2.pm
-SHA1 229af50d0c0fcaefaf7002efc8b77ec8be9055a7 t/00-have-compiler.t
-SHA1 ef9f8aac9f82faec883684cec771740eff106410 t/01-basic.t
-SHA1 af3c21ce65198e7adb9c98721809d80e1a240618 t/02-link.t
-SHA1 88d179cde999a9244750ce97e49c0338482d9e39 t/03-cplusplus.t
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.9 (GNU/Linux)
-
-iEYEARECAAYFAkuC5RIACgkQKeygAqLMQmNt8ACgr0RqQk9a3y8E/ESneLpVf7Cn
-QlcAoLVjJzPe4nAjH+qSD0WLc+BChvrN
-=Cz/h
------END PGP SIGNATURE-----
diff -ruN ExtUtils-CBuilder-0.2702/t/01-basic.t ExtUtils-CBuilder-0.2703/t/01-basic.t
--- ExtUtils-CBuilder-0.2702/t/01-basic.t 2010-09-06 15:18:19.000000000 +0200
+++ ExtUtils-CBuilder-0.2703/t/01-basic.t 2010-09-06 15:19:48.000000000 +0200
@@ -78,6 +78,17 @@
@ISA = ('ExtUtils::CBuilder');
my $saw = 0;
sub do_system {
+ if ($^O eq "MSWin32") {
+ # ExtUtils::CBuilder::MSVC::write_compiler_script() puts the
+ # include_dirs into a response file and not the commandline
+ for (@_) {
+ next unless /^\@"(.*)"$/;
+ open(my $fh, "<", $1) or next;
+ local $/;
+ $saw = 1 if <$fh> =~ /another dir/;
+ last;
+ }
+ }
$saw = 1 if grep {$_ =~ /another dir/} @_;
return 1;
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:abc21827eb8a513171bf7fdecefce9945132cb76db945036518291f607b1491f
size 40237

23
cpanspec.yml Normal file
View File

@@ -0,0 +1,23 @@
---
#description_paragraphs: 3
#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_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

View File

@@ -1,3 +1,254 @@
-------------------------------------------------------------------
Sun Feb 14 03:07:38 UTC 2021 - Tina Müller <timueller+perl@suse.de>
- updated to 0.280236
see /usr/share/doc/packages/perl-ExtUtils-CBuilder/Changes
0.280236 - 2021-02-12
Fix:
- Remove image-base generation on Win32/gcc and instead use GCC's built-in
`--enable-auto-image-base` linker option.
-------------------------------------------------------------------
Mon Nov 2 03:07:09 UTC 2020 - Tina Müller <timueller+perl@suse.de>
- updated to 0.280235
see /usr/share/doc/packages/perl-ExtUtils-CBuilder/Changes
0.280235 - 2020-11-01
Fix:
- Fix compilation on darwin with XCode 12 (-Werror=implicit-function-declaration)
Thanks to DrHyde for the patch.
-------------------------------------------------------------------
Wed Jan 22 03:07:25 UTC 2020 - <timueller+perl@suse.de>
- updated to 0.280234
see /usr/share/doc/packages/perl-ExtUtils-CBuilder/Changes
0.280234 - 2020-01-21
Update:
- Updated standalone module from blead.
-------------------------------------------------------------------
Wed Apr 3 06:56:58 UTC 2019 - Stephan Kulow <coolo@suse.com>
- updated to 0.280231
see /usr/share/doc/packages/perl-ExtUtils-CBuilder/Changes
0.280231 - 2019-03-31
Fixed:
- Protected RE interpolation in Base.pm
-------------------------------------------------------------------
Thu Nov 23 06:21:24 UTC 2017 - coolo@suse.com
- updated to 0.280230
see /usr/share/doc/packages/perl-ExtUtils-CBuilder/Changes
0.280230 - 2017-11-22
Fixed:
- Updated Changes
- Used OurPkgVersion instead of PkgVersion
0.280229 - 2017-10-13
Fixed:
- Remove dependency to 'vars' package.
0.280228 - 2017-07-20
Fixed:
- Fix link() on Windows, broken in version 0.280226.
0.280227 - 2017-07-19
Fixed:
- Restore compatibility of test suite to Perl 5.6.
-------------------------------------------------------------------
Sat Jul 15 05:26:35 UTC 2017 - coolo@suse.com
- updated to 0.280226
see /usr/share/doc/packages/perl-ExtUtils-CBuilder/Changes
-------------------------------------------------------------------
Sat Oct 10 08:54:34 UTC 2015 - coolo@suse.com
- updated to 0.280224
see /usr/share/doc/packages/perl-ExtUtils-CBuilder/Changes
0.282224 - 2015-10-09
Enhancements:
- Use warnings/strict on all modules.
-------------------------------------------------------------------
Sun Jun 7 08:31:11 UTC 2015 - coolo@suse.com
- updated to 0.280223
see /usr/share/doc/packages/perl-ExtUtils-CBuilder/Changes
0.280223 - 2015-06-02
Fixed:
- Impose deterministic order on cpp-definition options.
Heretofore, ExtUtils::CBuilder put cpp-definition options
into the cc command line in non-deterministic order. This
produced noise when diffing build logs.
Make this order deterministic. (RT #124106)
Added:
- Add tests for ascii-betical order in t/04-base.t.
-------------------------------------------------------------------
Tue Apr 14 20:12:00 UTC 2015 - coolo@suse.com
- updated to 0.280220
see /usr/share/doc/packages/perl-ExtUtils-CBuilder/Changes
0.280220 - 2014-09-27
Fixed:
- Added missing 'use Config' from 'android.pm' (thanks Debian community)
0.280219 - 2014-09-01
Fixed:
- Fixed regression on Android (thanks to Brian Fraser)
0.280218 - 2014-09-01
Fixed:
- Mispelled 'starup' key in BCC support was fixed. #79574
- Fixed the version in the PM file (thanks to Jim Keenan)
0.280217 - 2014-08-22
Fixed:
- Quoted perl path for Windows support #98245 [Alberto Simões]
0.280216 - 2014-03-07
Added:
- Android support [Brian Fraser and Piotr Roszatycki]
Fixed:
- Teach ExtUtils::CBuilder to handle mod2fname properly [Brian Fraser]
0.280212 - 2013-09-08
Fixed:
- Reversion all modules.
0.280211 - 2013-09-08
Fixed:
- Missing dependency Perl::OSType [Leon Timmermans]
- Fixed repository location [Alberto Simões]
0.280210 - 2013-09-06
Fixed:
- Update INSTALLDIRS to favor installation under 'site' (perl 116479)
[James E Keenan]
0.280209 - 2012-10-20 (Perl v5.17.5)
Fixed:
- Allow options to be passed to prelink in Windows (perl #115100)
[Eric Brine]
0.280208 - 2012-06-20 (Perl v5.17.1)
Fixed:
- Corrected location in which manifest file is looked for on
Windows (RT#35943, perl #111798) [snaury@gmail.com]
0.280207 (Not released)
Fixed:
- Corrected test for existence of manifest file on Windows
(perl #111782) [Steve Hay]
0.280206 - 2012-03-20 (Perl v5.15.9)
Documented:
- Added a SUPPORT section to indicate that upstream is Perl 5 core
-------------------------------------------------------------------
Tue Jun 11 18:28:18 UTC 2013 - coolo@suse.com
- rebuild for perl 5.18
-------------------------------------------------------------------
Thu Feb 23 09:56:03 UTC 2012 - coolo@suse.com
- updated to 0.280205
Fixed:
- Fixed bug picking up ccflags from Config
- Quotation style cleanup
- Appends CFLAGS and LDFLAGS environments instead of overriding
- Reset ccflags on compilation for VMS.
Changed:
- Refactored OS name mapping to use Perl::OSType
-------------------------------------------------------------------
Wed Feb 15 12:02:42 UTC 2012 - coolo@suse.com
- updated to 0.280202
- Different file names used for test files; allows EU::CB tests
to be run in parallel. [Florian Ragwitz]
Fixed:
- t/04-base.t no longer attempt to compile or link as this provokes
failures on main platforms
- Various typo fixes in Pod or comments
- Incorporated another t/04-base.t fix from bleadperl
[Chris Williams]
- Fixed spurious t/04-base.t failure when run from Perl core
[David Golden]
- Fixed t/02-link.t on perl < 5.8
- Preserves exit status on VMS [Craig Berry]
- Fix Win32 split_like_shell escaping [Christian Walde]
- Tests no longer fail if user has set the CC environment variable
-------------------------------------------------------------------
Fri Dec 2 16:11:50 UTC 2011 - coolo@suse.com
- use original tar
-------------------------------------------------------------------
Tue Nov 30 14:04:30 UTC 2010 - coolo@novell.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-ExtUtils-CBuilder (Version 0.27)
# spec file for package perl-ExtUtils-CBuilder
#
# Copyright (c) 2010 SUSE LINUX Products 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,83 +12,55 @@
# 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/
#
# norootforbuild
Name: perl-ExtUtils-CBuilder
%define cpan_name ExtUtils-CBuilder
Name: perl-ExtUtils-CBuilder
Version: 0.280236
Release: 0
Summary: Compile and link C code for Perl modules
Version: 0.27
Release: 1
License: GPL+ or Artistic
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/ExtUtils-CBuilder/
#Source: http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-CBuilder-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
Patch1: %{cpan_name}-0.2701.patch
Patch2: %{cpan_name}-0.2701_0.2702.patch
Patch3: %{cpan_name}-0.2702_0.2703.patch
License: Artistic-1.0 OR GPL-1.0-or-later
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/A/AM/AMBS/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
BuildRequires: perl(Cwd)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::File)
BuildRequires: perl(Test::More)
BuildRequires: perl(Text::ParseWords)
BuildRequires: perl(File::Spec) >= 3.13
BuildRequires: perl(IPC::Cmd)
BuildRequires: perl(Perl::OSType) >= 1
Requires: perl(File::Spec) >= 3.13
Requires: perl(IPC::Cmd)
Requires: perl(Perl::OSType) >= 1
%{perl_requires}
Requires: perl(Cwd)
Requires: perl(File::Basename)
Requires: perl(File::Spec)
Requires: perl(IO::File)
Requires: perl(Text::ParseWords)
%description
This module can build the C portions of Perl modules by invoking the
appropriate compilers and linkers in a cross-platform manner. It was
motivated by the Module::Build project, but may be useful for other
purposes as well. However, it is not intended as a general cross-platform
motivated by the 'Module::Build' project, but may be useful for other
purposes as well. However, it is _not_ intended as a general cross-platform
interface to all your C building needs. That would have been a much more
ambitious goal!
Authors:
--------
Ken Williams, kwilliams@cpan.org
David Golden
%prep
%setup -q -n %{cpan_name}-%{version}
%patch1 -p1
%patch2 -p1
%patch3 -p1
%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
# do not perl_process_packlist (noarch)
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes README
%doc Changes CONTRIBUTING NOTAS-Alberto README README.mkdn README.patching README.release
%license LICENSE
%changelog