diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8d0958d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/Syntax-Keyword-Gather-1.003002.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 477aec5..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# perl-Syntax-Keyword-Gather - -The perl-Syntax-Keyword-Gather package \ No newline at end of file diff --git a/perl-Syntax-Keyword-Gather.spec b/perl-Syntax-Keyword-Gather.spec new file mode 100644 index 0000000..5fc3ad1 --- /dev/null +++ b/perl-Syntax-Keyword-Gather.spec @@ -0,0 +1,58 @@ +Name: perl-Syntax-Keyword-Gather +Version: 1.003002 +Release: 1%{?dist} +Summary: Implements the Perl 6 'gather/take' control structure in Perl 5 +License: GPL+ or Artistic + +URL: https://metacpan.org/release/Syntax-Keyword-Gather/ +Source0: https://cpan.metacpan.org/authors/id/F/FR/FREW/Syntax-Keyword-Gather-%{version}.tar.gz + +BuildArch: noarch +# build deps +BuildRequires: perl-interpreter +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +BuildRequires: perl +# runtime deps +BuildRequires: perl(Carp) +BuildRequires: perl(Sub::Exporter::Progressive) +BuildRequires: perl(overload) +# test deps +BuildRequires: perl(Test::More) >= 0.94 +BuildRequires: perl(Test::Pod) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +Perl 6 provides a new control structure -- gather -- that allows lists to +be constructed procedurally, without the need for a temporary variable. +Within the block/closure controlled by a gather any call to take pushes +that call's argument list to an implicitly created array. take returns the +number of elements it took. This module implements that control structure. + +%prep +%setup -q -n Syntax-Keyword-Gather-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes README +%license LICENSE +%{perl_vendorlib}/Syntax* +%{_mandir}/man3/Syntax* + +%changelog +* Tue Jun 19 2018 Emmanuel Seyman - 1.003002-1 +- Initial specfile, based on the one autogenerated by cpanspec 1.78. diff --git a/sources b/sources new file mode 100644 index 0000000..2afba5f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Syntax-Keyword-Gather-1.003002.tar.gz) = a68be58fe77d357190aab30ca9bb5f9301f5db830fad32f54281b46f1a218c54232232faf2cc7dbe1eb7ddc3f422b72623d759f972ddc17ecc156d649796ec6d