2011-04-06 12:10:16 +00:00
|
|
|
#
|
2011-11-19 20:26:34 +00:00
|
|
|
# spec file for package perl-App-Cmd
|
2011-04-06 12:10:16 +00:00
|
|
|
#
|
2013-06-04 08:20:13 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-04-06 12:10:16 +00:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
2010-12-29 23:58:33 +00:00
|
|
|
|
2012-02-21 09:00:44 +00:00
|
|
|
|
2010-12-29 23:58:33 +00:00
|
|
|
Name: perl-App-Cmd
|
2013-06-04 08:20:13 +00:00
|
|
|
Version: 0.320
|
2011-12-21 09:23:24 +00:00
|
|
|
Release: 0
|
2011-04-06 12:10:16 +00:00
|
|
|
%define cpan_name App-Cmd
|
2013-06-04 08:20:13 +00:00
|
|
|
Summary: write command line apps with less suffering
|
2012-02-21 09:00:44 +00:00
|
|
|
License: Artistic-1.0 or GPL-1.0+
|
2010-12-29 23:58:33 +00:00
|
|
|
Group: Development/Libraries/Perl
|
2011-12-21 09:23:24 +00:00
|
|
|
Url: http://search.cpan.org/dist/App-Cmd/
|
2012-02-21 09:00:44 +00:00
|
|
|
Source: http://www.cpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz
|
2011-06-04 23:14:09 +00:00
|
|
|
Patch1: perl-App-Cmd-old_Test-More.patch
|
2011-04-06 12:10:16 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-29 23:58:33 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2012-02-21 09:00:44 +00:00
|
|
|
BuildRequires: perl(Capture::Tiny) >= 0.13
|
2010-12-29 23:58:33 +00:00
|
|
|
BuildRequires: perl(Class::Load) >= 0.06
|
|
|
|
BuildRequires: perl(Data::OptList)
|
|
|
|
BuildRequires: perl(Getopt::Long::Descriptive) >= 0.084
|
2011-04-06 12:10:16 +00:00
|
|
|
BuildRequires: perl(IO::TieCombine)
|
2012-02-21 09:00:44 +00:00
|
|
|
BuildRequires: perl(IPC::Cmd)
|
|
|
|
BuildRequires: perl(Module::Pluggable::Object)
|
2011-04-06 12:10:16 +00:00
|
|
|
BuildRequires: perl(String::RewritePrefix)
|
|
|
|
BuildRequires: perl(Sub::Exporter)
|
|
|
|
BuildRequires: perl(Sub::Exporter::Util)
|
|
|
|
BuildRequires: perl(Sub::Install)
|
|
|
|
BuildRequires: perl(Test::Fatal)
|
2012-02-21 09:00:44 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
|
|
BuildRequires: perl(parent)
|
|
|
|
#BuildRequires: perl(App::Cmd)
|
|
|
|
#BuildRequires: perl(App::Cmd::ArgProcessor)
|
|
|
|
#BuildRequires: perl(App::Cmd::Command)
|
|
|
|
#BuildRequires: perl(App::Cmd::Plugin)
|
|
|
|
#BuildRequires: perl(App::Cmd::Setup)
|
|
|
|
#BuildRequires: perl(App::Cmd::Simple)
|
|
|
|
#BuildRequires: perl(App::Cmd::Subdispatch)
|
|
|
|
#BuildRequires: perl(App::Cmd::Tester)
|
|
|
|
#BuildRequires: perl(App::Cmd::Tester::CaptureExternal)
|
|
|
|
#BuildRequires: perl(Test::BrokenCmd)
|
|
|
|
#BuildRequires: perl(Test::BrokenCmd::Command)
|
2013-06-04 08:20:13 +00:00
|
|
|
#BuildRequires: perl(Test::IgnoreCommand)
|
2012-02-21 09:00:44 +00:00
|
|
|
#BuildRequires: perl(Test::MyCmd)
|
|
|
|
#BuildRequires: perl(Test::MyCmdAbbrev)
|
|
|
|
#BuildRequires: perl(Test::MySimple)
|
2013-06-04 08:20:13 +00:00
|
|
|
#BuildRequires: perl(Test::WithCallback)
|
2012-02-21 09:00:44 +00:00
|
|
|
#BuildRequires: perl(Test::WithSetup)
|
|
|
|
#BuildRequires: perl(Test::WSNCC)
|
|
|
|
#BuildRequires: perl(Test::WSOF)
|
|
|
|
Requires: perl(Capture::Tiny) >= 0.13
|
2010-12-29 23:58:33 +00:00
|
|
|
Requires: perl(Class::Load) >= 0.06
|
|
|
|
Requires: perl(Data::OptList)
|
|
|
|
Requires: perl(Getopt::Long::Descriptive) >= 0.084
|
2011-04-06 12:10:16 +00:00
|
|
|
Requires: perl(IO::TieCombine)
|
2012-02-21 09:00:44 +00:00
|
|
|
Requires: perl(Module::Pluggable::Object)
|
2011-04-06 12:10:16 +00:00
|
|
|
Requires: perl(String::RewritePrefix)
|
|
|
|
Requires: perl(Sub::Exporter)
|
|
|
|
Requires: perl(Sub::Exporter::Util)
|
|
|
|
Requires: perl(Sub::Install)
|
2012-02-21 09:00:44 +00:00
|
|
|
Requires: perl(parent)
|
2011-04-06 12:10:16 +00:00
|
|
|
%{perl_requires}
|
2010-12-29 23:58:33 +00:00
|
|
|
|
|
|
|
%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.
|
2011-04-06 12:10:16 +00:00
|
|
|
|
|
|
|
For information on how to start using App::Cmd, see the App::Cmd::Tutorial
|
|
|
|
manpage.
|
2010-12-29 23:58:33 +00:00
|
|
|
|
|
|
|
%prep
|
2011-04-06 12:10:16 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2013-06-04 08:20:13 +00:00
|
|
|
# MANUAL
|
2011-06-04 23:14:09 +00:00
|
|
|
%if 0%{?suse_version} <= 1110
|
|
|
|
%patch1 -p1
|
|
|
|
sed -i "s|__vendorperl__|%{perl_vendorlib}|g" Makefile.PL t/*.t
|
|
|
|
%endif
|
2013-06-04 08:20:13 +00:00
|
|
|
find . -type f -print0 | xargs -0 chmod 644
|
2010-12-29 23:58:33 +00:00
|
|
|
|
|
|
|
%build
|
2011-04-06 12:10:16 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__make} test
|
2010-12-29 23:58:33 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2011-04-06 12:10:16 +00:00
|
|
|
%perl_gen_filelist
|
2010-12-29 23:58:33 +00:00
|
|
|
|
2011-04-06 12:10:16 +00:00
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,755)
|
2011-04-15 07:26:47 +00:00
|
|
|
%doc Changes LICENSE README
|
2010-12-29 23:58:33 +00:00
|
|
|
|
2011-04-06 12:10:16 +00:00
|
|
|
%changelog
|