@ -1,15 +1,19 @@
Name: perl-MooseX-Role-Parameterized
Summary: Make your roles flexible through parameterization
Version: 1.10
Release: 8 %{?dist}
Version: 1.11
Release: 1 %{?dist}
License: GPL+ or Artistic
URL: https://metacpan.org/release/MooseX-Role-Parameterized
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/MooseX-Role-Parameterized-%{version}.tar.gz
Source0: https://cpan.metacpan.org/modules/by-module/MooseX/MooseX-Role-Parameterized-%{version}.tar.gz
BuildArch: noarch
# Module Build
BuildRequires: perl-interpreter
BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(Module::Build::Tiny) >= 0.034
BuildRequires: sed
# Module Runtime
BuildRequires: perl(Carp)
BuildRequires: perl(Module::Runtime)
@ -19,24 +23,26 @@ BuildRequires: perl(Moose::Meta::Role)
BuildRequires: perl(Moose::Role)
BuildRequires: perl(Moose::Util)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(namespace::clean)
BuildRequires: perl(namespace::clean) >= 0.19
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Test Suite
BuildRequires: perl(CPAN::Meta) >= 2.120900
BuildRequires: perl(CPAN::Meta::Check) >= 0.007
BuildRequires: perl(CPAN::Meta::Check) >= 0.011
BuildRequires: perl(CPAN::Meta::Requirements)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(File::Spec)
BuildRequires: perl(lib)
BuildRequires: perl(Module::Metadata)
BuildRequires: perl(Moose::Util::TypeConstraints)
BuildRequires: perl(MooseX::Role::WithOverloading)
BuildRequires: perl(overload)
BuildRequires: perl(Storable)
BuildRequires: perl(strict)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Moose)
BuildRequires: perl(Test::More) >= 0.96
BuildRequires: perl(Test::Requires)
BuildRequires: perl(warnings)
BuildRequires: perl(Test::Needs)
# Optional Test Dependencies
BuildRequires: perl(CPAN::Meta) >= 2.120900
BuildRequires: perl(MooseX::Role::WithOverloading)
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(Moose) >= 2.0300
@ -67,13 +73,13 @@ Parameterized roles offer exactly this solution.
sed -i -e '1s,#!.*perl,,' t/*.t
%build
PERL_MM_FALLBACK_SILENCE_WARNING=1 perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
PERL_MM_FALLBACK_SILENCE_WARNING=1 perl Makefile.PL \
INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
%{_fixperms} %{buildroot}
%{make_install}
%{_fixperms} -c %{buildroot}
%check
make test
@ -85,6 +91,13 @@ make test
%{_mandir}/man3/MooseX*
%changelog
* Tue Jul 16 2019 Paul Howarth <paul@city-fan.org> - 1.11-1
- Update to 1.11
- Remove MooseX::Role::WithOverloading from test dependencies
(CPAN RT#130075)
- Specify all build dependencies
- Modernize spec using %%{make_build} and %%{make_install}
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.10-8
- Perl 5.30 rebuild