ece637
Name:           perl-Getopt-Long
ece637
Version:        2.40
ece637
Release:        3%{?dist}
ece637
Summary:        Extended processing of command line options
ece637
License:        GPLv2+ or Artistic
ece637
Group:          Development/Libraries
ece637
URL:            http://search.cpan.org/dist/Getopt-Long/
ece637
Source0:        http://www.cpan.org/authors/id/J/JV/JV/Getopt-Long-%{version}.tar.gz
ece637
BuildArch:      noarch
ece637
BuildRequires:  perl
ece637
BuildRequires:  perl(Config)
ece637
BuildRequires:  perl(ExtUtils::MakeMaker) >= 5.0
ece637
BuildRequires:  perl(lib)
ece637
# Run-time:
ece637
BuildRequires:  perl(constant)
ece637
BuildRequires:  perl(Exporter)
ece637
BuildRequires:  perl(overload)
ece637
BuildRequires:  perl(strict)
ece637
BuildRequires:  perl(Text::ParseWords)
ece637
BuildRequires:  perl(vars)
ece637
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
ece637
Requires:       perl(overload)
ece637
Requires:       perl(Text::ParseWords)
ece637
# Recommended:
ece637
Requires:       perl(Pod::Usage) >= 1.14
ece637
# Dependencies on these Perl 4 files are generated as perl(foo.pl), bug #1492742
ece637
Provides:       perl(newgetopt.pl) = %{version}
ece637
ece637
%description
ece637
The Getopt::Long module implements an extended getopt function called
ece637
GetOptions(). It parses the command line from @ARGV, recognizing and removing
ece637
specified options and their possible values.  It adheres to the POSIX syntax
ece637
for command line options, with GNU extensions. In general, this means that
ece637
options have long names instead of single letters, and are introduced with
ece637
a double dash "--". Support for bundling of command line options, as was the
ece637
case with the more traditional single-letter approach, is provided but not
ece637
enabled by default.
ece637
ece637
%prep
ece637
%setup -q -n Getopt-Long-%{version}
ece637
ece637
%build
ece637
perl Makefile.PL INSTALLDIRS=vendor
ece637
make %{?_smp_mflags}
ece637
ece637
%install
ece637
make pure_install DESTDIR=$RPM_BUILD_ROOT
ece637
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
ece637
%{_fixperms} $RPM_BUILD_ROOT/*
ece637
ece637
%check
ece637
make test
ece637
ece637
%files
ece637
%doc CHANGES examples README
ece637
%{perl_vendorlib}/*
ece637
%{_mandir}/man3/*
ece637
ece637
%changelog
ece637
* Tue Sep 19 2017 Petr Pisar <ppisar@redhat.com> - 2.40-3
ece637
- Provide perl(newgetopt.pl) (bug #1492742)
ece637
ece637
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.40-2
ece637
- Mass rebuild 2013-12-27
ece637
ece637
* Thu Jun 20 2013 Petr Pisar <ppisar@redhat.com> - 2.40-1
ece637
- 2.40 bump
ece637
ece637
* Fri Apr 05 2013 Petr Pisar <ppisar@redhat.com> 2.39-1
ece637
- Specfile autogenerated by cpanspec 1.78.