Hello community,

here is the log from the commit of package perl-Exporter-Lite for 
openSUSE:Factory
checked in at Tue Jul 19 15:31:23 CEST 2011.



--------
New Changes file:

--- /dev/null   2010-08-26 16:28:41.000000000 +0200
+++ /mounts/work_src_done/STABLE/perl-Exporter-Lite/perl-Exporter-Lite.changes  
2011-07-14 10:11:15.000000000 +0200
@@ -0,0 +1,49 @@
+-------------------------------------------------------------------
+Thu Jul 14 08:06:02 UTC 2011 - [email protected]
+
+- updated to 0.02
+
+-------------------------------------------------------------------
+Tue Nov 30 19:20:13 UTC 2010 - [email protected]
+
+- switch to perl_requires macro
+
+-------------------------------------------------------------------
+Mon Nov 29 18:29:53 UTC 2010 - [email protected]
+
+- remove /var/adm/perl-modules
+
+-------------------------------------------------------------------
+Mon Nov 29 18:00:18 UTC 2010 - [email protected]
+
+- called spec2changelog
+
+-------------------------------------------------------------------
+Tue Jun 20 00:00:00 UTC 2006 - [email protected]
+
+- Build under build service
+
+
+-------------------------------------------------------------------
+Fri Nov 11 00:00:00 UTC 2005 - [email protected]
+
+- Build for SL10
+
+
+-------------------------------------------------------------------
+Thu May 12 00:00:00 UTC 2005 - [email protected]
+
+- Build for SL93
+
+
+-------------------------------------------------------------------
+Fri Nov 19 00:00:00 UTC 2004 - [email protected]
+
+- Build for SL92
+
+
+-------------------------------------------------------------------
+Tue May 11 00:00:00 UTC 2004 - [email protected]
+
+- Initial release
+

calling whatdependson for head-i586


New:
----
  Exporter-Lite-0.02.tar.gz
  perl-Exporter-Lite.changes
  perl-Exporter-Lite.spec

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

Other differences:
------------------
++++++ perl-Exporter-Lite.spec ++++++
#
# spec file for package perl-Exporter-Lite
#
# Copyright (c) 2011 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/
#



Name:           perl-Exporter-Lite
Version:        0.02
Release:        1
License:        GPL+ or Artistic
%define cpan_name Exporter-Lite
Summary:        Lightweight exporting of variables
Url:            http://search.cpan.org/dist/Exporter-Lite/
Group:          Development/Libraries/Perl
Source:         
http://www.cpan.org/authors/id/M/MS/MSCHWERN/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
%{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".

Setting up a module to export its variables and functions is simple:

    package My::Module;
    use Exporter::Lite;

    @EXPORT = qw($Foo bar);

now when you 'use My::Module', '$Foo' and 'bar()' will show up.

In order to make exporting optional, use @EXPORT_OK.

    package My::Module;
    use Exporter::Lite;

    @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)'.

%prep
%setup -q -n %{cpan_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%clean
%{__rm} -rf %{buildroot}

%files -f %{name}.files
%defattr(-,root,root,755)

%changelog

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



Remember to have fun...

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

Reply via email to