Accepting request 1035803 from home:pgajdos:php8

- php8 support was added in swig 4.1.0

OBS-URL: https://build.opensuse.org/request/show/1035803
OBS-URL: https://build.opensuse.org/package/show/graphics/graphviz?expand=0&rev=183
This commit is contained in:
Thomas Renninger 2022-11-15 12:59:34 +00:00 committed by Git OBS Bridge
parent 0f5ca99fe3
commit eb0ed4fd99
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>

View File

@ -36,7 +36,10 @@
%bcond_with ocaml
%if "%{flavor}" == "addons"
# 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
%else
%define php_version 5
@ -109,7 +112,10 @@ BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libwebp-devel
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: swig >= 3.0.11
%else