# # spec file for package perl-MouseX-App-Cmd # # Copyright (c) 2024 SUSE LLC # # 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 https://bugs.opensuse.org/ # %define cpan_name MouseX-App-Cmd Name: perl-MouseX-App-Cmd Version: 0.300.0 Release: 0 # 0.30 -> normalize -> 0.300.0 %define cpan_version 0.30 License: Artistic-1.0 OR GPL-1.0-or-later Summary: Mashes up MouseX::Getopt and App::Cmd URL: https://metacpan.org/release/%{cpan_name} Source0: MouseX-App-Cmd-0.30.tar.gz Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(App::Cmd) >= 0.321 BuildRequires: perl(App::Cmd::Command) BuildRequires: perl(Getopt::Long::Descriptive) >= 0.091 BuildRequires: perl(Mouse) BuildRequires: perl(Mouse::Object) BuildRequires: perl(MouseX::Getopt) BuildRequires: perl(Test::Output) BuildRequires: perl(YAML) BuildRequires: perl(namespace::autoclean) Requires: perl(App::Cmd) >= 0.321 Requires: perl(App::Cmd::Command) Requires: perl(Getopt::Long::Descriptive) >= 0.091 Requires: perl(Mouse) Requires: perl(Mouse::Object) Requires: perl(MouseX::Getopt) Requires: perl(namespace::autoclean) Provides: perl(MouseX::App::Cmd) = %{version} Provides: perl(MouseX::App::Cmd::Command) = %{version} %undefine __perllib_provides %{perl_requires} %description This module marries App::Cmd with MouseX::Getopt. Use it like App::Cmd advises (especially see App::Cmd::Tutorial), swapping App::Cmd::Command for MouseX::App::Cmd::Command. Then you can write your moose commands as Mouse classes, with MouseX::Getopt defining the options for you instead of 'opt_spec' returning a Getopt::Long::Descriptive spec. %prep %autosetup -n %{cpan_name}-%{cpan_version} %build perl Makefile.PL INSTALLDIRS=vendor %make_build %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %doc Changes CONTRIBUTING README TODO %license LICENSE %changelog