8
0
forked from pool/perl-App-CLI

- update to 0.313

* doc update
  * new cascading attribute for subcommands. thanks to @shelling++.
  * New Feature: Cascading Subcommand
  * Deprecated Feature: Long Option Subcommand (still work)
  * Abundant DOCs
  * Fix the command pattern used in help.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-App-CLI?expand=0&rev=17
This commit is contained in:
Stephan Kulow
2011-03-14 16:29:44 +00:00
committed by Git OBS Bridge
parent 7ec44a8acb
commit cd375bbfbe
4 changed files with 40 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
#
# spec file for package perl-App-CLI (Version 0.08)
# spec file for package perl-App-CLI (Version 0.313)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
@@ -15,30 +15,41 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-App-CLI
Version: 0.08
Release: 7
Version: 0.313
Release: 1
License: GPL+ or Artistic
%define cpan_name App-CLI
Summary: Dispatcher module for command line interface programs
Url: http://search.cpan.org/dist/App-CLI/
Group: Development/Libraries/Perl
#Source: http://www.cpan.org/modules/by-module/App/App-CLI-%{version}.tar.gz
#Source: http://www.cpan.org/authors/id/C/CO/CORNELIUS/App-CLI-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
BuildRequires: perl
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildArch: noarch
BuildRequires: perl-macros
BuildRequires: perl(Getopt::Long) >= 2.35
Requires: perl(Getopt::Long) >= 2.35
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{perl_requires}
%description
App::CLI dispatches CLI (command line interface) based commands into
'App::CLI' dispatches CLI (command line interface) based commands into
command classes. It also supports subcommand and per-command options.
get_opt([@config], %opt_map)
give options map, process by Getopt::Long::Parser
interface of dispatcher
cmd_map($cmd)
find package name of subcommand in constant %alias
if it's finded, return ucfirst of the package name,
otherwise, return ucfirst of $cmd itself.
get_cmd($cmd, @arg)
return subcommand of first level via $ARGV[0]
%prep
%setup -q -n %{cpan_name}-%{version}
@@ -51,18 +62,14 @@ command classes. It also supports subcommand and per-command options.
%install
%perl_make_install
# do not perl_process_packlist (noarch)
# remove .packlist file
%{__rm} -rf %{buildroot}%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf %{buildroot}%perl_archlib
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes
%defattr(644,root,root,755)
%doc Changes MANIFEST.bak
%changelog