!4 Fix build dependencies

From: @misaka00251 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2022-10-24 09:45:28 +00:00 committed by Gitee
commit f48f6a06e2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,27 +1,43 @@
%global _empty_manifest_terminate_build 0
Name: perl-Sort-Key
Version: 1.33
Release: 1
Release: 2
Summary: Fastest way to sort anything in Perl
License: GPL-1.0-only or Artistic-1.0-Perl
Group: Development/Libraries
URL: http://search.cpan.org/dist/Sort-Key/
Source0: http://www.cpan.org/authors/id/S/SA/SALVA/Sort-Key-%{version}.tar.gz
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Carp)
BuildRequires: perl(constant)
BuildRequires: perl(Exporter)
BuildRequires: perl(locale)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(XSLoader)
BuildRequires: perl(integer)
BuildRequires: perl(Test::More) >= 0.54
Requires: perl(Test::More) >= 0.54
%description
Sort::Key provides a set of functions to sort lists of values by some
calculated key value.
%package help
Summary: Fastest way to sort anything in Perl
Provides: perl-Sort-Key-doc
%description help
Sort::Key provides a set of functions to sort lists of values by some
calculated key value.
%prep
%setup -q -n Sort-Key-%{version}
%build
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
@ -56,6 +72,7 @@ if [ -d usr/lib ];then
fi
popd
mv %{buildroot}/filelist.lst .
%check || :
make test
@ -67,9 +84,13 @@ rm -rf $RPM_BUILD_ROOT
%doc Changes META.json README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Sort*
%files help
%{_mandir}/*
%changelog
* Mon Oct 24 2022 misaka00251 <liuxin@iscas.ac.cn> - 1.33-2
- Fix build dependencies
* Sun May 23 2021 Perl_Bot <Perl_Bot@openeuler.org> 1.33-1
- Specfile autogenerated by Perl_Bot