commit perl-Exporter-Lite for openSUSE:Factory
Hello community,
here is the log from the commit of package perl-Exporter-Lite for openSUSE:Factory checked in at 2015-04-15 16:25:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Exporter-Lite (Old)
and /work/SRC/openSUSE:Factory/.perl-Exporter-Lite.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Exporter-Lite"
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Exporter-Lite/perl-Exporter-Lite.changes 2011-09-23 12:36:58.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-Exporter-Lite.new/perl-Exporter-Lite.changes 2015-04-15 16:25:21.000000000 +0200
@@ -1,0 +2,6 @@
+Tue Apr 14 20:45:22 UTC 2015 - coolo@suse.com
+
+- updated to 0.06
+ see /usr/share/doc/packages/perl-Exporter-Lite/Changes
+
+-------------------------------------------------------------------
Old:
----
Exporter-Lite-0.02.tar.gz
New:
----
Exporter-Lite-0.06.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Exporter-Lite.spec ++++++
--- /var/tmp/diff_new_pack.xSo6f5/_old 2015-04-15 16:25:21.000000000 +0200
+++ /var/tmp/diff_new_pack.xSo6f5/_new 2015-04-15 16:25:21.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-Exporter-Lite
#
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,16 +16,15 @@
#
-
Name: perl-Exporter-Lite
-Version: 0.02
-Release: 1
-License: GPL-1.0+ or Artistic-1.0
+Version: 0.06
+Release: 0
%define cpan_name Exporter-Lite
-Summary: Lightweight exporting of variables
-Url: http://search.cpan.org/dist/Exporter-Lite/
+Summary: lightweight exporting of functions and variables
+License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
-Source: http://www.cpan.org/authors/id/M/MS/MSCHWERN/%{cpan_name}-%{version}.tar.gz
+Url: http://search.cpan.org/dist/Exporter-Lite/
+Source: http://www.cpan.org/authors/id/N/NE/NEILB/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
@@ -33,32 +32,52 @@
%{perl_requires}
%description
-This is an alternative to Exporter intended to provide a lightweight subset
-of its functionality. It supports 'import()', '@EXPORT' and '@EXPORT_OK'
-and not a whole lot else.
-
-Unlike Exporter, it is not necessary to inherit from Exporter::Lite (ie. no
-'@ISA = qw(Exporter::Lite)' mantra). Exporter::Lite simply exports its
-import() function. This might be called a "mix-in".
+Exporter::Lite is an alternative to the Exporter manpage, intended to
+provide a lightweight subset of the most commonly-used functionality. It
+supports 'import()', '@EXPORT' and '@EXPORT_OK' and not a whole lot else.
+
+Unlike Exporter, it is not necessary to inherit from Exporter::Lite; Ie you
+don't need to write:
+
+ @ISA = qw(Exporter::Lite);
+
+Exporter::Lite simply exports its import() function into your namespace.
+This might be called a "mix-in" or a "role".
Setting up a module to export its variables and functions is simple:
package My::Module;
use Exporter::Lite;
- @EXPORT = qw($Foo bar);
+ our @EXPORT = qw($Foo bar);
-now when you 'use My::Module', '$Foo' and 'bar()' will show up.
+Functions and variables listed in the '@EXPORT' package variable are
+automatically exported if you use the module and don't explicitly list any
+imports. Now, when you 'use My::Module', '$Foo' and 'bar()' will show up.
-In order to make exporting optional, use @EXPORT_OK.
+Optional exports are listed in the '@EXPORT_OK' package variable:
package My::Module;
use Exporter::Lite;
- @EXPORT_OK = qw($Foo bar);
+ our @EXPORT_OK = qw($Foo bar);
-when My::Module is used, '$Foo' and 'bar()' will _not_ show up. You have to
-ask for them. 'use My::Module qw($Foo bar)'.
+When My::Module is used, '$Foo' and 'bar()' will _not_ show up, unless you
+explicitly ask for them:
+
+ use My::Module qw($Foo bar);
+
+Note that when you specify one or more functions or variables to import,
+then you must also explicitly list any of the default symbols you want to
+use. So if you have an exporting module:
+
+ package Games;
+ our @EXPORT = qw/ pacman defender /;
+ our @EXPORT_OK = qw/ galaga centipede /;
+
+Then if you want to use both 'pacman' and 'galaga', then you'd write:
+
+ use Games qw/ pacman galaga /;
%prep
%setup -q -n %{cpan_name}-%{version}
@@ -75,10 +94,8 @@
%perl_process_packlist
%perl_gen_filelist
-%clean
-%{__rm} -rf %{buildroot}
-
%files -f %{name}.files
%defattr(-,root,root,755)
+%doc Changes README
%changelog
++++++ Exporter-Lite-0.02.tar.gz -> Exporter-Lite-0.06.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Lite-0.02/Changes new/Exporter-Lite-0.06/Changes
--- old/Exporter-Lite-0.02/Changes 1970-01-01 01:00:00.000000000 +0100
+++ new/Exporter-Lite-0.06/Changes 2014-07-30 00:16:11.000000000 +0200
@@ -0,0 +1,40 @@
+Revision history for Perl module Exporter::Lite
+
+0.06 2014-07-29
+ - Improved the abstract - explicit mention that functions are supported
+ - Improved the SYNOPSIS - split into separate code blocks
+ - Improved the DESCRIPTION. Made clearer that as soon as you specify
+ an import symbol, you have to also specify any you want from @EXPORT.
+ - Removed the BUGS and CAVEATS section from the doc; it was just being
+ self-deprecating about whether it deserved the "lite" moniker.
+
+0.05 2014-03-26
+ - Improved the DESCRIPTION section, particularly the first paragraph.
+ - Added a bunch more Exporter modules to the SEE ALSO section.
+
+0.04 2014-03-26
+ - Added Constant::Exporter::Lazy to SEE ALSO
+ - Had forgotten to put README and Changes in MANIFEST. Sigh.
+
+0.03 2014-03-25
+ - Now maintained by NEILB
+ - Fixed typo reported by dsteinbrunner in RT#87096
+ - Now use strict and warnings
+ - Added github repo to metadata and pod
+ - Added README
+ - Specified min perl version 5.6.0 in metadata
+ - Set PREREQ_PM, TEST_REQUIRES, CONFIGURE_REQUIRES in Makefile.PL
+ - Added a load of modules to SEE ALSO.
+
+0.02_01 2014-03-24
+ - All but the final bullet in 0.03 were first done in this dev release
+
+0.02 Sat Nov 11 18:09:19 CST 2006
+ - Added a Changes file. :)
+ - Added a license notice. (jjore@cpan.org) [rt.cpan.org 20323]
+ - Fixed the version check test for 5.10. [rt.cpan.org 13648]
+ - Now depending on Test::More rather than shipping it.
+
+0.01 Sat Dec 16 2001
+ - First working release
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Lite-0.02/MANIFEST new/Exporter-Lite-0.06/MANIFEST
--- old/Exporter-Lite-0.02/MANIFEST 2006-11-12 01:11:34.000000000 +0100
+++ new/Exporter-Lite-0.06/MANIFEST 2014-07-30 00:16:35.000000000 +0200
@@ -1,7 +1,9 @@
+Changes
MANIFEST
Makefile.PL
+README
lib/Exporter/Lite.pm
t/Exporter-Lite.t
t/lib/Dummy.pm
-META.yml Module meta-data (added by MakeMaker)
-SIGNATURE Public-key signature (added by MakeMaker)
+META.yml Module YAML meta-data (added by MakeMaker)
+META.json Module JSON meta-data (added by MakeMaker)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Lite-0.02/META.json new/Exporter-Lite-0.06/META.json
--- old/Exporter-Lite-0.02/META.json 1970-01-01 01:00:00.000000000 +0100
+++ new/Exporter-Lite-0.06/META.json 2014-07-30 00:16:35.000000000 +0200
@@ -0,0 +1,55 @@
+{
+ "abstract" : "unknown",
+ "author" : [
+ "unknown"
+ ],
+ "dynamic_config" : 1,
+ "generated_by" : "ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter version 2.141170",
+ "license" : [
+ "perl_5"
+ ],
+ "meta-spec" : {
+ "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
+ "version" : "2"
+ },
+ "name" : "Exporter-Lite",
+ "no_index" : {
+ "directory" : [
+ "t",
+ "inc"
+ ]
+ },
+ "prereqs" : {
+ "build" : {
+ "requires" : {
+ "ExtUtils::MakeMaker" : "0"
+ }
+ },
+ "configure" : {
+ "requires" : {
+ "ExtUtils::MakeMaker" : "6.3"
+ }
+ },
+ "runtime" : {
+ "requires" : {
+ "perl" : "5.006",
+ "strict" : "0",
+ "warnings" : "0"
+ }
+ },
+ "test" : {
+ "requires" : {
+ "Test::More" : "0.34"
+ }
+ }
+ },
+ "release_status" : "stable",
+ "resources" : {
+ "repository" : {
+ "type" : "git",
+ "url" : "git://github.com/neilbowers/Exporter-Lite.git",
+ "web" : "https://github.com/neilbowers/Exporter-Lite"
+ }
+ },
+ "version" : "0.06"
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Lite-0.02/META.yml new/Exporter-Lite-0.06/META.yml
--- old/Exporter-Lite-0.02/META.yml 2006-11-12 01:11:34.000000000 +0100
+++ new/Exporter-Lite-0.06/META.yml 2014-07-30 00:16:35.000000000 +0200
@@ -1,12 +1,27 @@
---- #YAML:1.0
-name: Exporter-Lite
-version: 0.02
-abstract: ~
-license: perl
-generated_by: ExtUtils::MakeMaker version 6.31
-distribution_type: module
-requires:
- Test::More: 0.34
+---
+abstract: unknown
+author:
+ - unknown
+build_requires:
+ ExtUtils::MakeMaker: '0'
+ Test::More: '0.34'
+configure_requires:
+ ExtUtils::MakeMaker: '6.3'
+dynamic_config: 1
+generated_by: 'ExtUtils::MakeMaker version 6.98, CPAN::Meta::Converter version 2.141170'
+license: perl
meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.2.html
- version: 1.2
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: '1.4'
+name: Exporter-Lite
+no_index:
+ directory:
+ - t
+ - inc
+requires:
+ perl: '5.006'
+ strict: '0'
+ warnings: '0'
+resources:
+ repository: git://github.com/neilbowers/Exporter-Lite.git
+version: '0.06'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Lite-0.02/Makefile.PL new/Exporter-Lite-0.06/Makefile.PL
--- old/Exporter-Lite-0.02/Makefile.PL 2006-11-12 01:09:12.000000000 +0100
+++ new/Exporter-Lite-0.06/Makefile.PL 2014-03-24 22:59:35.000000000 +0100
@@ -2,6 +2,12 @@
use ExtUtils::MakeMaker;
+my $mm_ver = $ExtUtils::MakeMaker::VERSION;
+if ($mm_ver =~ /_/) {
+ $mm_ver = eval $mm_ver;
+ die $@ if $@;
+}
+
$PACKAGE = 'Exporter::Lite';
($PACKAGE_FILE = $PACKAGE) =~ s|::|/|g;
$LAST_API_CHANGE = 0;
@@ -22,9 +28,49 @@
NAME => $PACKAGE,
VERSION_FROM => "lib/$PACKAGE_FILE.pm", # finds $VERSION
PREREQ_PM => {
- Test::More => 0.34
+ 'strict' => 0,
+ 'warnings' => 0,
},
- ($ExtUtils::MakeMaker::VERSION <= 6.31 ? (LICENSE => 'perl') : ()),
+
+ ($mm_ver >= 6.64
+ ? (TEST_REQUIRES => {
+ 'Test::More' => '0.34',
+ })
+ : ()
+ ),
+
+ ($mm_ver >= 6.52
+ ? (CONFIGURE_REQUIRES => {
+ 'ExtUtils::MakeMaker' => 6.30,
+ })
+ : ()
+ ),
+
+ ($mm_ver >= 6.31
+ ? (LICENSE => 'perl')
+ : ()
+ ),
+
+ ($mm_ver >= 6.48
+ ? (MIN_PERL_VERSION => 5.006)
+ : ()
+ ),
+
+ ($mm_ver <= 6.45
+ ? ()
+ : (META_MERGE => {
+ 'meta-spec' => { version => 2 },
+ resources => {
+ bugtracker => 'http://rt.cpan.org/Public/Dist/Display.html?Name=Exporter-Lite',
+ repository => {
+ type => 'git',
+ web => 'https://github.com/neilbowers/Exporter-Lite',
+ url => 'git://github.com/neilbowers/Exporter-Lite.git',
+ },
+ },
+ })
+ ),
+
);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Exporter-Lite-0.02/README new/Exporter-Lite-0.06/README
--- old/Exporter-Lite-0.02/README 1970-01-01 01:00:00.000000000 +0100
+++ new/Exporter-Lite-0.06/README 2014-03-24 22:51:02.000000000 +0100
@@ -0,0 +1,18 @@
+
+ README for Perl module Exporter::Lite
+
+This module is a lightweight version of the core Exporter module,
+providing a subset of that module's functionality.
+
+You can read a nicely formatted version of the documentation for
+this module online:
+
+ https://metacpan.org/pod/Exporter::Lite
+
+You should be able to install this using your usual method for installing
+modules from CPAN. If you don't have a usual method yet, have a look at:
+
+ http://www.cpan.org/modules/INSTALL.html
+
+This module was written by Michael G Schwern.
+It is now being maintained by Neil Bowers
participants (1)
-
root@hilbert.suse.de