Name: perl-File-Slurp Summary: Simple and Efficient Reading/Writing/Modifying of Complete File Version: 9999.19 Release: 22 License: GPL+ or Artistic URL: https://metacpan.org/release/File-Slurp Source0: https://cpan.metacpan.org/modules/by-module/File/File-Slurp-%{version}.tar.gz BuildRequires: perl-generators perl(Exporter) perl(Carp) perl(ExtUtils::MakeMaker) BuildRequires: perl(Data::Dumper) perl(IO::Handle) perl(lib) perl(Test::More) BuildRequires: perl(Test::Pod) >= 1.14 perl(Test::Pod::Coverage) >= 1.04 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch %{?perl_default_filter} %description This module provides subs that allow you to read or write entire files with one simple call. They are designed to be simple to use, have flexible ways to pass in or get the file contents and to be very efficient. There is also a sub to read in all the files in a directory. %package_help %prep %autosetup -p1 -n File-Slurp-%{version} iconv -f iso8859-1 -t UTF-8 Changes > Changes~ ln -sf Changes~ Changes find \( -executable -a -type f \) -exec chmod -x {} \; %{__perl} -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' extras/slurp_bench.pl %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 %make_build %install make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' chmod -R u+w %{buildroot}/* %check make test %files %{perl_vendorlib}/File %files help %doc Changes README extras/ %{_mandir}/man3/* %changelog * Tue Nov 19 2019 caomeng -9999.19-22 - Package init