2010-12-29 23:58:33 +00:00
|
|
|
# vim: set sw=4 ts=4 et nu:
|
|
|
|
|
|
|
|
Name: perl-App-Cmd
|
|
|
|
Version: 0.310
|
|
|
|
Release: 0
|
|
|
|
Summary: Write command line apps with less suffering
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/App-Cmd-%{version}.tar.gz
|
|
|
|
URL: http://search.cpan.org/dist/App-Cmd
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
License: Perl License
|
|
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
|
|
%{perl_requires}
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: make
|
2010-12-30 00:03:21 +00:00
|
|
|
%if 0%{?suse_version} >= 1120
|
2010-12-29 23:58:33 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
2010-12-30 00:04:23 +00:00
|
|
|
BuildRequires: perl(Test::Fatal)
|
2010-12-30 00:03:21 +00:00
|
|
|
%endif
|
2010-12-29 23:58:33 +00:00
|
|
|
BuildRequires: perl(Data::Dumper)
|
|
|
|
BuildRequires: perl(constant)
|
2010-12-30 00:09:10 +00:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
2010-12-29 23:58:33 +00:00
|
|
|
BuildRequires: perl(Text::Abbrev)
|
|
|
|
BuildRequires: perl(Class::Load) >= 0.06
|
|
|
|
BuildRequires: perl(Sub::Exporter)
|
|
|
|
BuildRequires: perl(String::RewritePrefix)
|
|
|
|
BuildRequires: perl(IO::TieCombine)
|
|
|
|
BuildRequires: perl(Data::OptList)
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
BuildRequires: perl(Sub::Exporter::Util)
|
|
|
|
BuildRequires: perl(Sub::Install)
|
|
|
|
BuildRequires: perl(File::Basename)
|
|
|
|
BuildRequires: perl(Getopt::Long::Descriptive) >= 0.084
|
|
|
|
BuildRequires: perl(Module::Pluggable::Object)
|
|
|
|
Requires: perl(Text::Abbrev)
|
|
|
|
Requires: perl(Class::Load) >= 0.06
|
|
|
|
Requires: perl(Sub::Exporter)
|
|
|
|
Requires: perl(String::RewritePrefix)
|
|
|
|
Requires: perl(IO::TieCombine)
|
|
|
|
Requires: perl(Data::OptList)
|
|
|
|
Requires: perl(Carp)
|
|
|
|
Requires: perl(Sub::Exporter::Util)
|
|
|
|
Requires: perl(Sub::Install)
|
|
|
|
Requires: perl(File::Basename)
|
|
|
|
Requires: perl(Getopt::Long::Descriptive) >= 0.084
|
|
|
|
Requires: perl(Module::Pluggable::Object)
|
|
|
|
|
|
|
|
%description
|
|
|
|
App::Cmd is intended to make it easy to write complex command-line
|
|
|
|
applications without having to think about most of the annoying things
|
|
|
|
usually involved.
|
|
|
|
For information on how to start using App::Cmd, see App::Cmd::Tutorial.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n "App-Cmd-%{version}"
|
|
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
2010-12-30 00:09:10 +00:00
|
|
|
%__sed -i 's|6.31|6.30|g' Makefile.PL
|
2010-12-29 23:58:33 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
|
2010-12-30 00:03:21 +00:00
|
|
|
%if 0%{?suse_version} >= 1120
|
2010-12-29 23:58:33 +00:00
|
|
|
%check
|
|
|
|
%__make test
|
2010-12-30 00:03:21 +00:00
|
|
|
%endif
|
2010-12-29 23:58:33 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Changes LICENSE README
|
|
|
|
%dir %{perl_vendorlib}/App
|
|
|
|
%{perl_vendorlib}/App/Cmd.pm
|
|
|
|
%{perl_vendorlib}/App/Cmd
|
|
|
|
%dir %{perl_vendorarch}/auto/App
|
|
|
|
%{perl_vendorarch}/auto/App/Cmd
|
|
|
|
%doc %{perl_man3dir}/App::Cmd.%{perl_man3ext}%{ext_man}
|
|
|
|
%doc %{perl_man3dir}/App::Cmd::*.%{perl_man3ext}%{ext_man}
|
|
|
|
|