From 4266d267e3a7e1b4caaf40baee974b8dd722965e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Wed, 9 Sep 2015 15:14:22 +0200 Subject: [PATCH] Initial import (#1261063) --- .gitignore | 1 + perl-File-Slurper.spec | 53 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 55 insertions(+) create mode 100644 perl-File-Slurper.spec diff --git a/.gitignore b/.gitignore index e69de29..0e78518 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/File-Slurper-0.008.tar.gz diff --git a/perl-File-Slurper.spec b/perl-File-Slurper.spec new file mode 100644 index 0000000..243575b --- /dev/null +++ b/perl-File-Slurper.spec @@ -0,0 +1,53 @@ +Name: perl-File-Slurper +Version: 0.008 +Release: 1%{?dist} +Summary: Simple, sane and efficient module to slurp a file +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/File-Slurper/ +Source0: http://www.cpan.org/authors/id/L/LE/LEONT/File-Slurper-%{version}.tar.gz +BuildArch: noarch +# Build +BuildRequires: make +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Runtime +BuildRequires: perl(Carp) +BuildRequires: perl(constant) +BuildRequires: perl(Exporter) >= 5.57 +BuildRequires: perl(PerlIO::utf8_strict) +# Tests only +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(File::Temp) +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) +Recommends: perl(PerlIO::utf8_strict) + +%description +This module provides functions for fast and correct slurping and spewing. +All functions are optionally exported. + +%prep +%setup -q -n File-Slurper-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} +%{_fixperms} %{buildroot}/* + +%check +make test + +%files +%license LICENSE +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue Sep 08 2015 Petr Ĺ abata 0.008-1 +- Initial packaging diff --git a/sources b/sources index e69de29..b3a7ae4 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6e4f8ab76e38dc3f3fec6a0f575bf132 File-Slurper-0.008.tar.gz