forked from pool/perl-MooseX-Role-Parameterized
Compare commits
12 Commits
dd8938cd2f
...
77ab8a0313
Author | SHA256 | Date | |
---|---|---|---|
77ab8a0313 | |||
|
b37b8f2fcd | ||
d60d5ff738 | |||
|
a827a6171b | ||
c0f9c8d367 | |||
|
c67845a9df | ||
37817f07a9 | |||
|
9f3b81b5d6 | ||
|
34be128418 | ||
|
58f2e9c131 | ||
|
82e1e913a1 | ||
|
5f0fc36d2f |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fefcd169416b15ca72b31ff0a0c34690ddc4e78f5687df7196208224c3818218
|
||||
size 34386
|
3
MooseX-Role-Parameterized-1.11.tar.gz
Normal file
3
MooseX-Role-Parameterized-1.11.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1cfe766c5d7f0ecab57f733dcca430a2a2acd6b995757141b940ade3692bec9e
|
||||
size 49548
|
20
cpanspec.yml
Normal file
20
cpanspec.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
#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: Artistic-1.0 or GPL-1.0+
|
||||
#skip_noarch: 1
|
||||
#custom_build: -
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
@@ -1,35 +0,0 @@
|
||||
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;
|
||||
|
@@ -1,3 +1,49 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 16 09:46:37 UTC 2019 - Stephan Kulow <coolo@suse.com>
|
||||
|
||||
- updated to 1.11
|
||||
see /usr/share/doc/packages/perl-MooseX-Role-Parameterized/Changes
|
||||
|
||||
1.11 2019-07-16 01:33:16Z
|
||||
- remove MooseX::Role::WithOverloading from test dependencies (RT#130075)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 21 06:14:17 UTC 2017 - coolo@suse.com
|
||||
|
||||
- updated to 1.10
|
||||
see /usr/share/doc/packages/perl-MooseX-Role-Parameterized/Changes
|
||||
|
||||
1.10 2017-04-20 17:50:53Z
|
||||
- add MooseX::Role::Parameterised as stub documentation, for
|
||||
discoverability
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 7 05:57:53 UTC 2016 - coolo@suse.com
|
||||
|
||||
- updated to 1.09
|
||||
see /usr/share/doc/packages/perl-MooseX-Role-Parameterized/Changes
|
||||
|
||||
1.09 2016-08-07 01:20:31Z
|
||||
- Give 'anonymous' generated roles names that are similar to the original
|
||||
parameterized role so debug output is easier to read
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 14 20:53:38 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 1.08
|
||||
see /usr/share/doc/packages/perl-MooseX-Role-Parameterized/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 4 09:13:45 UTC 2013 - coolo@suse.com
|
||||
|
||||
- updated to 1.02
|
||||
* set %INC entries in test to avoid failures with
|
||||
Moose pre-2.11 (kentfrederic)
|
||||
https://github.com/sartak/MooseX-Role-Parameterized/pull/7
|
||||
https://rt.cpan.org/Ticket/Display.html?id=88593
|
||||
* removed use of deprecated Class::MOP::load_class (ether)
|
||||
- remove outdated patch perl-MooseX-Role-Parameterized-old_Test_More.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 27 10:09:25 UTC 2012 - coolo@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-MooseX-Role-Parameterized
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 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
|
||||
@@ -12,113 +12,94 @@
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-MooseX-Role-Parameterized
|
||||
Version: 1.00
|
||||
Version: 1.11
|
||||
Release: 0
|
||||
#Upstream: Artistic-1.0 or GPL-1.0-or-later
|
||||
%define cpan_name MooseX-Role-Parameterized
|
||||
Summary: Roles with composition parameters
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Summary: Moose roles with composition parameters
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/MooseX-Role-Parameterized/
|
||||
Source: http://www.cpan.org/authors/id/S/SA/SARTAK/%{cpan_name}-%{version}.tar.gz
|
||||
Patch1: perl-MooseX-Role-Parameterized-old_Test_More.patch
|
||||
Url: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(CPAN::Meta::Check) >= 0.011
|
||||
BuildRequires: perl(CPAN::Meta::Requirements)
|
||||
BuildRequires: perl(Module::Build::Tiny) >= 0.034
|
||||
BuildRequires: perl(Module::Metadata)
|
||||
BuildRequires: perl(Module::Runtime)
|
||||
BuildRequires: perl(Moose) >= 2.0300
|
||||
BuildRequires: perl(Moose::Exporter)
|
||||
BuildRequires: perl(Moose::Meta::Role)
|
||||
BuildRequires: perl(Moose::Role)
|
||||
BuildRequires: perl(Moose::Util)
|
||||
BuildRequires: perl(Moose::Util::TypeConstraints)
|
||||
BuildRequires: perl(Test::Fatal)
|
||||
BuildRequires: perl(Test::Moose)
|
||||
BuildRequires: perl(Test::More) >= 0.96
|
||||
#BuildRequires: perl(Bar)
|
||||
#BuildRequires: perl(Foo)
|
||||
#BuildRequires: perl(Foo::Role)
|
||||
#BuildRequires: perl(inc::Module::Install)
|
||||
#BuildRequires: perl(JSON)
|
||||
#BuildRequires: perl(LWP::Simple)
|
||||
#BuildRequires: perl(Module::Build)
|
||||
#BuildRequires: perl(Module::Install::AutoManifest)
|
||||
#BuildRequires: perl(Module::Install::Base)
|
||||
#BuildRequires: perl(Module::Install::GithubMeta)
|
||||
#BuildRequires: perl(Module::Install::ManifestSkip)
|
||||
#BuildRequires: perl(Moose::Exporter)
|
||||
#BuildRequires: perl(Moose::Meta::Role)
|
||||
#BuildRequires: perl(Moose::Role)
|
||||
#BuildRequires: perl(Moose::Util::TypeConstraints)
|
||||
#BuildRequires: perl(MooseX::Role::Parameterized)
|
||||
#BuildRequires: perl(MooseX::Role::Parameterized::Meta::Role::Parameterizable)
|
||||
#BuildRequires: perl(MooseX::Role::Parameterized::Meta::Role::Parameterized)
|
||||
#BuildRequires: perl(MooseX::Role::Parameterized::Meta::Trait::Parameterized)
|
||||
#BuildRequires: perl(MooseX::Role::Parameterized::Parameters)
|
||||
#BuildRequires: perl(MyCompositeRoleA)
|
||||
#BuildRequires: perl(MyItem::Role::Equippable)
|
||||
#BuildRequires: perl(MyItem::Role::Wearable)
|
||||
#BuildRequires: perl(MyPRole)
|
||||
#BuildRequires: perl(MyRole)
|
||||
#BuildRequires: perl(MyRole::Delegator)
|
||||
#BuildRequires: perl(MyRole::LogMethod)
|
||||
#BuildRequires: perl(MyRole::Parameterized)
|
||||
#BuildRequires: perl(MyRole::Sans::Block)
|
||||
#BuildRequires: perl(MyRole::Storage)
|
||||
#BuildRequires: perl(MyTrait)
|
||||
#BuildRequires: perl(OtherRole)
|
||||
#BuildRequires: perl(Parse::CPAN::Meta)
|
||||
#BuildRequires: perl(P::Role)
|
||||
#BuildRequires: perl(Test::Consumer)
|
||||
#BuildRequires: perl(YAML::Tiny)
|
||||
BuildRequires: perl(Test::Needs)
|
||||
BuildRequires: perl(namespace::autoclean)
|
||||
BuildRequires: perl(namespace::clean) >= 0.19
|
||||
Requires: perl(Module::Runtime)
|
||||
Requires: perl(Moose) >= 2.0300
|
||||
Requires: perl(Moose::Exporter)
|
||||
Requires: perl(Moose::Meta::Role)
|
||||
Requires: perl(Moose::Role)
|
||||
Requires: perl(Moose::Util)
|
||||
Requires: perl(namespace::autoclean)
|
||||
Requires: perl(namespace::clean) >= 0.19
|
||||
%{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.
|
||||
Parameters are declared using the parameter keyword which very much
|
||||
resembles Moose/has. You can use any option that Moose/has 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 Moose/with. 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.
|
||||
The 'role' block then uses the usual Moose::Role 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.
|
||||
See MooseX::Role::Parameterized::Extending 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}
|
||||
perl Build.PL --installdirs=vendor
|
||||
./Build build --flags=%{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
./Build test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
./Build install --destdir=%{buildroot} --create_packlist=0
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes
|
||||
%doc Changes CONTRIBUTING README
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user