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