From eb0ed4fd9943a7492fafa1e6f409be25155b53d3b31c996b9eef532a27a768ca Mon Sep 17 00:00:00 2001 From: Thomas Renninger Date: Tue, 15 Nov 2022 12:59:34 +0000 Subject: [PATCH] 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 --- graphviz.changes | 5 +++++ graphviz.spec | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/graphviz.changes b/graphviz.changes index 21bc122..a0a1d02 100644 --- a/graphviz.changes +++ b/graphviz.changes @@ -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 diff --git a/graphviz.spec b/graphviz.spec index 8906605..2ce5944 100644 --- a/graphviz.spec +++ b/graphviz.spec @@ -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