57 lines
1.5 KiB
RPMSpec
57 lines
1.5 KiB
RPMSpec
|
|
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
|