IMport File::Slurp::Tiny

This commit is contained in:
Daniel Berteaud 2022-02-11 17:43:10 +01:00
parent b586db7016
commit 34d9eba4c5
3 changed files with 68 additions and 0 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
*.tar.gz filter=lfs diff=lfs merge=lfs -text

BIN
File-Slurp-Tiny-0.004.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

64
perl-File-Slurp-Tiny.spec Normal file
View File

@ -0,0 +1,64 @@
Name: perl-File-Slurp-Tiny
Version: 0.004
Release: 1%{?dist}
Summary: Simple, sane and efficient file slurper [DISCOURAGED]
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/File-Slurp-Tiny/
Source0: http://www.cpan.org/authors/id/L/LE/LEONT/File-Slurp-Tiny-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl >= 0:5.008001
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter) >= 5.57
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(FileHandle)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(strict)
BuildRequires: perl(Test::More)
BuildRequires: perl(warnings)
Requires: perl(Carp)
Requires: perl(Exporter) >= 5.57
Requires: perl(FileHandle)
Requires: perl(File::Spec::Functions)
Requires: perl(strict)
Requires: perl(warnings)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
This module provides functions for fast and correct slurping and spewing.
All functions are optionally exported.
%prep
%setup -q -n File-Slurp-Tiny-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes dist.ini LICENSE META.json README weaver.ini
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Fri Feb 11 2022 Daniel Berteaud <dbd@ehtrace.com> 0.004-1
- Specfile autogenerated by cpanspec 1.78.