diff --git a/cpanspec.yml b/cpanspec.yml index 4ed6a38..f2ff3ec 100644 --- a/cpanspec.yml +++ b/cpanspec.yml @@ -4,11 +4,11 @@ #sources: # - source1 # - source2 -#patches: -# foo.patch: -p1 -# bar.patch: +patches: + initperl_prototype.diff: -p1 preamble: |- BuildRequires: python3-devel + BuildRequires: perl(Parse::RecDescent) #post_prep: |- # hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` # sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL diff --git a/initperl_prototype.diff b/initperl_prototype.diff new file mode 100644 index 0000000..769925f --- /dev/null +++ b/initperl_prototype.diff @@ -0,0 +1,12 @@ +diff -ur Inline-Python-0.57/Python.xs Inline-Python-0.57_fix/Python.xs +--- Inline-Python-0.57/Python.xs 2022-09-18 13:07:09.299412240 +0200 ++++ Inline-Python-0.57_fix/Python.xs 2024-12-18 10:02:00.459704530 +0100 +@@ -8,6 +8,8 @@ + #include "py2pl.h" + #include "util.h" + ++void initperl(void); ++ + #ifdef EXPOSE_PERL + #include "perlmodule.h" + #endif diff --git a/perl-Inline-Python.changes b/perl-Inline-Python.changes index 7751654..2a87187 100644 --- a/perl-Inline-Python.changes +++ b/perl-Inline-Python.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Dec 18 09:05:08 UTC 2024 - Dirk Stoecker + +- add initperl_prototype.diff to fix compiler issue + ------------------------------------------------------------------- Thu Apr 20 10:47:40 UTC 2023 - Tina Müller diff --git a/perl-Inline-Python.spec b/perl-Inline-Python.spec index 7e2be3d..a5156dd 100644 --- a/perl-Inline-Python.spec +++ b/perl-Inline-Python.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Inline-Python # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,6 +25,7 @@ Summary: Write Perl subs and classes in Python URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/N/NI/NINE/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml +Patch0: initperl_prototype.diff BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Digest::MD5) >= 2.5 @@ -37,6 +38,7 @@ Requires: perl(Inline) >= 0.46 %{perl_requires} # MANUAL BEGIN BuildRequires: python3-devel +BuildRequires: perl(Parse::RecDescent) # MANUAL END %description @@ -53,7 +55,7 @@ also gives you instructions on how to use 'perlmodule', the Python package which gives you access to the Perl interpreter. %prep -%autosetup -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{version} -p1 %build export INLINE_PYTHON_EXECUTABLE=/usr/bin/python3