From 78be46446b7358949522aac6fcafd6b2ad3c9c056eb8c59fffd94c44a387aa32 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 5 Nov 2022 22:49:05 +0000 Subject: [PATCH] Require swig-4.1 for php(8) code OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=138 --- mapserver.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mapserver.spec b/mapserver.spec index 346e0b2..c63247b 100644 --- a/mapserver.spec +++ b/mapserver.spec @@ -78,7 +78,11 @@ BuildRequires: proj BuildRequires: protobuf-c BuildRequires: readline-devel BuildRequires: rpm +%if 0%{with php} +BuildRequires: swig >= 4.1 +%else BuildRequires: swig +%endif BuildRequires: update-alternatives BuildRequires: xorg-x11-libXpm-devel BuildRequires: zlib-devel @@ -105,6 +109,7 @@ or any of the mapscript module (php, java, python, ruby) # We don't require apache2_mod-php8 users could have php5 running # with other modes (cgi, php-fpm, etc) + %package -n php-mapscriptng Summary: PHP/MapscriptNG map making extensions to PHP Group: Development/Libraries/Other