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:
committed by
Git OBS Bridge
parent
7ec44a8acb
commit
cd375bbfbe
@@ -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
3
App-CLI-0.313.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:14bb221587cc933facc22cf0a6508a8f20fac573403f98d7e0f20acb908ea06f
|
||||
size 27425
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user