commit edc7606baa53a81c29783becb153d684e04611d9 Author: Paul Howarth <paul@xxxxxxxxxxxx> Date: Fri Apr 18 19:02:43 2014 +0100 Initial import (perl-MouseX-Types-Path-Class-0.07-2) MouseX::Types::Path::Class creates common Mouse types, coercions and option specifications useful for dealing with Path::Class objects as Mouse attributes. Coercions (see Mouse::Util::TypeConstraints) are made from both Str and ArrayRef to both Path::Class::Dir and Path::Class::File objects. If you have MouseX::Getopt installed, the Getopt option type ("=s") will be added for both Path::Class::Dir and Path::Class::File. .gitignore | 1 + perl-MouseX-Types-Path-Class.spec | 92 +++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 94 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..7879128 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/MouseX-Types-Path-Class-[0-9.]*.tar.gz diff --git a/perl-MouseX-Types-Path-Class.spec b/perl-MouseX-Types-Path-Class.spec new file mode 100644 index 0000000..b91aa69 --- /dev/null +++ b/perl-MouseX-Types-Path-Class.spec @@ -0,0 +1,92 @@ +Name: perl-MouseX-Types-Path-Class +Summary: A Path::Class type library for Mouse +Version: 0.07 +Release: 2%{?dist} +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/MouseX-Types-Path-Class/ +Source0: http://search.cpan.org/CPAN/authors/id/M/MA/MASAKI/MouseX-Types-Path-Class-%{version}.tar.gz +BuildArch: noarch +# Module Build +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.59 +BuildRequires: perl(inc::Module::Install) +BuildRequires: perl(Module::Install::AuthorTests) +BuildRequires: perl(Module::Install::ReadmeFromPod) +BuildRequires: perl(Module::Install::ReadmeMarkdownFromPod) +BuildRequires: perl(Module::Install::Repository) +# Module Runtime +BuildRequires: perl(Mouse) >= 0.39 +BuildRequires: perl(MouseX::Types) >= 0.02 +BuildRequires: perl(MouseX::Types::Mouse) +BuildRequires: perl(Path::Class) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Optional Functionality +BuildRequires: perl(MouseX::Getopt) >= 0.22 +# Test Suite +BuildRequires: perl(Test::More) >= 0.94 +BuildRequires: perl(Test::UseAllModules) +# Author Tests +BuildRequires: perl(Test::Pod) >= 1.00 +BuildRequires: perl(Test::Pod::Coverage) >= 1.04 +BuildRequires: perl(Test::Spelling), aspell-en +# Runtime +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Mouse) >= 0.39 +Requires: perl(MouseX::Getopt) >= 0.22 +Requires: perl(MouseX::Types) >= 0.02 + +# Filter under-specified dependencies +%global __requires_exclude ^perl\\(MouseX::Types\\)$ + +%description +MouseX::Types::Path::Class creates common Mouse types, coercions and option +specifications useful for dealing with Path::Class objects as Mouse attributes. + +Coercions (see Mouse::Util::TypeConstraints) are made from both Str and +ArrayRef to both Path::Class::Dir and Path::Class::File objects. If you have +MouseX::Getopt installed, the Getopt option type ("=s") will be added for both +Path::Class::Dir and Path::Class::File. + +%prep +%setup -q -n MouseX-Types-Path-Class-%{version} + +# Unbundle inc::Module::Install; we'll use the system version instead +rm -rf inc/ +perl -ni -e 'print unless /^inc\//;' MANIFEST + +# Avoid the need for Module::Install::AuthorRequires and +# all of upstream's toolchain modules as a result of the unbundling +perl -ni -e 'print unless /author_requires/;' Makefile.PL + +# F19's dictionary doesn't have coercions +echo coercions >> xt/03_podspell.t + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +%{_fixperms} %{buildroot} + +%check +make test TEST_POD=1 + +%files +%doc Changes README +%{perl_vendorlib}/MouseX/ +%{_mandir}/man3/MouseX::Types::Path::Class.3* + +%changelog +* Fri Apr 18 2014 Paul Howarth <paul@xxxxxxxxxxxx> - 0.07-2 +- Incorporate feedback from package review (#1088931) + - Bump MouseX::Getopt version requirement to 0.22 + - Add versioned runtime dependencies on Mouse and MouseX::Types + - Actually unbundle inc::Module::Install instead of just claiming to +- Include author test build requirements + +* Thu Apr 17 2014 Paul Howarth <paul@xxxxxxxxxxxx> - 0.07-1 +- Initial RPM version diff --git a/sources b/sources index e69de29..f6e1980 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +49c15495a78e0b5ad9146b9c632969bd MouseX-Types-Path-Class-0.07.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel