Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package perl-Module-Build-Tiny for
openSUSE:Factory checked in at 2023-07-12 17:26:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Module-Build-Tiny (Old)
and /work/SRC/openSUSE:Factory/.perl-Module-Build-Tiny.new.8922 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Module-Build-Tiny"
Wed Jul 12 17:26:11 2023 rev:11 rq:1098076 version:0.046
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-Module-Build-Tiny/perl-Module-Build-Tiny.changes
2014-10-29 21:11:35.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.perl-Module-Build-Tiny.new.8922/perl-Module-Build-Tiny.changes
2023-07-12 17:26:14.166104312 +0200
@@ -1,0 +2,26 @@
+Tue Jun 13 03:06:40 UTC 2023 - Tina Müller <[email protected]>
+
+- updated to 0.046
+ see /usr/share/doc/packages/perl-Module-Build-Tiny/Changes
+
+ 0.046 2023-06-01 19:31:21+02:00 Europe/Amsterdam
+ - Add src/ to include paths
+ 0.045 2023-04-30 11:52:20+02:00 Europe/Brussels
+ - Fix compilation issue on Windows
+ 0.044 2023-04-28 09:19:30+02:00 Europe/Brussels
+ - Add module sharedirs
+ - Only add src/*.c files to primary XS file
+ 0.043 2023-04-19 02:05:14+02:00 Europe/Amsterdam
+ - Fix manification test for perls without man paths
+ 0.042 2023-04-18 23:32:40+02:00 Europe/Amsterdam
+ - Restore manpage generation
+ - Add include/ to include paths
+ - Compile all .c files in src/
+ 0.041 2023-04-17 16:03:06+02:00 Europe/Amsterdam
+ - Released without changes from 0.040
+ 0.040 2023-02-05 23:06:28+01:00 Europe/Amsterdam (TRIAL RELEASE)
+ - Manify .pod after .pm
+ - Filter out script documentation from scripts
+ - Don't manify podless modules/scripts
+
+-------------------------------------------------------------------
Old:
----
Module-Build-Tiny-0.039.tar.gz
New:
----
Module-Build-Tiny-0.046.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Module-Build-Tiny.spec ++++++
--- /var/tmp/diff_new_pack.21l8GT/_old 2023-07-12 17:26:14.766107810 +0200
+++ /var/tmp/diff_new_pack.21l8GT/_new 2023-07-12 17:26:14.778107880 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-Module-Build-Tiny
#
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,21 +12,19 @@
# 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/
#
+%define cpan_name Module-Build-Tiny
Name: perl-Module-Build-Tiny
-Version: 0.039
+Version: 0.046
Release: 0
-%define cpan_name Module-Build-Tiny
-Summary: A tiny replacement for Module::Build
-License: Artistic-1.0 or GPL-1.0+
-Group: Development/Libraries/Perl
-Url: http://search.cpan.org/dist/Module-Build-Tiny/
-Source:
http://www.cpan.org/authors/id/L/LE/LEONT/%{cpan_name}-%{version}.tar.gz
+License: Artistic-1.0 OR GPL-1.0-or-later
+Summary: Tiny replacement for Module::Build
+URL: https://metacpan.org/release/%{cpan_name}
+Source0:
https://cpan.metacpan.org/authors/id/L/LE/LEONT/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(CPAN::Meta)
@@ -37,7 +35,6 @@
BuildRequires: perl(ExtUtils::ParseXS)
BuildRequires: perl(Getopt::Long) >= 2.36
BuildRequires: perl(JSON::PP) >= 2
-BuildRequires: perl(Module::Build)
BuildRequires: perl(TAP::Harness::Env)
BuildRequires: perl(Test::More) >= 0.88
Requires: perl(CPAN::Meta)
@@ -58,14 +55,14 @@
This module provides a simple, lightweight, drop-in replacement.
Whereas Module::Build has over 6,700 lines of code; this module has less
-than 120, yet supports the features needed by most distributions.
+than 200, yet supports the features needed by most distributions.
%prep
-%setup -q -n %{cpan_name}-%{version}
+%autosetup -n %{cpan_name}-%{version}
%build
-%{__perl} Build.PL --installdirs=vendor
-./Build build flags=%{?_smp_mflags}
+perl Build.PL --installdirs=vendor
+./Build build --flags=%{?_smp_mflags}
%check
./Build test
@@ -75,7 +72,7 @@
%perl_gen_filelist
%files -f %{name}.files
-%defattr(-,root,root,755)
-%doc Changes LICENSE README Todo
+%doc Changes README Todo
+%license LICENSE
%changelog
++++++ Module-Build-Tiny-0.039.tar.gz -> Module-Build-Tiny-0.046.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Build-Tiny-0.039/Build.PL
new/Module-Build-Tiny-0.046/Build.PL
--- old/Module-Build-Tiny-0.039/Build.PL 2014-10-12 10:39:04.000000000
+0200
+++ new/Module-Build-Tiny-0.046/Build.PL 2023-06-01 19:31:26.000000000
+0200
@@ -1,4 +1,4 @@
use 5.006;
use lib 'lib';
use Module::Build::Tiny;
-Build_PL(@ARGV);
+Build_PL(\@ARGV, \%ENV);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Build-Tiny-0.039/Changes
new/Module-Build-Tiny-0.046/Changes
--- old/Module-Build-Tiny-0.039/Changes 2014-10-12 10:39:04.000000000 +0200
+++ new/Module-Build-Tiny-0.046/Changes 2023-06-01 19:31:26.000000000 +0200
@@ -1,5 +1,31 @@
Revision history for Module::Build::Tiny
+0.046 2023-06-01 19:31:21+02:00 Europe/Amsterdam
+ - Add src/ to include paths
+
+0.045 2023-04-30 11:52:20+02:00 Europe/Brussels
+ - Fix compilation issue on Windows
+
+0.044 2023-04-28 09:19:30+02:00 Europe/Brussels
+ - Add module sharedirs
+ - Only add src/*.c files to primary XS file
+
+0.043 2023-04-19 02:05:14+02:00 Europe/Amsterdam
+ - Fix manification test for perls without man paths
+
+0.042 2023-04-18 23:32:40+02:00 Europe/Amsterdam
+ - Restore manpage generation
+ - Add include/ to include paths
+ - Compile all .c files in src/
+
+0.041 2023-04-17 16:03:06+02:00 Europe/Amsterdam
+ - Released without changes from 0.040
+
+0.040 2023-02-05 23:06:28+01:00 Europe/Amsterdam (TRIAL RELEASE)
+ - Manify .pod after .pm
+ - Filter out script documentation from scripts
+ - Don't manify podless modules/scripts
+
0.039 2014-10-12 10:38:39+02:00 Europe/Amsterdam
Supply basename to *.PL files as its args
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Build-Tiny-0.039/INSTALL
new/Module-Build-Tiny-0.046/INSTALL
--- old/Module-Build-Tiny-0.039/INSTALL 2014-10-12 10:39:04.000000000 +0200
+++ new/Module-Build-Tiny-0.046/INSTALL 2023-06-01 19:31:26.000000000 +0200
@@ -1,4 +1,3 @@
-
This is the Perl distribution Module-Build-Tiny.
Installing Module-Build-Tiny is straightforward.
@@ -9,10 +8,10 @@
% cpanm Module::Build::Tiny
-If you are installing into a system-wide directory, you may need to pass the
-"-S" flag to cpanm, which uses sudo to install the module:
-
- % cpanm -S Module::Build::Tiny
+If it does not have permission to install modules to the current perl, cpanm
+will automatically set up and install to a local::lib in your home directory.
+See the local::lib documentation (https://metacpan.org/pod/local::lib) for
+details on enabling it in your environment.
## Installing with the CPAN shell
@@ -22,8 +21,11 @@
## Manual installation
-As a last resort, you can manually install it. Download the tarball, untar it,
-then build it:
+As a last resort, you can manually install it. If you have not already
+downloaded the release tarball, you can find the download link on the module's
+MetaCPAN page: https://metacpan.org/pod/Module::Build::Tiny
+
+Untar the tarball, install configure prerequisites (see below), then build it:
% perl Build.PL
% ./Build && ./Build test
@@ -32,13 +34,47 @@
% ./Build install
-If you are installing into a system-wide directory, you may need to run:
+Or the more portable variation:
+
+ % perl Build.PL
+ % perl Build
+ % perl Build test
+ % perl Build install
+
+If your perl is system-managed, you can create a local::lib in your home
+directory to install modules to. For details, see the local::lib documentation:
+https://metacpan.org/pod/local::lib
+
+The prerequisites of this distribution will also have to be installed
manually. The
+prerequisites are listed in one of the files: `MYMETA.yml` or `MYMETA.json`
generated
+by running the manual build process described above.
- % sudo ./Build install
+## Configure Prerequisites
+
+This distribution requires other modules to be installed before this
+distribution's installer can be run. They can be found under the
+"configure_requires" key of META.yml or the
+"{prereqs}{configure}{requires}" key of META.json.
+
+## Other Prerequisites
+
+This distribution may require additional modules to be installed after running
+Build.PL.
+Look for prerequisites in the following phases:
+
+* to run ./Build, PHASE = build
+* to use the module code itself, PHASE = runtime
+* to run tests, PHASE = test
+
+They can all be found in the "PHASE_requires" key of MYMETA.yml or the
+"{prereqs}{PHASE}{requires}" key of MYMETA.json.
## Documentation
Module-Build-Tiny documentation is available as POD.
-You can run perldoc from a shell to read the documentation:
+You can run `perldoc` from a shell to read the documentation:
% perldoc Module::Build::Tiny
+
+For more information on installing Perl modules via CPAN, please see:
+https://www.cpan.org/modules/INSTALL.html
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Build-Tiny-0.039/LICENSE
new/Module-Build-Tiny-0.046/LICENSE
--- old/Module-Build-Tiny-0.039/LICENSE 2014-10-12 10:39:04.000000000 +0200
+++ new/Module-Build-Tiny-0.046/LICENSE 2023-06-01 19:31:26.000000000 +0200
@@ -270,110 +270,143 @@
That's all there is to it!
---- The Artistic License 1.0 ---
+--- The Artistic License 1.0 (Perl) ---
This software is Copyright (c) 2011 by Leon Timmermans, David Golden.
This is free software, licensed under:
- The Artistic License 1.0
+ The Artistic License 1.0 (Perl)
-The Artistic License
-Preamble
-The intent of this document is to state the conditions under which a Package
-may be copied, such that the Copyright Holder maintains some semblance of
-artistic control over the development of the package, while giving the users of
-the package the right to use and distribute the Package in a more-or-less
-customary fashion, plus the right to make reasonable modifications.
+
+
+ The "Artistic License"
+
+ Preamble
+
+The intent of this document is to state the conditions under which a
+Package may be copied, such that the Copyright Holder maintains some
+semblance of artistic control over the development of the package,
+while giving the users of the package the right to use and distribute
+the Package in a more-or-less customary fashion, plus the right to make
+reasonable modifications.
Definitions:
- - "Package" refers to the collection of files distributed by the Copyright
- Holder, and derivatives of that collection of files created through
- textual modification.
- - "Standard Version" refers to such a Package if it has not been modified,
- or has been modified in accordance with the wishes of the Copyright
- Holder.
- - "Copyright Holder" is whoever is named in the copyright or copyrights for
- the package.
- - "You" is you, if you're thinking about copying or distributing this
Package.
- - "Reasonable copying fee" is whatever you can justify on the basis of media
- cost, duplication charges, time of people involved, and so on. (You will
- not be required to justify it to the Copyright Holder, but only to the
- computing community at large as a market that must bear the fee.)
- - "Freely Available" means that no fee is charged for the item itself, though
- there may be fees involved in handling the item. It also means that
- recipients of the item may redistribute it under the same conditions they
- received it.
+ "Package" refers to the collection of files distributed by the
+ Copyright Holder, and derivatives of that collection of files
+ created through textual modification.
+
+ "Standard Version" refers to such a Package if it has not been
+ modified, or has been modified in accordance with the wishes
+ of the Copyright Holder as specified below.
+
+ "Copyright Holder" is whoever is named in the copyright or
+ copyrights for the package.
+
+ "You" is you, if you're thinking about copying or distributing
+ this Package.
+
+ "Reasonable copying fee" is whatever you can justify on the
+ basis of media cost, duplication charges, time of people involved,
+ and so on. (You will not be required to justify it to the
+ Copyright Holder, but only to the computing community at large
+ as a market that must bear the fee.)
+
+ "Freely Available" means that no fee is charged for the item
+ itself, though there may be fees involved in handling the item.
+ It also means that recipients of the item may redistribute it
+ under the same conditions they received it.
1. You may make and give away verbatim copies of the source form of the
Standard Version of this Package without restriction, provided that you
duplicate all of the original copyright notices and associated disclaimers.
-2. You may apply bug fixes, portability fixes and other modifications derived
-from the Public Domain or from the Copyright Holder. A Package modified in such
-a way shall still be considered the Standard Version.
-
-3. You may otherwise modify your copy of this Package in any way, provided that
-you insert a prominent notice in each changed file stating how and when you
-changed that file, and provided that you do at least ONE of the following:
-
- a) place your modifications in the Public Domain or otherwise make them
- Freely Available, such as by posting said modifications to Usenet or an
- equivalent medium, or placing the modifications on a major archive site
- such as ftp.uu.net, or by allowing the Copyright Holder to include your
- modifications in the Standard Version of the Package.
-
- b) use the modified Package only within your corporation or organization.
-
- c) rename any non-standard executables so the names do not conflict with
- standard executables, which must also be provided, and provide a separate
- manual page for each non-standard executable that clearly documents how it
- differs from the Standard Version.
-
- d) make other distribution arrangements with the Copyright Holder.
-
-4. You may distribute the programs of this Package in object code or executable
-form, provided that you do at least ONE of the following:
-
- a) distribute a Standard Version of the executables and library files,
- together with instructions (in the manual page or equivalent) on where to
- get the Standard Version.
-
- b) accompany the distribution with the machine-readable source of the Package
- with your modifications.
-
- c) accompany any non-standard executables with their corresponding Standard
- Version executables, giving the non-standard executables non-standard
- names, and clearly documenting the differences in manual pages (or
- equivalent), together with instructions on where to get the Standard
- Version.
+2. You may apply bug fixes, portability fixes and other modifications
+derived from the Public Domain or from the Copyright Holder. A Package
+modified in such a way shall still be considered the Standard Version.
- d) make other distribution arrangements with the Copyright Holder.
+3. You may otherwise modify your copy of this Package in any way, provided
+that you insert a prominent notice in each changed file stating how and
+when you changed that file, and provided that you do at least ONE of the
+following:
-5. You may charge a reasonable copying fee for any distribution of this
-Package. You may charge any fee you choose for support of this Package. You
-may not charge a fee for this Package itself. However, you may distribute this
-Package in aggregate with other (possibly commercial) programs as part of a
-larger (possibly commercial) software distribution provided that you do not
-advertise this Package as a product of your own.
-
-6. The scripts and library files supplied as input to or produced as output
-from the programs of this Package do not automatically fall under the copyright
-of this Package, but belong to whomever generated them, and may be sold
-commercially, and may be aggregated with this Package.
+ a) place your modifications in the Public Domain or otherwise make them
+ Freely Available, such as by posting said modifications to Usenet or
+ an equivalent medium, or placing the modifications on a major archive
+ site such as uunet.uu.net, or by allowing the Copyright Holder to include
+ your modifications in the Standard Version of the Package.
+
+ b) use the modified Package only within your corporation or organization.
+
+ c) rename any non-standard executables so the names do not conflict
+ with standard executables, which must also be provided, and provide
+ a separate manual page for each non-standard executable that clearly
+ documents how it differs from the Standard Version.
-7. C or perl subroutines supplied by you and linked into this Package shall not
-be considered part of this Package.
+ d) make other distribution arrangements with the Copyright Holder.
+
+4. You may distribute the programs of this Package in object code or
+executable form, provided that you do at least ONE of the following:
+
+ a) distribute a Standard Version of the executables and library files,
+ together with instructions (in the manual page or equivalent) on where
+ to get the Standard Version.
+
+ b) accompany the distribution with the machine-readable source of
+ the Package with your modifications.
+
+ c) give non-standard executables non-standard names, and clearly
+ document the differences in manual pages (or equivalent), together
+ with instructions on where to get the Standard Version.
+
+ d) make other distribution arrangements with the Copyright Holder.
+
+5. You may charge a reasonable copying fee for any distribution of this
+Package. You may charge any fee you choose for support of this
+Package. You may not charge a fee for this Package itself. However,
+you may distribute this Package in aggregate with other (possibly
+commercial) programs as part of a larger (possibly commercial) software
+distribution provided that you do not advertise this Package as a
+product of your own. You may embed this Package's interpreter within
+an executable of yours (by linking); this shall be construed as a mere
+form of aggregation, provided that the complete Standard Version of the
+interpreter is so embedded.
+
+6. The scripts and library files supplied as input to or produced as
+output from the programs of this Package do not automatically fall
+under the copyright of this Package, but belong to whoever generated
+them, and may be sold commercially, and may be aggregated with this
+Package. If such scripts or library files are aggregated with this
+Package via the so-called "undump" or "unexec" methods of producing a
+binary executable image, then distribution of such an image shall
+neither be construed as a distribution of this Package nor shall it
+fall under the restrictions of Paragraphs 3 and 4, provided that you do
+not represent such an executable image as a Standard Version of this
+Package.
+
+7. C subroutines (or comparably compiled subroutines in other
+languages) supplied by you and linked into this Package in order to
+emulate subroutines and variables of the language defined by this
+Package shall not be considered part of this Package, but are the
+equivalent of input as in Paragraph 6, provided these subroutines do
+not change the language in any way that would cause it to fail the
+regression tests for the language.
+
+8. Aggregation of this Package with a commercial distribution is always
+permitted provided that the use of this Package is embedded; that is,
+when no overt attempt is made to make this Package's interfaces visible
+to the end user of the commercial distribution. Such use shall not be
+construed as a distribution of this Package.
-8. The name of the Copyright Holder may not be used to endorse or promote
+9. The name of the Copyright Holder may not be used to endorse or promote
products derived from this software without specific prior written permission.
-9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
-WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
-MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-The End
+ The End
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Build-Tiny-0.039/MANIFEST
new/Module-Build-Tiny-0.046/MANIFEST
--- old/Module-Build-Tiny-0.039/MANIFEST 2014-10-12 10:39:04.000000000
+0200
+++ new/Module-Build-Tiny-0.046/MANIFEST 2023-06-01 19:31:26.000000000
+0200
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest
v5.020.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest
v6.030.
Build.PL
Changes
INSTALL
@@ -10,7 +10,6 @@
Todo
dist.ini
lib/Module/Build/Tiny.pm
-t/00-compile.t
t/lib/DistGen.pm
-t/release-pod-syntax.t
t/simple.t
+xt/author/pod-syntax.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Build-Tiny-0.039/META.json
new/Module-Build-Tiny-0.046/META.json
--- old/Module-Build-Tiny-0.039/META.json 2014-10-12 10:39:04.000000000
+0200
+++ new/Module-Build-Tiny-0.046/META.json 2023-06-01 19:31:26.000000000
+0200
@@ -5,13 +5,13 @@
"David Golden <[email protected]>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 5.020, CPAN::Meta::Converter version
2.142060",
+ "generated_by" : "Dist::Zilla version 6.030, CPAN::Meta::Converter version
2.150010",
"license" : [
"perl_5"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
- "version" : "2"
+ "version" : 2
},
"name" : "Module-Build-Tiny",
"prereqs" : {
@@ -41,6 +41,7 @@
},
"develop" : {
"requires" : {
+ "Test::More" : "0",
"Test::Pod" : "1.41"
}
},
@@ -82,9 +83,7 @@
"File::Spec" : "0",
"File::Temp" : "0",
"IO::File" : "0",
- "IO::Handle" : "0",
"IPC::Open2" : "0",
- "IPC::Open3" : "0",
"Test::More" : "0.88",
"XSLoader" : "0",
"blib" : "0",
@@ -99,21 +98,23 @@
"provides" : {
"Module::Build::Tiny" : {
"file" : "lib/Module/Build/Tiny.pm",
- "version" : "0.039"
+ "version" : "0.046"
}
},
"release_status" : "stable",
"resources" : {
"bugtracker" : {
- "mailto" : "bug-module-build-tiny at rt.cpan.org",
- "web" :
"http://rt.cpan.org/Public/Dist/Display.html?Name=Module-Build-Tiny"
+ "web" :
"https://github.com/Perl-Toolchain-Gang/module-build-tiny/issues"
},
"repository" : {
"type" : "git",
- "url" : "git://github.com/Leont/module-build-tiny.git",
- "web" : "https://github.com/Leont/module-build-tiny"
+ "url" : "git://github.com/Perl-Toolchain-Gang/module-build-tiny.git",
+ "web" : "https://github.com/Perl-Toolchain-Gang/module-build-tiny"
}
},
- "version" : "0.039"
+ "version" : "0.046",
+ "x_generated_by_perl" : "v5.36.0",
+ "x_serialization_backend" : "Cpanel::JSON::XS version 4.29",
+ "x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Build-Tiny-0.039/META.yml
new/Module-Build-Tiny-0.046/META.yml
--- old/Module-Build-Tiny-0.039/META.yml 2014-10-12 10:39:04.000000000
+0200
+++ new/Module-Build-Tiny-0.046/META.yml 2023-06-01 19:31:26.000000000
+0200
@@ -10,9 +10,7 @@
File::Spec: '0'
File::Temp: '0'
IO::File: '0'
- IO::Handle: '0'
IPC::Open2: '0'
- IPC::Open3: '0'
Test::More: '0.88'
XSLoader: '0'
blib: '0'
@@ -42,7 +40,7 @@
conflicts:
local::lib: '< 1.006008'
dynamic_config: 0
-generated_by: 'Dist::Zilla version 5.020, CPAN::Meta::Converter version
2.142060'
+generated_by: 'Dist::Zilla version 6.030, CPAN::Meta::Converter version
2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -51,7 +49,7 @@
provides:
Module::Build::Tiny:
file: lib/Module/Build/Tiny.pm
- version: '0.039'
+ version: '0.046'
requires:
CPAN::Meta: '0'
DynaLoader: '0'
@@ -74,6 +72,9 @@
strict: '0'
warnings: '0'
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.039'
+ bugtracker: https://github.com/Perl-Toolchain-Gang/module-build-tiny/issues
+ repository: git://github.com/Perl-Toolchain-Gang/module-build-tiny.git
+version: '0.046'
+x_generated_by_perl: v5.36.0
+x_serialization_backend: 'YAML::Tiny version 1.73'
+x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Build-Tiny-0.039/README
new/Module-Build-Tiny-0.046/README
--- old/Module-Build-Tiny-0.039/README 2014-10-12 10:39:04.000000000 +0200
+++ new/Module-Build-Tiny-0.046/README 2023-06-01 19:31:26.000000000 +0200
@@ -1,7 +1,5 @@
-
-
This archive contains the distribution Module-Build-Tiny,
-version 0.039:
+version 0.046:
A tiny replacement for Module::Build
@@ -11,5 +9,4 @@
the same terms as the Perl 5 programming language system itself.
-This README file was generated by Dist::Zilla::Plugin::Readme v5.020.
-
+This README file was generated by Dist::Zilla::Plugin::Readme v6.030.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Build-Tiny-0.039/dist.ini
new/Module-Build-Tiny-0.046/dist.ini
--- old/Module-Build-Tiny-0.039/dist.ini 2014-10-12 10:39:04.000000000
+0200
+++ new/Module-Build-Tiny-0.046/dist.ini 2023-06-01 19:31:26.000000000
+0200
@@ -5,17 +5,55 @@
copyright_holder = Leon Timmermans, David Golden
copyright_year = 2011
-;Building
-[@LEONT]
-; List explicitely for 'dzil authodeps'
-;authordep Dist::Zilla::Plugin::BuildSelf
-install_tool = self
-BuildSelf.auto_configure_requires = 1
-AutoPrereqs.skip = File::ShareDir
--remove = PodCoverageTests
+[Git::GatherDir]
+[PruneCruft]
+[MetaYAML]
+[License]
+[Manifest]
+[Readme]
+
+[AutoPrereqs]
+skip = File::ShareDir
+skip = Foo::Bar
+[MetaJSON]
+[GitHub::Meta]
+[Git::NextVersion]
+[MetaProvides::Package]
+
+[BuildSelf]
+auto_configure_requires = 1
+
+[PodSyntaxTests]
+
+[InstallGuide]
+[PodWeaver]
+[PkgVersion]
+[NextRelease]
+
+[CheckChangesHasContent]
+[Git::Check]
+[RunExtraTests]
+[TestRelease]
+[ConfirmRelease]
+
+[MinimumPerl]
+
+[UploadToCPAN]
+
+[Git::Commit]
+[Git::Tag]
+[Git::Push]
+
[Prereqs / RuntimeSuggests]
constant = 1.27
[Prereqs / RuntimeConflicts]
local::lib = <1.006008
[Prereqs / TestSuggests]
File::ShareDir = 1.000
+
+[OnlyCorePrereqs]
+:version = 0.012
+check_dual_life_versions = 0
+skip = ExtUtils::Config
+skip = ExtUtils::Helpers
+skip = ExtUtils::InstallPaths
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Build-Tiny-0.039/lib/Module/Build/Tiny.pm
new/Module-Build-Tiny-0.046/lib/Module/Build/Tiny.pm
--- old/Module-Build-Tiny-0.039/lib/Module/Build/Tiny.pm 2014-10-12
10:39:04.000000000 +0200
+++ new/Module-Build-Tiny-0.046/lib/Module/Build/Tiny.pm 2023-06-01
19:31:26.000000000 +0200
@@ -1,5 +1,5 @@
package Module::Build::Tiny;
-$Module::Build::Tiny::VERSION = '0.039';
+$Module::Build::Tiny::VERSION = '0.046';
use strict;
use warnings;
use Exporter 5.57 'import';
@@ -23,7 +23,7 @@
print $fh $content;
}
sub read_file {
- my ($filename, $mode) = @_;
+ my ($filename) = @_;
open my $fh, '<', $filename or die "Could not open $filename: $!\n";
return do { local $/; <$fh> };
}
@@ -45,7 +45,7 @@
}
sub process_xs {
- my ($source, $options) = @_;
+ my ($source, $options, $c_files) = @_;
die "Can't build xs files under --pureperl-only\n" if
$options->{'pureperl-only'};
my (undef, @parts) = splitdir(dirname($source));
@@ -61,14 +61,20 @@
my $version = $options->{meta}->version;
require ExtUtils::CBuilder;
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,
dirname($source) ]);
+ my @objects = $builder->compile(source => $c_file, defines => { VERSION
=> qq/"$version"/, XS_VERSION => qq/"$version"/ }, include_dirs => [ curdir,
'include', 'src', dirname($source) ]);
+
+ my $o = $options->{config}->get('_o');
+ for my $c_source (@{ $c_files }) {
+ my $o_file = catfile($tempdir, basename($c_source, '.c') . $o);
+ push @objects, $builder->compile(source => $c_source,
include_dirs => [ curdir, 'include', 'src', dirname($c_source) ])
+ }
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, $mod2fname->(\@parts) . '.' .
$options->{config}->get('dlext'));
- return $builder->link(objects => $ob_file, lib_file => $lib_file,
module_name => join '::', @parts);
+ return $builder->link(objects => \@objects, lib_file => $lib_file,
module_name => join '::', @parts);
}
sub find {
@@ -78,27 +84,51 @@
return @ret;
}
+sub contains_pod {
+ my ($file) = @_;
+ return unless -T $file;
+ return read_file($file) =~ /^\=(?:head|pod|item)/m;
+}
+
my %actions = (
build => sub {
my %opt = @_;
for my $pl_file (find(qr/\.PL$/, 'lib')) {
- (my $pm = $pl_file) =~ s/\.PL$//;
+ (my $pm = $pl_file) =~ s/\.PL$//;
system $^X, $pl_file, $pm and die "$pl_file returned
$?\n";
}
- my %modules = map { $_ => catfile('blib', $_) }
find(qr/\.p(?:m|od)$/, 'lib');
+ my %modules = map { $_ => catfile('blib', $_) } find(qr/\.pm$/,
'lib');
+ my %docs = map { $_ => catfile('blib', $_) }
find(qr/\.pod$/, 'lib');
my %scripts = map { $_ => catfile('blib', $_) } find(qr//,
'script');
- my %shared = map { $_ => catfile(qw/blib lib auto share dist/,
$opt{meta}->name, abs2rel($_, 'share')) } find(qr//, 'share');
- pm_to_blib({ %modules, %scripts, %shared }, catdir(qw/blib lib
auto/));
+ my %sdocs = map { $_ => delete $scripts{$_} } grep { /.pod$/
} keys %scripts;
+ my %dist_shared = map { $_ => catfile(qw/blib lib auto share
dist/, $opt{meta}->name, abs2rel($_, 'share')) } find(qr//, 'share');
+ my %module_shared = map { $_ => catfile(qw/blib lib auto share
module/, abs2rel($_, 'module-share')) } find(qr//, 'module-share');
+ pm_to_blib({ %modules, %docs, %scripts, %dist_shared,
%module_shared }, catdir(qw/blib lib auto/));
make_executable($_) for values %scripts;
mkpath(catdir(qw/blib arch/), $opt{verbose});
- process_xs($_, \%opt) for find(qr/.xs$/, 'lib');
+ my $main_xs = join('/', 'lib', split /-/, $opt{meta}->name) .
'.xs';
+ for my $xs (find(qr/.xs$/, 'lib')) {
+ my @c_files = $xs eq $main_xs ? find(qr/\.c$/, 'src') :
();
+ process_xs($xs, \%opt, \@c_files);
+ }
if ($opt{install_paths}->install_destination('bindoc') &&
$opt{install_paths}->is_default_installable('bindoc')) {
- manify($_, catfile('blib', 'bindoc',
man1_pagename($_)), $opt{config}->get('man1ext'), \%opt) for keys %scripts;
+ my $section = $opt{config}->get('man1ext');
+ for my $input (keys %scripts, keys %sdocs) {
+ next unless contains_pod($input);
+ my $output = catfile('blib', 'bindoc',
man1_pagename($input));
+ manify($input, $output, $section, \%opt);
+ }
}
if ($opt{install_paths}->install_destination('libdoc') &&
$opt{install_paths}->is_default_installable('libdoc')) {
- manify($_, catfile('blib', 'libdoc',
man3_pagename($_)), $opt{config}->get('man3ext'), \%opt) for keys %modules;
+ my $section = $opt{config}->get('man3ext');
+ for my $input (keys %modules, keys %docs) {
+ next unless contains_pod($input);
+ my $output = catfile('blib', 'libdoc',
man3_pagename($input));
+ manify($input, $output, $section, \%opt);
+ }
}
+ return 0;
},
test => sub {
my %opt = @_;
@@ -111,20 +141,23 @@
lib => [ map { rel2abs(catdir(qw/blib/, $_)) } qw/arch
lib/ ],
);
my $tester = TAP::Harness::Env->create(\%test_args);
- $tester->runtests(sort +find(qr/\.t$/, 't'))->has_errors and
exit 1;
+ return $tester->runtests(sort +find(qr/\.t$/, 't'))->has_errors;
},
install => sub {
my %opt = @_;
die "Must run `./Build build` first\n" if not -d 'blib';
install($opt{install_paths}->install_map, @opt{qw/verbose
dry_run uninst/});
+ return 0;
},
clean => sub {
my %opt = @_;
rmtree($_, $opt{verbose}) for qw/blib temp/;
+ return 0;
},
realclean => sub {
my %opt = @_;
rmtree($_, $opt{verbose}) for qw/blib temp Build _build_params
MYMETA.yml MYMETA.json/;
+ return 0;
},
);
@@ -136,7 +169,7 @@
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 jobs=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));
+ exit $actions{$action}->(%opt, install_paths =>
ExtUtils::InstallPaths->new(%opt, dist_name => $opt{meta}->name));
}
sub Build_PL {
@@ -155,7 +188,7 @@
#ABSTRACT: A tiny replacement for Module::Build
-# vi:et:sts=2:sw=2:ts=2
+# vi:noet:sts=4:sw=4:ts=4
__END__
@@ -169,7 +202,7 @@
=head1 VERSION
-version 0.039
+version 0.046
=head1 SYNOPSIS
@@ -184,7 +217,7 @@
This module provides a simple, lightweight, drop-in replacement.
Whereas Module::Build has over 6,700 lines of code; this module has less
-than 120, yet supports the features needed by most distributions.
+than 200, yet supports the features needed by most distributions.
=head2 Supported
@@ -202,6 +235,8 @@
=item * Generated code from PL files
+=item * Module sharedirs
+
=back
=head2 Not Supported
@@ -214,14 +249,17 @@
=item * Extending Module::Build::Tiny
-=item * Module sharedirs
-
=back
=head2 Directory structure
-Your .pm and .pod files must be in F<lib/>. Any executables must be in
-F<script/>. Test files must be in F<t/>. Dist sharedirs must be in F<share/>.
+Your .pm, .xs and .pod files must be in F<lib/>. Any executables must be in
+F<script/>. Test files must be in F<t/>. Dist sharedirs must be in F<share/>,
+module sharedirs are under F<module-share> (e.g. F<module-share/Foo-Bar> for
+module C<Foo::Bar>).
+
+C<.c> files in the F<src/> are compiled together with the .xs file matching the
+distribution name.
=head1 USAGE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Build-Tiny-0.039/t/00-compile.t
new/Module-Build-Tiny-0.046/t/00-compile.t
--- old/Module-Build-Tiny-0.039/t/00-compile.t 2014-10-12 10:39:04.000000000
+0200
+++ new/Module-Build-Tiny-0.046/t/00-compile.t 1970-01-01 01:00:00.000000000
+0100
@@ -1,50 +0,0 @@
-use 5.006;
-use strict;
-use warnings;
-
-# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.040
-
-use Test::More tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0);
-
-
-
-my @module_files = (
- 'Module/Build/Tiny.pm'
-);
-
-
-
-# no fake home requested
-
-my $inc_switch = -d 'blib' ? '-Mblib' : '-Ilib';
-
-use File::Spec;
-use IPC::Open3;
-use IO::Handle;
-
-open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!";
-
-my @warnings;
-for my $lib (@module_files)
-{
- # see L<perlfaq8/How can I capture STDERR from an external command?>
- my $stderr = IO::Handle->new;
-
- 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($?, 0, "$lib loaded ok");
-
- if (@_warnings)
- {
- warn @_warnings;
- push @warnings, @_warnings;
- }
-}
-
-
-
-is(scalar(@warnings), 0, 'no warnings found') if $ENV{AUTHOR_TESTING};
-
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Build-Tiny-0.039/t/lib/DistGen.pm
new/Module-Build-Tiny-0.046/t/lib/DistGen.pm
--- old/Module-Build-Tiny-0.039/t/lib/DistGen.pm 2014-10-12
10:39:04.000000000 +0200
+++ new/Module-Build-Tiny-0.046/t/lib/DistGen.pm 2023-06-01
19:31:26.000000000 +0200
@@ -120,7 +120,7 @@
package $module_name;
use vars qw( \$VERSION );
- \$VERSION = '0.01';
+ \$VERSION = '0.001';
use strict;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Build-Tiny-0.039/t/release-pod-syntax.t
new/Module-Build-Tiny-0.046/t/release-pod-syntax.t
--- old/Module-Build-Tiny-0.039/t/release-pod-syntax.t 2014-10-12
10:39:04.000000000 +0200
+++ new/Module-Build-Tiny-0.046/t/release-pod-syntax.t 1970-01-01
01:00:00.000000000 +0100
@@ -1,14 +0,0 @@
-#!perl
-
-BEGIN {
- unless ($ENV{RELEASE_TESTING}) {
- require Test::More;
- Test::More::plan(skip_all => 'these tests are for release candidate
testing');
- }
-}
-
-# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests.
-use Test::More;
-use Test::Pod 1.41;
-
-all_pod_files_ok();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Build-Tiny-0.039/t/simple.t
new/Module-Build-Tiny-0.046/t/simple.t
--- old/Module-Build-Tiny-0.039/t/simple.t 2014-10-12 10:39:04.000000000
+0200
+++ new/Module-Build-Tiny-0.046/t/simple.t 2023-06-01 19:31:26.000000000
+0200
@@ -20,27 +20,40 @@
my $dist = DistGen->new(name => 'Foo::Bar');
$dist->chdir_in;
$dist->add_file('share/file.txt', 'FooBarBaz');
+$dist->add_file('module-share/Foo-Bar/file.txt', 'BazBarFoo');
$dist->add_file('script/simple', undent(<<' ---'));
#!perl
use Foo::Bar;
- print Simple->VERSION . "\n";
+ print Foo::Bar->VERSION . "\n";
---
my $has_compiler = ExtUtils::CBuilder->new->have_compiler();
-$dist->add_file('lib/Simple.xs', undent(<<' ---')) if $has_compiler;
- #define PERL_NO_GET_CONTEXT
- #include "EXTERN.h"
- #include "perl.h"
- #include "XSUB.h"
-
- MODULE = Simple PACKAGE = Simple
-
- const char*
- foo()
- CODE:
- RETVAL = "Hello World!\n";
- OUTPUT:
- RETVAL
- ---
+
+if ($has_compiler) {
+ $dist->add_file('lib/Foo/Bar.xs', undent(<<' ---'));
+ #define PERL_NO_GET_CONTEXT
+ #include "EXTERN.h"
+ #include "perl.h"
+ #include "XSUB.h"
+ #include "foo.h"
+
+ MODULE = Foo::Bar PACKAGE = Foo::Bar
+
+ const char*
+ foo()
+ CODE:
+ RETVAL = foo();
+ OUTPUT:
+ RETVAL
+ ---
+ $dist->add_file('include/foo.h', undent(<<' ---'));
+ char* foo();
+ ---
+ $dist->add_file('src/foo.c', undent(<<' ---'));
+ char* foo() {
+ return "Hello World!\n";
+ }
+ ---
+}
$dist->regen;
@@ -114,13 +127,26 @@
if (eval { require File::ShareDir }) {
ok( -d File::ShareDir::dist_dir('Foo-Bar'), 'sharedir has been made');
ok( -f File::ShareDir::dist_file('Foo-Bar', 'file.txt'), 'sharedir file
has been made');
- }
- ok( -d catdir(qw/blib lib auto share dist Foo-Bar/), 'sharedir has been
made');
- ok( -f catfile(qw/blib lib auto share dist Foo-Bar file.txt/), 'sharedir
file has been made');
+ require Foo::Bar;
+ ok( -d File::ShareDir::module_dir('Foo::Bar'), 'sharedir has been made');
+ ok( -f File::ShareDir::module_file('Foo::Bar', 'file.txt'), 'sharedir file
has been made');
+ }
+ ok( -d catdir(qw/blib lib auto share dist Foo-Bar/), 'dist sharedir has been
made');
+ ok( -f catfile(qw/blib lib auto share dist Foo-Bar file.txt/), 'dist
sharedir file has been made');
+ ok( -d catdir(qw/blib lib auto share module Foo-Bar/), 'moduole sharedir has
been made');
+ ok( -f catfile(qw/blib lib auto share module Foo-Bar file.txt/), 'module
sharedir file has been made');
if ($has_compiler) {
- XSLoader::load('Simple');
- is(Simple::foo(), "Hello World!\n", 'Can run XSub Simple::foo');
+ XSLoader::load('Foo::Bar');
+ is(Foo::Bar::foo(), "Hello World!\n", 'Can run XSub Foo::Bar::foo');
+ }
+
+ SKIP: {
+ require ExtUtils::InstallPaths;
+ skip 'No manification supported', 1 if not
ExtUtils::InstallPaths->new->is_default_installable('libdoc');
+ require ExtUtils::Helpers;
+ my $file = "blib/libdoc/" . ExtUtils::Helpers::man3_pagename($pmfile, '.');
+ ok( -e $file, 'Module gets manified properly');
}
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Module-Build-Tiny-0.039/xt/author/pod-syntax.t
new/Module-Build-Tiny-0.046/xt/author/pod-syntax.t
--- old/Module-Build-Tiny-0.039/xt/author/pod-syntax.t 1970-01-01
01:00:00.000000000 +0100
+++ new/Module-Build-Tiny-0.046/xt/author/pod-syntax.t 2023-06-01
19:31:26.000000000 +0200
@@ -0,0 +1,7 @@
+#!perl
+# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests.
+use strict; use warnings;
+use Test::More;
+use Test::Pod 1.41;
+
+all_pod_files_ok();