Import
This commit is contained in:
parent
81dd1c9154
commit
a4ab06b5cb
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/Getopt-Long-2.39.tar.gz
|
||||
59
perl-Getopt-Long.spec
Normal file
59
perl-Getopt-Long.spec
Normal 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.
|
||||
Loading…
Reference in New Issue
Block a user