File perl-MooseX-App-Cmd.spec of Package perl-MooseX-App-Cmd
#
# spec file for package perl-MooseX-App-Cmd
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-MooseX-App-Cmd
Version: 0.27
Release: 0
%define cpan_name MooseX-App-Cmd
Summary: Mashes up MooseX::Getopt and App::Cmd
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/MooseX-App-Cmd/
Source: http://www.cpan.org/authors/id/M/MJ/MJGARDNER/%{cpan_name}-%{version}.tar.gz
Patch0: 61f086b1fe03fab5a96a999f7b21768504d7089c.patch
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Any::Moose)
BuildRequires: perl(App::Cmd) >= 0.321
BuildRequires: perl(App::Cmd::Command)
BuildRequires: perl(Getopt::Long::Descriptive) >= 0.091
BuildRequires: perl(MouseX::Getopt)
BuildRequires: perl(Test::More) >= 0.94
BuildRequires: perl(Test::Output)
BuildRequires: perl(Test::use::ok)
BuildRequires: perl(YAML)
BuildRequires: perl(namespace::clean)
Requires: perl(Any::Moose)
Requires: perl(App::Cmd) >= 0.321
Requires: perl(App::Cmd::Command)
Requires: perl(Getopt::Long::Descriptive) >= 0.091
Requires: perl(MouseX::Getopt)
Requires: perl(Test::use::ok)
Requires: perl(namespace::clean)
Recommends: perl(Moose) >= 0.86
Recommends: perl(MooseX::ConfigFromFile) >= 0.08
Recommends: perl(MooseX::Getopt) >= 0.18
Recommends: perl(MouseX::ConfigFromFile)
%{perl_requires}
%description
This module marries App::Cmd with MooseX::Getopt.
Use it like App::Cmd advises (especially see App::Cmd::Tutorial), swapping
App::Cmd::Command for MooseX::App::Cmd::Command.
Then you can write your moose commands as Moose classes, with
MooseX::Getopt defining the options for you instead of 'opt_spec' returning
a Getopt::Long::Descriptive spec.
%prep
%setup -q -n %{cpan_name}-%{version}
%patch0 -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes LICENSE perlcritic.rc README TODO weaver.ini
%changelog