forked from pool/perl-Class-Method-Modifiers
update
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Class-Method-Modifiers?expand=0&rev=15
This commit is contained in:
committed by
Git OBS Bridge
parent
36085b6e24
commit
72b942741c
@@ -17,10 +17,10 @@
|
||||
|
||||
|
||||
Name: perl-Class-Method-Modifiers
|
||||
Version: 2.04
|
||||
Version: 2.07
|
||||
Release: 0
|
||||
%define cpan_name Class-Method-Modifiers
|
||||
Summary: Provides Moose-like method modifiers
|
||||
Summary: provides Moose-like method modifiers
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Class-Method-Modifiers/
|
||||
@@ -29,20 +29,15 @@ BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Module::Build::Tiny) >= 0.027
|
||||
BuildRequires: perl(Test::CheckDeps) >= 0.007
|
||||
BuildRequires: perl(Test::Fatal)
|
||||
#BuildRequires: perl(App::pod2pdf)
|
||||
BuildRequires: perl(Test::More) >= 0.94
|
||||
#BuildRequires: perl(Class::Method::Modifiers)
|
||||
#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::AutoLicense)
|
||||
#BuildRequires: perl(Module::Install::Base)
|
||||
#BuildRequires: perl(Module::Install::GithubMeta)
|
||||
#BuildRequires: perl(Module::Install::ReadmeFromPod)
|
||||
#BuildRequires: perl(Parse::CPAN::Meta)
|
||||
#BuildRequires: perl(YAML::Tiny)
|
||||
#BuildRequires: perl(Pod::Wordlist)
|
||||
#BuildRequires: perl(Test::Kwalitee)
|
||||
#BuildRequires: perl(Test::NoTabs)
|
||||
#BuildRequires: perl(Test::Spelling) >= 0.12
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
@@ -69,7 +64,8 @@ plugins modify those methods to flesh out the specifics.
|
||||
|
||||
Parent classes need not know about 'Class::Method::Modifiers'. This means
|
||||
you should be able to modify methods in _any_ subclass. See the
|
||||
Term::VT102::ZeroBased manpage for an example of subclassing with CMM.
|
||||
Term::VT102::ZeroBased manpage for an example of subclassing with
|
||||
'ClasS::Method::Modifiers'.
|
||||
|
||||
In short, 'Class::Method::Modifiers' solves the problem of making sure you
|
||||
call '$self->SUPER::foo(@_)', and provides a cleaner interface for it.
|
||||
@@ -86,15 +82,14 @@ manpage distribution.
|
||||
find . -type f -print0 | xargs -0 chmod 644
|
||||
|
||||
%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
|
||||
|
Reference in New Issue
Block a user