Dominique Leuenberger 2022-11-16 14:42:25 +00:00 committed by Git OBS Bridge
commit 48eeafcfd5
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Nov 14 14:44:56 UTC 2022 - pgajdos@suse.com
- php8 support was added in swig 4.1.0
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Oct 19 10:40:10 UTC 2022 - Klaus Kämpf <kkaempf@suse.com> Wed Oct 19 10:40:10 UTC 2022 - Klaus Kämpf <kkaempf@suse.com>

View File

@ -36,7 +36,10 @@
%bcond_with ocaml %bcond_with ocaml
%if "%{flavor}" == "addons" %if "%{flavor}" == "addons"
# PHP7 requires swig >= 3.0.11, not available on Leap 42.x # PHP7 requires swig >= 3.0.11, not available on Leap 42.x
%if 0%{?suse_version} >= 1500 # PHP8 requires swig >= 4.1.0, https://github.com/swig/swig/commit/56d74355735f3661406d69d04d89d1bdb4ca96f9
%if 0%{?suse_version} >= 1599
%define php_version 8
%elif 0%{?suse_version} >= 1500
%define php_version 7 %define php_version 7
%else %else
%define php_version 5 %define php_version 5
@ -109,7 +112,10 @@ BuildRequires: libjpeg-devel
BuildRequires: libpng-devel BuildRequires: libpng-devel
BuildRequires: libwebp-devel BuildRequires: libwebp-devel
BuildRequires: perl BuildRequires: perl
%if %{php_version} == 7 %if %{php_version} == 8
BuildRequires: php8-devel
BuildRequires: swig >= 4.1.0
%elif %{php_version} == 7
BuildRequires: php7-devel BuildRequires: php7-devel
BuildRequires: swig >= 3.0.11 BuildRequires: swig >= 3.0.11
%else %else