perl-File-Slurper/perl-File-Slurper.spec

88 lines
2.4 KiB
RPMSpec
Raw Normal View History

2020-11-05 19:22:43 +08:00
%global _empty_manifest_terminate_build 0
Name: perl-File-Slurper
2023-07-20 14:46:04 +08:00
Version: 0.014
2020-11-05 19:22:43 +08:00
Release: 1
Summary: Simple, sane and efficient module to slurp a file
2023-07-20 14:46:04 +08:00
License: GPL-1.0-or-later OR Artistic-1.0-Perl
2020-11-05 19:22:43 +08:00
Group: Development/Libraries
2023-07-20 14:46:04 +08:00
URL: https://search.cpan.org/dist/File-Slurper/
Source0: https://www.cpan.org/authors/id/L/LE/LEONT/File-Slurper-%{version}.tar.gz
2020-11-05 19:22:43 +08:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2023-07-20 14:46:04 +08:00
2020-11-05 19:22:43 +08:00
BuildArch: noarch
2023-07-20 14:46:04 +08:00
# Build
BuildRequires: coreutils
BuildRequires: make
2020-11-05 19:22:43 +08:00
BuildRequires: perl-generators
2023-07-20 14:46:04 +08:00
BuildRequires: perl-interpreter
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Runtime
2020-11-05 19:22:43 +08:00
BuildRequires: perl(Carp)
BuildRequires: perl(constant)
BuildRequires: perl(Encode) >= 2.11
BuildRequires: perl(Exporter) >= 5.57
2023-07-20 14:46:04 +08:00
BuildRequires: perl(PerlIO::encoding)
BuildRequires: perl(PerlIO::utf8_strict)
# Tests only
2020-11-05 19:22:43 +08:00
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
2023-07-20 14:46:04 +08:00
BuildRequires: perl(FindBin)
2020-11-05 19:22:43 +08:00
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Warnings)
2023-07-20 14:46:04 +08:00
Recommends: perl(PerlIO::utf8_strict)
2020-11-05 19:22:43 +08:00
%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.
2023-07-20 14:46:04 +08:00
2020-11-05 19:22:43 +08:00
%package help
Summary : Simple, sane and efficient module to slurp a file
Provides: perl-File-Slurper-doc
2023-07-20 14:46:04 +08:00
2020-11-05 19:22:43 +08:00
%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.
2023-07-20 14:46:04 +08:00
2020-11-05 19:22:43 +08:00
%prep
%setup -q -n File-Slurper-%{version}
2023-07-20 14:46:04 +08:00
# 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
2020-11-05 19:22:43 +08:00
%build
2023-07-20 14:46:04 +08:00
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}
2020-11-05 19:22:43 +08:00
%install
2023-07-20 14:46:04 +08:00
%{make_install}
%{_fixperms} %{buildroot}/*
2020-11-05 19:22:43 +08:00
%check
make test
2023-07-20 14:46:04 +08:00
%files
2020-11-05 19:22:43 +08:00
%defattr(-,root,root,-)
2023-07-20 14:46:04 +08:00
%doc Changes LICENSE README
2020-11-05 19:22:43 +08:00
%{perl_vendorlib}/*
2023-07-20 14:46:04 +08:00
2020-11-05 19:22:43 +08:00
%files help
%{_mandir}/*
%changelog
2023-07-20 14:46:04 +08:00
* 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
2020-11-05 19:22:43 +08:00
- Specfile autogenerated by Perl_Bot