Hello community,

here is the log from the commit of package perl-MooseX-Role-Parameterized for 
openSUSE:Factory
checked in at Wed Jul 20 10:30:36 CEST 2011.



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

--- /dev/null   2010-08-26 16:28:41.000000000 +0200
+++ 
/mounts/work_src_done/STABLE/perl-MooseX-Role-Parameterized/perl-MooseX-Role-Parameterized.changes
  2011-06-05 00:19:18.000000000 +0200
@@ -0,0 +1,44 @@
+-------------------------------------------------------------------
+Sat Jun  4 22:18:20 UTC 2011 - [email protected]
+
+- fix build on distributions with old Test::More module
+  ( perl-MooseX-Role-Parameterized-old_Test_More.patch )
+
+-------------------------------------------------------------------
+Sun May  1 10:38:24 UTC 2011 - [email protected]
+
+- updated to 0.26
+      * make tests stop relying on a specific format for anon class/role names 
(doy)
+  
+      * Move the reinitialization hook from Role to Trait so hardcore hackers
+        (trait janitors) get the benefit too (doy)
+  
+      * Made MXRP more extensible by hooking into the role metaobject
+        reinitialization (doy)
+  
+      * Merry Christmas!
+      * Make MooseX::Role::Parameterized::Extending more instructive. 
Hopefully.
+  
+      * The test suite now uses Test::Fatal instead of Test::Exception (Karen
+        Etheridge).
+      * Fix Test::More dependency (reported by Father Chrysostomos) 
[rt.cpan.org #63222]
+  
+      * "package" arg can now tell generate_role to use a specific package 
(rjbs)
+  
+      * Minor test refactoring to fix blead support [rt.perl.org #78244]
+
+-------------------------------------------------------------------
+Wed Dec  1 13:33:51 UTC 2010 - [email protected]
+
+- switch to perl_requires macro
+
+-------------------------------------------------------------------
+Mon Nov 29 18:30:37 UTC 2010 - [email protected]
+
+- remove /var/adm/perl-modules
+
+-------------------------------------------------------------------
+Mon Jul 26 01:18:20 UTC 2010 - [email protected]
+
+- initial package (0.19)
+

calling whatdependson for head-i586


New:
----
  MooseX-Role-Parameterized-0.26.tar.gz
  perl-MooseX-Role-Parameterized-old_Test_More.patch
  perl-MooseX-Role-Parameterized.changes
  perl-MooseX-Role-Parameterized.spec

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

Other differences:
------------------
++++++ perl-MooseX-Role-Parameterized.spec ++++++
#
# spec file for package perl-MooseX-Role-Parameterized
#
# 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-MooseX-Role-Parameterized
Version:        0.26
Release:        1
License:        GPL+ or Artistic
%define cpan_name MooseX-Role-Parameterized
Summary:        Roles with composition parameters
Url:            http://search.cpan.org/dist/MooseX-Role-Parameterized/
Group:          Development/Libraries/Perl
Source:         
http://www.cpan.org/authors/id/S/SA/SARTAK/%{cpan_name}-%{version}.tar.gz
Patch1:         perl-MooseX-Role-Parameterized-old_Test_More.patch
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Moose) >= 0.78
BuildRequires:  perl(Test::Fatal)
BuildRequires:  perl(Test::Moose)
BuildRequires:  perl(Test::More) >= 0.96
Requires:       perl(Moose) >= 0.78
%{perl_requires}

%description
Your parameterized role consists of two new things: parameter declarations
and a 'role' block.

Parameters are declared using the the /parameter manpage keyword which very
much resembles the Moose/has manpage. You can use any option that the
Moose/has manpage accepts. The default value for the 'is' option is 'ro' as
that's a very common case. Use 'is => 'bare'' if you want no accessor.
These parameters will get their values when the consuming class (or role)
uses the Moose/with manpage. A parameter object will be constructed with
these values, and passed to the 'role' block.

The 'role' block then uses the usual the Moose::Role manpage keywords to
build up a role. You can shift off the parameter object to inspect what the
consuming class provided as parameters. You use the parameters to customize
your role however you wish.

There are many possible implementations for parameterized roles (hopefully
with a consistent enough API); I believe this to be the easiest and most
flexible design. Coincidentally, Pugs originally had an eerily similar
design.

See the MooseX::Role::Parameterized::Extending manpage for some tips on how
to extend this module.

%prep
%setup -q -n %{cpan_name}-%{version}
%if 0%{?suse_version} <= 1120
%patch1 -p1
sed -i "s|__vendorperl__|%{perl_vendorlib}|g" Makefile.PL t/*.t
%endif

%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)
%doc Changes

%changelog
++++++ perl-MooseX-Role-Parameterized-old_Test_More.patch ++++++
Index: MooseX-Role-Parameterized-0.26/Makefile.PL
===================================================================
--- MooseX-Role-Parameterized-0.26.orig/Makefile.PL
+++ MooseX-Role-Parameterized-0.26/Makefile.PL
@@ -1,6 +1,7 @@
 # Load the Module::Install bundled in ./inc/
 use inc::Module::Install;
 use Module::Install::GithubMeta;
+use lib '__vendorperl__';
 
 # Define metadata
 name           'MooseX-Role-Parameterized';
Index: MooseX-Role-Parameterized-0.26/t/002-role-block.t
===================================================================
--- MooseX-Role-Parameterized-0.26.orig/t/002-role-block.t
+++ MooseX-Role-Parameterized-0.26/t/002-role-block.t
@@ -1,6 +1,7 @@
 #!/usr/bin/env perl
 use strict;
 use warnings;
+use lib '__vendorperl__';
 use Test::More tests => 3;
 
 my ($parameters, %args);
Index: MooseX-Role-Parameterized-0.26/t/102-nested.t
===================================================================
--- MooseX-Role-Parameterized-0.26.orig/t/102-nested.t
+++ MooseX-Role-Parameterized-0.26/t/102-nested.t
@@ -1,5 +1,6 @@
 use strict;
 use warnings;
+use lib '__vendorperl__';
 use Test::More;
 use Test::Fatal;
 

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



Remember to have fun...

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

Reply via email to