This commit is contained in:
Petr Písař 2013-04-09 17:33:40 +02:00
parent 81dd1c9154
commit a4ab06b5cb
3 changed files with 61 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/Getopt-Long-2.39.tar.gz

59
perl-Getopt-Long.spec Normal file
View File

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

View File

@ -0,0 +1 @@
84c8643de29faade9491c56d72afdba0 Getopt-Long-2.39.tar.gz