diff --git a/.gitignore b/.gitignore index f45c278..946d330 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1 @@ -MooseX-Types-0.22.tar.gz -/MooseX-Types-0.25.tar.gz -/MooseX-Types-0.27.tar.gz -/MooseX-Types-0.30.tar.gz -/MooseX-Types-0.31.tar.gz -/MooseX-Types-0.35.tar.gz +/MooseX-Types-[0-9.]*.tar.gz diff --git a/perl-MooseX-Types.spec b/perl-MooseX-Types.spec index 2a6653e..3a2358f 100644 --- a/perl-MooseX-Types.spec +++ b/perl-MooseX-Types.spec @@ -1,34 +1,47 @@ -Name: perl-MooseX-Types -Version: 0.35 -Release: 7%{?dist} -# see Makefile.PL, lib/MooseX/Types.pm -License: GPL+ or Artistic -Group: Development/Libraries -Summary: Organize your Moose types in libraries -Source: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/MooseX-Types-%{version}.tar.gz -Url: http://search.cpan.org/dist/MooseX-Types -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) -BuildArch: noarch - -BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42 -BuildRequires: perl(Carp) -BuildRequires: perl(Carp::Clan) >= 6.00 -BuildRequires: perl(FindBin) -BuildRequires: perl(Moose) >= 1.06 -BuildRequires: perl(namespace::clean) >= 0.19 -BuildRequires: perl(Sub::Install) >= 0.924 -# tests -BuildRequires: perl(Test::More) >= 0.88 -BuildRequires: perl(Test::Fatal) -BuildRequires: perl(Test::Requires) -BuildRequires: perl(Sub::Exporter) -# for M::I -BuildRequires: perl(CPAN) - -BuildRequires: perl(Test::Moose) +Name: perl-MooseX-Types +Version: 0.44 +Release: 1%{?dist} +License: GPL+ or Artistic +Group: Development/Libraries +Summary: Organize your Moose types in libraries +Source0: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/MooseX-Types-%{version}.tar.gz +Url: http://search.cpan.org/dist/MooseX-Types +BuildArch: noarch +# Module Build +BuildRequires: perl +BuildRequires: perl(Module::Build::Tiny) >= 0.035 +# Module Runtime +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(Carp::Clan) >= 6.00 +BuildRequires: perl(Exporter) +BuildRequires: perl(Module::Runtime) +BuildRequires: perl(Moose) >= 1.06 +BuildRequires: perl(Moose::Exporter) +BuildRequires: perl(Moose::Meta::TypeConstraint::Union) +BuildRequires: perl(Moose::Util::TypeConstraints) +BuildRequires: perl(namespace::autoclean) >= 0.08 +BuildRequires: perl(namespace::clean) +BuildRequires: perl(overload) BuildRequires: perl(Scalar::Util) >= 1.19 +BuildRequires: perl(strict) +BuildRequires: perl(Sub::Exporter) BuildRequires: perl(Sub::Name) - +BuildRequires: perl(warnings) +# Test Suite +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(if) +BuildRequires: perl(lib) +BuildRequires: perl(List::Util) +BuildRequires: perl(Moose::Role) +BuildRequires: perl(Test::Fatal) +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(Test::Requires) +BuildRequires: perl(Test::Moose) +BuildRequires: perl(version) +# Runtime +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %{?perl_default_filter} @@ -52,24 +65,39 @@ easier to use Moose types in your code. sed -i '1s,^#!.*perl,#!%{__perl},' t/*.t %build -%{__perl} Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +perl Build.PL --installdirs=vendor +./Build %install -make pure_install PERL_INSTALL_ROOT=%{buildroot} -find %{buildroot} -type f -name .packlist -exec rm -f {} ';' - -%{_fixperms} %{buildroot}/* +./Build install --destdir=%{buildroot} --create_packlist=0 %check -make test +./Build test %files -%doc Changes README t/ -%{perl_vendorlib}/* -%{_mandir}/man3/*.3* +%license LICENSE +%doc Changes CONTRIBUTING README README.md t/ +%{perl_vendorlib}/MooseX/ +%{_mandir}/man3/MooseX::Types.3* +%{_mandir}/man3/MooseX::Types::Base.3* +%{_mandir}/man3/MooseX::Types::CheckedUtilExports.3* +%{_mandir}/man3/MooseX::Types::Combine.3* +%{_mandir}/man3/MooseX::Types::Moose.3* +%{_mandir}/man3/MooseX::Types::TypeDecorator.3* +%{_mandir}/man3/MooseX::Types::UndefinedType.3* +%{_mandir}/man3/MooseX::Types::Util.3* +%{_mandir}/man3/MooseX::Types::Wrapper.3* %changelog +* Fri Aug 1 2014 Paul Howarth - 0.44-1 +- Update to 0.44 + - Namespace improvements + - Avoid use of deprecated Moose functionality +- Switch to Module::Build::Tiny flow +- Use %%license +- Classify buildreqs by usage +- Make %%files list more explicit + * Sat Jun 07 2014 Fedora Release Engineering - 0.35-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild diff --git a/sources b/sources index 0b94d88..2e2dc6f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -dff0152c0f89802fad5badffd3b465ec MooseX-Types-0.35.tar.gz +1cd415f6773a0a426e0be068a6c237b7 MooseX-Types-0.44.tar.gz