Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > a1479b77b2b6a95e3cf9657de22ed85e > files > 2

perl-Getopt-Long-Complete-0.310.0-1.mga7.src.rpm

%define upstream_name    Getopt-Long-Complete
%define upstream_version 0.310

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    %mkrel 1

Summary:    A drop-in replacement for Getopt::Long, with tab completion
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Getopt/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Complete::Bash) >= 0.270.0
BuildRequires: perl(Complete::Fish)
BuildRequires: perl(Complete::Getopt::Long) >= 0.430.0
BuildRequires: perl(Complete::Tcsh)
BuildRequires: perl(Complete::Util) >= 0.570.0
BuildRequires: perl(Complete::Zsh)
BuildRequires: perl(Exporter) >= 5.570.0
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Test::More)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildArch:  noarch

%description
This module provides a quick and easy way to add tab completion feature to
your scripts, including scripts already written using the venerable the
Getopt::Long manpage module.

This module is basically just a thin wrapper for Getopt::Long. Its
'GetOptions' function just checks for COMP_LINE/COMP_POINT environment
variable before passing its arguments to Getopt::Long's GetOptions. If
COMP_LINE is defined, completion reply will be printed to STDOUT and then
the program will exit. Otherwise, Getopt::Long's GetOptions is called.

To keep completion quick, you should do 'GetOptions()' or
'GetOptionsWithCompletion()' as early as possible in your script.
Preferably before loading lots of other Perl modules.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%perl_vendorlib/*
/usr/bin/demo-getopt-long-complete
/usr/share/man/man1/demo-getopt-long-complete.1.xz

%changelog
* Tue Dec 04 2018 tv <tv> 0.310.0-1.mga7
+ Revision: 1338373
- update to 0.310

* Thu Jul 31 2014 guillomovitch <guillomovitch> 0.90.0-1.mga7
+ Revision: 658761
- imported package perl-Getopt-Long-Complete