!2 Init package with version 0.0801

From: @desert-sailor 
Reviewed-by: @wk333 
Signed-off-by: @wk333
This commit is contained in:
openeuler-ci-bot 2024-02-20 09:00:04 +00:00 committed by Gitee
commit 62802b55fc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 56 additions and 0 deletions

BIN
File-Read-0.0801.tar.gz Normal file

Binary file not shown.

56
perl-File-Read.spec Normal file
View File

@ -0,0 +1,56 @@
Name: perl-File-Read
Version: 0.0801
Release: 1
Summary: Unique interface for reading one or more files
License: GPL-1.0-or-later OR Artistic-1.0-Perl
URL: https://metacpan.org/release/File-Read
Source0: https://cpan.metacpan.org/authors/id/S/SA/SAPER/File-Read-%{version}.tar.gz
BuildArch: noarch
# Build
BuildRequires: perl-interpreter
BuildRequires: perl-generators
BuildRequires: perl(Module::Build)
BuildRequires: perl(strict)
# Runtime
BuildRequires: perl(Carp)
BuildRequires: perl(Errno)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Slurp)
# Tests only
BuildRequires: perl(Cwd)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Test::More)
# Optional tests only
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Test::Distribution)
BuildRequires: perl(Test::Pod) >= 1.14
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
BuildRequires: perl(Test::Portability::Files)
BuildRequires: perl(Text::Unidecode)
%description
This module mainly proposes functions for reading one or more files, with
different options.
%prep
%setup -q -n File-Read-%{version}
%build
perl Build.PL installdirs=vendor
./Build
%install
./Build install destdir=%{buildroot} create_packlist=0
%{_fixperms} %{buildroot}/*
%check
./Build test
%files
%doc Changes README eg
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Tue Feb 20 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 0.0801-1
- Initial package