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