From dd258bd9a3b979cf3558ca56ef77b1a1fe81cf28 Mon Sep 17 00:00:00 2001 From: chenyanpanX Date: Fri, 15 Dec 2023 02:06:36 +0000 Subject: [PATCH] Add BuildRequires perl-devel, for fixing build failed https://build.openeuler.openatom.cn/package/live_build_log/openEuler:Factory/perl-URI-Escape-XS/standard_x86_64/x86_64 ``` [ 36s] 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=\"0.14\" -DXS_VERSION=\"0.14\" -fPIC "-I/usr/lib64/perl5/CORE" XS.c [ 36s] XS.xs:5:10: fatal error: EXTERN.h: No such file or directory [ 36s] 5 | #include "EXTERN.h" [ 36s] | ^~~~~~~~~~ [ 36s] compilation terminated. ``` Signed-off-by: chenyanpanX --- perl-URI-Escape-XS.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/perl-URI-Escape-XS.spec b/perl-URI-Escape-XS.spec index 388cf91..246be29 100644 --- a/perl-URI-Escape-XS.spec +++ b/perl-URI-Escape-XS.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: perl-URI-Escape-XS Version: 0.14 -Release: 1 +Release: 2 Summary: URI::Escape::XS Perl module License: GPL+ or Artistic Group: Development/Libraries @@ -10,6 +10,8 @@ Source0: http://www.cpan.org/authors/id/D/DA/DANKOGAI/URI-Escape-XS-%{ver BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) +BuildRequires: perl-devel + Requires: perl(Test::More) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description @@ -77,5 +79,8 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/* %changelog +* Fri Dec 15 2023 ChenYanpan - 0.14-2 +- Add BuildRequires perl-devel, for fixing build failed + * Wed Jun 30 2021 Perl_Bot 0.14-1 - Specfile autogenerated by Perl_Bot -- Gitee