forked from pool/perl-MooseX-Types-LoadableClass
update
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-MooseX-Types-LoadableClass?expand=0&rev=11
This commit is contained in:
committed by
Git OBS Bridge
parent
102daf3f7d
commit
1a89f48eb7
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d4b4af473cefd3836fd7bbb7b68168792539cc68b9c9f7240fb5bd77246dfb65
|
||||
size 21341
|
3
MooseX-Types-LoadableClass-0.012.tar.gz
Normal file
3
MooseX-Types-LoadableClass-0.012.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a1d2b186c2b69f416bb0c9271dc8692c2287c2f6ce144cc3b9b2c922427060df
|
||||
size 20629
|
@@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 26 07:35:16 UTC 2013 - coolo@suse.com
|
||||
|
||||
- updated to 0.012
|
||||
- re-release with fixed encoding in metadata, support files
|
||||
- only try to load the class if it's a valid module name (ilmari)
|
||||
- avoid trying to load the class if already loaded (minor optimization)
|
||||
- repository moved to the github moose organization
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 27 11:58:35 UTC 2013 - coolo@suse.com
|
||||
|
||||
|
@@ -17,7 +17,7 @@
|
||||
|
||||
|
||||
Name: perl-MooseX-Types-LoadableClass
|
||||
Version: 0.009
|
||||
Version: 0.012
|
||||
Release: 0
|
||||
%define cpan_name MooseX-Types-LoadableClass
|
||||
Summary: ClassName type constraint with coercion to load the class.
|
||||
@@ -29,36 +29,34 @@ BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Class::Load) >= 0.06
|
||||
BuildRequires: perl(Class::Load)
|
||||
BuildRequires: perl(Module::Build::Tiny) >= 0.030
|
||||
BuildRequires: perl(Module::Runtime)
|
||||
BuildRequires: perl(Moose)
|
||||
BuildRequires: perl(MooseX::Types) >= 0.22
|
||||
BuildRequires: perl(Test::More) >= 0.88
|
||||
BuildRequires: perl(namespace::clean)
|
||||
#BuildRequires: perl(inc::Module::Install)
|
||||
#BuildRequires: perl(JSON)
|
||||
#BuildRequires: perl(LWP::Simple)
|
||||
#BuildRequires: perl(Module::Build)
|
||||
#BuildRequires: perl(Module::Install::AuthorRequires)
|
||||
#BuildRequires: perl(Module::Install::AuthorTests)
|
||||
#BuildRequires: perl(Module::Install::Base)
|
||||
#BuildRequires: perl(Moose::Role)
|
||||
#BuildRequires: perl(Moose::Util::TypeConstraints)
|
||||
BuildRequires: perl(Moose::Role)
|
||||
BuildRequires: perl(Moose::Util::TypeConstraints)
|
||||
BuildRequires: perl(MooseX::Types)
|
||||
BuildRequires: perl(MooseX::Types::Moose)
|
||||
BuildRequires: perl(Test::Fatal)
|
||||
BuildRequires: perl(namespace::autoclean)
|
||||
#BuildRequires: perl(MooseX::Types::LoadableClass)
|
||||
#BuildRequires: perl(MooseX::Types::Moose)
|
||||
#BuildRequires: perl(Parse::CPAN::Meta)
|
||||
#BuildRequires: perl(Test::EOL)
|
||||
#BuildRequires: perl(Pod::Wordlist)
|
||||
#BuildRequires: perl(Test::Kwalitee)
|
||||
#BuildRequires: perl(Test::NoTabs)
|
||||
#BuildRequires: perl(YAML::Tiny)
|
||||
Requires: perl(Class::Load) >= 0.06
|
||||
Requires: perl(MooseX::Types) >= 0.22
|
||||
Requires: perl(namespace::clean)
|
||||
#BuildRequires: perl(Test::Spelling) >= 0.12
|
||||
Requires: perl(Class::Load)
|
||||
Requires: perl(Module::Runtime)
|
||||
Requires: perl(Moose::Util::TypeConstraints)
|
||||
Requires: perl(MooseX::Types)
|
||||
Requires: perl(MooseX::Types::Moose)
|
||||
Requires: perl(namespace::autoclean)
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
use Moose::Util::TypeConstraints;
|
||||
|
||||
my $tc = subtype as ClassName;
|
||||
coerce $tc, from Str, via { Class::MOP::load_class($_); $_ };
|
||||
coerce $tc, from Str, via { Class::Load::load_class($_); $_ };
|
||||
|
||||
I've written those three lines of code quite a lot of times, in quite a lot
|
||||
of places.
|
||||
@@ -69,19 +67,18 @@ Now I don't have to.
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%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 README
|
||||
%doc Changes CONTRIBUTING LICENSE README weaver.ini
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user