8
0

add initperl_prototype.diff to fix compiler issue

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Inline-Python?expand=0&rev=22
This commit is contained in:
2024-12-18 09:08:46 +00:00
committed by Git OBS Bridge
parent cda19856d9
commit 0c80b4db41
4 changed files with 24 additions and 5 deletions

View File

@@ -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