From 7dec566e6cdc2a9b7189c1394cf489a45f54c5f5 Mon Sep 17 00:00:00 2001 From: chenyanpanX Date: Fri, 15 Dec 2023 02:00:48 +0000 Subject: [PATCH] Add BuildRequires perl-devel, for fixing build failed https://build.openeuler.openatom.cn/package/live_build_log/openEuler:Factory/perl-String-Approx/standard_x86_64/x86_64 ``` [ 184s] gcc -c -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -DVERSION=\"3.28\" -DXS_VERSION=\"3.28\" -fPIC "-I/usr/lib64/perl5/CORE" Approx.c [ 184s] Approx.xs:4:10: fatal error: EXTERN.h: No such file or directory [ 184s] 4 | #include "EXTERN.h" [ 184s] | ^~~~~~~~~~ [ 184s] compilation terminated. ``` Signed-off-by: chenyanpanX --- perl-String-Approx.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/perl-String-Approx.spec b/perl-String-Approx.spec index b39e774..4530d4b 100644 --- a/perl-String-Approx.spec +++ b/perl-String-Approx.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: perl-String-Approx Version: 3.28 -Release: 1 +Release: 2 Summary: Perl extension for approximate matching (fuzzy matching) License: LGPLv2+ or Artistic-1.0-Perl Group: Development/Libraries @@ -10,6 +10,8 @@ Source0: http://www.cpan.org/authors/id/J/JH/JHI/String-Approx-%{version} BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) +BuildRequires: perl-devel + Requires: perl(Test::More) %description String::Approx lets you match and substitute strings approximately. With @@ -75,5 +77,8 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/* %changelog +* Fri Dec 15 2023 ChenYanpan - 3.28-2 +- Add BuildRequires perl-devel, for fixing build failed + * Sun May 23 2021 Perl_Bot 3.28-1 - Specfile autogenerated by Perl_Bot -- Gitee