commit 19c95c7f14a8627eab5ab9db96ff4302601778fe Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Fri Apr 18 09:24:29 2014 +0200 0.27 bump .gitignore | 1 + perl-MooseX-App-Cmd.spec | 120 +++++++++++++++++++++++++++++++++------------- sources | 2 +- 3 files changed, 89 insertions(+), 34 deletions(-) --- diff --git a/.gitignore b/.gitignore index 0f075b8..41c9e4d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ MooseX-App-Cmd-0.06.tar.gz /MooseX-App-Cmd-0.07.tar.gz /MooseX-App-Cmd-0.09.tar.gz +/MooseX-App-Cmd-0.27.tar.gz diff --git a/perl-MooseX-App-Cmd.spec b/perl-MooseX-App-Cmd.spec index 0e42af3..039f7af 100644 --- a/perl-MooseX-App-Cmd.spec +++ b/perl-MooseX-App-Cmd.spec @@ -1,50 +1,82 @@ Name: perl-MooseX-App-Cmd -Version: 0.09 -Release: 7%{?dist} +Version: 0.27 +Release: 1%{?dist} # see lib/MooseX/App/Cmd.pm License: GPL+ or Artistic Group: Development/Libraries Summary: Mashes up MooseX::Getopt and App::Cmd Source: http://search.cpan.org/CPAN/authors/id/M/MJ/MJGARDNER/MooseX-App-Cmd-%{version}.tar.gz Url: http://search.cpan.org/dist/MooseX-App-Cmd -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch -BuildRequires: perl(App::Cmd) >= 0.3 +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) + +# Run-time: +BuildRequires: perl(Any::Moose) +BuildRequires: perl(App::Cmd) >= 0.321 BuildRequires: perl(App::Cmd::Command) -BuildRequires: perl(Carp) -BuildRequires: perl(Data::Dumper) BuildRequires: perl(English) -BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Basename) -BuildRequires: perl(File::Find) -BuildRequires: perl(File::Temp) BuildRequires: perl(Getopt::Long::Descriptive) >= 0.091 -BuildRequires: perl(Moose) >= 0.86 +# any_moose('::Object') BuildRequires: perl(Moose::Object) -BuildRequires: perl(MooseX::ConfigFromFile) +# any_moose('X::Getopt') BuildRequires: perl(MooseX::Getopt) >= 0.18 -BuildRequires: perl(MooseX::Has::Options) -BuildRequires: perl(MooseX::MarkAsMethods) -BuildRequires: perl(Test::More) -BuildRequires: perl(Test::Output) -BuildRequires: perl(Test::Requires) -BuildRequires: perl(Test::use::ok) -BuildRequires: perl(YAML) +BuildRequires: perl(Mouse) +BuildRequires: perl(namespace::clean) + +# Tests: BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(Data::Dumper) +# File::Copy not used +BuildRequires: perl(File::Spec) +BuildRequires: perl(IPC::Open3) +BuildRequires: perl(IO::Handle) +# File::Temp not used +# FindBin not used +BuildRequires: perl(lib) +BuildRequires: perl(Moose) >= 0.86 +# Both any_moose('X::Getopt') exercised by t/00-compile.t +BuildRequires: perl(MouseX::Getopt) +# Pod::Coverage::TrustPod not used +# Test::EOL not used +# Test::Kwalitee 1.12 not used +# Test::CPAN::Changes 0.19 not used +# Test::CPAN::Meta not used +BuildRequires: perl(Test::More) >= 0.94 +# Test::NoTabs not used +# Test::Pod 1.41 not used +# Test::Pod::Coverage 1.08 not used +# Test::use::ok not used +BuildRequires: perl(YAML) -# we don't pick up Moose keywords automagically yet -Requires: perl(App::Cmd) >= 0.3 -Requires: perl(App::Cmd::Command) -Requires: perl(MooseX::Getopt) >= 0.18 -Requires: perl(MooseX::ConfigFromFile) +# Optional tests: +# MouseX::ConfigFromFile not yet packaged +## any_moose('X::ConfigFromFile') +#BuildRequires: perl(MouseX::ConfigFromFile) >= 0.08 +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Test::Output) -Requires: perl(Moose) >= 0.86 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +# we don't pick up Moose keywords automagically yet +Requires: perl(App::Cmd) >= 0.321 +Requires: perl(App::Cmd::Command) +Requires: perl(Getopt::Long::Descriptive) >= 0.091 +# any_moose('::Object') +Requires: perl(Moose::Object) +# any_moose('X::Getopt') +Requires: perl(MooseX::Getopt) >= 0.18 %{?perl_default_filter} +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Getopt::Long::Descriptive\\)$ + %description -This module marries App::Cmd with MooseX::Getopt. +This package marries App::Cmd with MooseX::Getopt. Use it like the App::Cmd manpage advises (especially see the App::Cmd::Tutorial manpage), swapping App::Cmd::Command for @@ -54,13 +86,28 @@ Then you can write your commands as Moose classes, with the MooseX::Getopt defining the options for you instead of 'opt_spec' returning a Getopt::Long::Descriptive spec. + +%package -n perl-MouseX-App-Cmd +Summary: Mashes up MouseX::Getopt and App::Cmd +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +# we don't pick up Moose keywords automagically yet +Requires: perl(MooseX::App::Cmd) +Requires: perl(MooseX::App::Cmd::Command) +# any_moose('::Object') +Requires: perl(Mouse::Object) +# any_moose('X::Getopt') +Requires: perl(MouseX::Getopt) + +%description -n perl-MouseX-App-Cmd +This package marries App::Cmd with MouseX::Getopt. + +It extends MooseX::App::Cmd which uses Any::Moose to work with either +Moose or Mouse. + + %prep %setup -q -n MooseX-App-Cmd-%{version} -# silence rpmlint warnings -sed -i '1s|^#!perl|#!%{__perl}|' t/*.t -find -type f -print0 | xargs -0 chmod -x - %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} @@ -68,18 +115,25 @@ make %{?_smp_mflags} %install make pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' - %{_fixperms} %{buildroot}/* %check make test %files -%doc Changes LICENSE README TODO t/ -%{perl_vendorlib}/* -%{_mandir}/man3/*.3* +%doc Changes LICENSE README TODO +%{perl_vendorlib}/MooseX +%{_mandir}/man3/MooseX::*.3* + +%files -n perl-MouseX-App-Cmd +%doc LICENSE +%{perl_vendorlib}/MouseX +%{_mandir}/man3/MouseX::*.3* %changelog +* Thu Apr 17 2014 Petr Pisar <ppisar@xxxxxxxxxx> - 0.27-1 +- 0.27 bump (bug #1088741) + * Sun Aug 04 2013 Petr Pisar <ppisar@xxxxxxxxxx> - 0.09-7 - Perl 5.18 rebuild diff --git a/sources b/sources index 04b74a0..1d5e12e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -18c8c92ca2c86b6b6a1939ea7f3a9199 MooseX-App-Cmd-0.09.tar.gz +a11b9e87a62d1067b422f380c648973f MooseX-App-Cmd-0.27.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