!2 upgrade to version 0.014
From: @leeffo Reviewed-by: @wk333 Signed-off-by: @wk333
This commit is contained in:
commit
87891a07f1
Binary file not shown.
BIN
File-Slurper-0.014.tar.gz
Normal file
BIN
File-Slurper-0.014.tar.gz
Normal file
Binary file not shown.
@ -1,94 +1,87 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: perl-File-Slurper
|
||||
Version: 0.012
|
||||
Version: 0.014
|
||||
Release: 1
|
||||
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
|
||||
URL: http://search.cpan.org/dist/File-Slurper/
|
||||
Source0: http://www.cpan.org/authors/id/L/LE/LEONT/File-Slurper-%{version}.tar.gz
|
||||
URL: https://search.cpan.org/dist/File-Slurper/
|
||||
Source0: https://www.cpan.org/authors/id/L/LE/LEONT/File-Slurper-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
# Build
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: make
|
||||
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(constant)
|
||||
BuildRequires: perl(Encode) >= 2.11
|
||||
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::Temp)
|
||||
BuildRequires: perl(PerlIO::utf8_strict)
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(FindBin)
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(Test::Warnings)
|
||||
BuildRequires: perl(warnings)
|
||||
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))
|
||||
Recommends: perl(PerlIO::utf8_strict)
|
||||
|
||||
%description
|
||||
This module provides functions for fast and correct slurping and spewing.
|
||||
All functions are optionally exported. All functions throw exceptions on
|
||||
errors, write functions don't return any meaningful value.
|
||||
|
||||
%package help
|
||||
Summary : Simple, sane and efficient module to slurp a file
|
||||
Provides: perl-File-Slurper-doc
|
||||
|
||||
%description help
|
||||
This module provides functions for fast and correct slurping and spewing.
|
||||
All functions are optionally exported. All functions throw exceptions on
|
||||
errors, write functions don't return any meaningful value.
|
||||
|
||||
%prep
|
||||
%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
|
||||
export PERL_MM_OPT=""
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
||||
%{make_build}
|
||||
|
||||
%install
|
||||
export PERL_MM_OPT=""
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%{make_install}
|
||||
|
||||
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
|
||||
make test
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f filelist.lst
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes dist.ini LICENSE META.json README
|
||||
%doc Changes LICENSE README
|
||||
%{perl_vendorlib}/*
|
||||
|
||||
%files help
|
||||
%{_mandir}/*
|
||||
|
||||
%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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user