!2 upgrade to version 0.014

From: @leeffo 
Reviewed-by: @wk333 
Signed-off-by: @wk333
This commit is contained in:
openeuler-ci-bot 2023-07-20 07:18:09 +00:00 committed by Gitee
commit 87891a07f1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 42 additions and 49 deletions

Binary file not shown.

BIN
File-Slurper-0.014.tar.gz Normal file

Binary file not shown.

View File

@ -1,94 +1,87 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: perl-File-Slurper Name: perl-File-Slurper
Version: 0.012 Version: 0.014
Release: 1 Release: 1
Summary: Simple, sane and efficient module to slurp a file Summary: Simple, sane and efficient module to slurp a file
License: Perl_5 License: GPL-1.0-or-later OR Artistic-1.0-Perl
Group: Development/Libraries Group: Development/Libraries
URL: http://search.cpan.org/dist/File-Slurper/ URL: https://search.cpan.org/dist/File-Slurper/
Source0: http://www.cpan.org/authors/id/L/LE/LEONT/File-Slurper-%{version}.tar.gz Source0: https://www.cpan.org/authors/id/L/LE/LEONT/File-Slurper-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
# Build
BuildRequires: coreutils
BuildRequires: make
BuildRequires: perl-generators BuildRequires: perl-generators
BuildRequires: perl >= 0:5.008 BuildRequires: perl-interpreter
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Runtime
BuildRequires: perl(Carp) BuildRequires: perl(Carp)
BuildRequires: perl(constant) BuildRequires: perl(constant)
BuildRequires: perl(Encode) >= 2.11 BuildRequires: perl(Encode) >= 2.11
BuildRequires: perl(Exporter) >= 5.57 BuildRequires: perl(Exporter) >= 5.57
BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(PerlIO::encoding)
BuildRequires: perl(PerlIO::utf8_strict)
# Tests only
BuildRequires: perl(File::Spec::Functions) BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp) BuildRequires: perl(File::Temp)
BuildRequires: perl(PerlIO::utf8_strict) BuildRequires: perl(FindBin)
BuildRequires: perl(strict)
BuildRequires: perl(Test::More) BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Warnings) BuildRequires: perl(Test::Warnings)
BuildRequires: perl(warnings) Recommends: perl(PerlIO::utf8_strict)
Requires: perl(Carp)
Requires: perl(constant)
Requires: perl(Encode) >= 2.11
Requires: perl(Exporter) >= 5.57
Requires: perl(PerlIO::utf8_strict)
Requires: perl(strict)
Requires: perl(warnings)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description %description
This module provides functions for fast and correct slurping and spewing. This module provides functions for fast and correct slurping and spewing.
All functions are optionally exported. All functions throw exceptions on All functions are optionally exported. All functions throw exceptions on
errors, write functions don't return any meaningful value. errors, write functions don't return any meaningful value.
%package help %package help
Summary : Simple, sane and efficient module to slurp a file Summary : Simple, sane and efficient module to slurp a file
Provides: perl-File-Slurper-doc Provides: perl-File-Slurper-doc
%description help %description help
This module provides functions for fast and correct slurping and spewing. This module provides functions for fast and correct slurping and spewing.
All functions are optionally exported. All functions throw exceptions on All functions are optionally exported. All functions throw exceptions on
errors, write functions don't return any meaningful value. errors, write functions don't return any meaningful value.
%prep %prep
%setup -q -n File-Slurper-%{version} %setup -q -n File-Slurper-%{version}
# Help generators to recognize Perl scripts
for F in t/*.t; do
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
chmod +x "$F"
done
%build %build
export PERL_MM_OPT="" %{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{__perl} Makefile.PL INSTALLDIRS=vendor %{make_build}
make %{?_smp_mflags}
%install %install
export PERL_MM_OPT="" %{make_install}
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT %{_fixperms} %{buildroot}/*
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/*
pushd %{buildroot}
touch filelist.lst
if [ -d usr/bin ];then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/sbin ];then
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib64 ];then
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
fi
if [ -d usr/lib ];then
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
fi
popd
mv %{buildroot}/filelist.lst .
%check %check
make test make test
%clean
rm -rf $RPM_BUILD_ROOT
%files -f filelist.lst %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc Changes dist.ini LICENSE META.json README %doc Changes LICENSE README
%{perl_vendorlib}/* %{perl_vendorlib}/*
%files help %files help
%{_mandir}/* %{_mandir}/*
%changelog %changelog
* Thu Jun 11 2020 Perl_Bot <Perl_Bot@openeuler.org> 0.012-1 * Thu Jul 20 2023 leeffo <liweiganga@uniontech.com> - 0.014-1
- upgrade to version 0.014
* Thu Jun 11 2020 Perl_Bot <Perl_Bot@openeuler.org> - 0.012-1
- Specfile autogenerated by Perl_Bot - Specfile autogenerated by Perl_Bot