Require swig-4.1 for php(8) code

OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=138
This commit is contained in:
Jan Engelhardt 2022-11-05 22:49:05 +00:00 committed by Git OBS Bridge
parent b0c71b5e5b
commit 78be46446b

View File

@ -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