forked from pool/perl-Inline-Python
Accepting request 1231823 from devel:languages:perl
- add initperl_prototype.diff to fix compiler issue OBS-URL: https://build.opensuse.org/request/show/1231823 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Inline-Python?expand=0&rev=5
This commit is contained in:
@@ -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
|
||||
|
12
initperl_prototype.diff
Normal file
12
initperl_prototype.diff
Normal file
@@ -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
|
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 18 09:05:08 UTC 2024 - Dirk Stoecker <opensuse@dstoecker.de>
|
||||
|
||||
- add initperl_prototype.diff to fix compiler issue
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 20 10:47:40 UTC 2023 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user