commit f68e63f1b75508dcd5ee33e357283092ae9fad3a Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:12:28 2019 -0400 Package init diff --git a/Getopt-Long-2.50.tar.gz b/Getopt-Long-2.50.tar.gz new file mode 100644 index 0000000..b4e5721 Binary files /dev/null and b/Getopt-Long-2.50.tar.gz differ diff --git a/perl-Getopt-Long.spec b/perl-Getopt-Long.spec new file mode 100644 index 0000000..affdb51 --- /dev/null +++ b/perl-Getopt-Long.spec @@ -0,0 +1,77 @@ +Name: perl-Getopt-Long +Version: 2.50 +Release: 418 +Summary: Extended processing of command line options +License: Artistic or GPLv2+ +URL: https://metacpan.org/pod/Getopt::Long +Source0: https://cpan.metacpan.org/authors/id/J/JV/JV/Getopt-Long-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: make perl-interpreter perl-generators perl(Config) +BuildRequires: perl(constant) perl(Exporter) perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(lib) perl(overload) perl(strict) perl(Text::ParseWords) +BuildRequires: perl(vars) perl(warnings) + +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(overload) +Requires: perl(Text::ParseWords) +Requires: perl(Pod::Usage) >= 1.14 +Provides: perl(newgetopt.pl) = %{version} + + +%description +Module Getopt::Long implements an extended getopt function called +GetOptions(). This function implements the POSIX standard for command +line options, with GNU extensions, while still capable of handling +the traditional one-letter options. + +%package devel +Summary: Development files for %{name} +Requires: %{name} = %{version}-%{release} + +%description devel +Files for %{name} development + +%package help +Summary: Documents for autogen +Buildarch: noarch +Requires: man/info + +%description help +Man pages and other related documents. + +%prep +%autosetup -n Getopt-Long-%{version} -p1 + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +%make_build + +%install +make pure_install DESTDIR=%{?buildroot} +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%pre + +%preun + +%post + +%postun + +%files +%doc CHANGES README +%{perl_vendorlib}/* + +%files devel +%doc examples + +%files help +%{_mandir}/man3/* + +%changelog +* Wed Jul 18 2018 openEuler Buildteam - 2.50-418 +- Package init