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,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:61a00fcfccceec3cd587bdb5e45f851b0b64df2ef4534dfa4495f2a36508328c
size 22186

3
App-CLI-0.313.tar.bz2 Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:14bb221587cc933facc22cf0a6508a8f20fac573403f98d7e0f20acb908ea06f
size 27425

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Mon Mar 14 16:26:46 UTC 2011 - coolo@novell.com
- 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.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Dec 1 13:30:40 UTC 2010 - coolo@novell.com Wed Dec 1 13:30:40 UTC 2010 - coolo@novell.com

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. # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
@@ -15,30 +15,41 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
Name: perl-App-CLI Name: perl-App-CLI
Version: 0.08 Version: 0.313
Release: 7 Release: 1
License: GPL+ or Artistic License: GPL+ or Artistic
%define cpan_name App-CLI %define cpan_name App-CLI
Summary: Dispatcher module for command line interface programs Summary: Dispatcher module for command line interface programs
Url: http://search.cpan.org/dist/App-CLI/ Url: http://search.cpan.org/dist/App-CLI/
Group: Development/Libraries/Perl 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 Source: %{cpan_name}-%{version}.tar.bz2
BuildRequires: perl BuildRequires: perl
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildArch: noarch
BuildRequires: perl-macros BuildRequires: perl-macros
BuildRequires: perl(Getopt::Long) >= 2.35 BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: perl(Getopt::Long) >= 2.35 BuildArch: noarch
%{perl_requires}
%description %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. 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 %prep
%setup -q -n %{cpan_name}-%{version} %setup -q -n %{cpan_name}-%{version}
@@ -51,18 +62,14 @@ command classes. It also supports subcommand and per-command options.
%install %install
%perl_make_install %perl_make_install
# do not perl_process_packlist (noarch) %perl_process_packlist
# remove .packlist file
%{__rm} -rf %{buildroot}%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf %{buildroot}%perl_archlib
%perl_gen_filelist %perl_gen_filelist
%clean %clean
%{__rm} -rf %{buildroot} %{__rm} -rf %{buildroot}
%files -f %{name}.files %files -f %{name}.files
%defattr(-,root,root,-) %defattr(644,root,root,755)
%doc Changes %doc Changes MANIFEST.bak
%changelog %changelog