forked from pool/perl-App-CLI
Copy from devel:languages:perl/perl-App-CLI based on submit request 32539 from user coolo OBS-URL: https://build.opensuse.org/request/show/32539 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-App-CLI?expand=0&rev=7
73 lines
2.1 KiB
RPMSpec
73 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package perl-App-CLI (Version 0.08)
|
|
#
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: perl-App-CLI
|
|
Version: 0.08
|
|
Release: 1
|
|
#
|
|
Group: Development/Libraries/Perl
|
|
License: Artistic License .. ; GPLv2
|
|
#
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: perl-Locale-Maketext-Simple
|
|
Requires: perl-Locale-Maketext-Simple
|
|
Requires: perl = %{perl_version}
|
|
#
|
|
Url: http://search.cpan.org/~clkao/
|
|
Source: http://search.cpan.org/CPAN/authors/id/C/CL/CLKAO/App-CLI-%{version}.tar.gz
|
|
#
|
|
Summary: Dispatcher module for command line interface programs
|
|
BuildArch: noarch
|
|
BuildRequires: perl(Getopt::Long) >= 2.35
|
|
Requires: perl(Getopt::Long) >= 2.35
|
|
|
|
%description
|
|
App::CLI dispatches CLI (command line interface) based commands into
|
|
command classes. It also supports subcommand and per-command options.
|
|
|
|
%prep
|
|
%setup -n App-CLI-%{version}
|
|
|
|
%build
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc %{_mandir}/man?/*
|
|
%dir %{perl_vendorlib}/App
|
|
%{perl_vendorlib}/App/CLI*
|
|
%dir %{perl_vendorarch}/auto/App/
|
|
%dir %{perl_vendorarch}/auto/App/CLI/
|
|
%{perl_vendorarch}/auto/App/CLI/.packlist
|
|
/var/adm/perl-modules/%{name}
|
|
|
|
%changelog
|