diff --git a/mapserver.changes b/mapserver.changes index fca96fd..7820244 100644 --- a/mapserver.changes +++ b/mapserver.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Nov 5 22:40:24 UTC 2022 - Jan Engelhardt + +- Enable PHP8 module build in Tumbleweed again since newer SWIG + is available. New subpackage php-mapscriptng emitted as a result. + [boo#1204736] + ------------------------------------------------------------------- Sat Oct 8 20:50:04 UTC 2022 - Jan Engelhardt diff --git a/mapserver.spec b/mapserver.spec index df1173a..346e0b2 100644 --- a/mapserver.spec +++ b/mapserver.spec @@ -18,14 +18,16 @@ # -%bcond_with php %bcond_without python %bcond_with ruby %define libname libmapserver2 %define _cgibindir /srv/www/cgi-bin %if 0%{?suse_version} >= 1550 +# needs swig-4.1 for build +%bcond_without php %define php_name php8 %else +%bcond_with php %define php_name php7 %endif @@ -38,8 +40,6 @@ Group: Productivity/Networking/Web/Servers URL: https://www.mapserver.org/ Source: https://download.osgeo.org/mapserver/%{name}-%{version}.tar.gz Source9: %{name}-rpmlintrc -# Known issues: -# - swig 4.0 can't do php8, gotta wait for 4.1 so no php BuildRequires: FastCGI-devel BuildRequires: apache2-devel BuildRequires: autoconf @@ -73,6 +73,7 @@ BuildRequires: postgresql-devel >= 9.1 BuildRequires: postgresql-server-devel >= 9.1 %endif BuildRequires: libprotobuf-c-devel +BuildRequires: php8-devel BuildRequires: proj BuildRequires: protobuf-c BuildRequires: readline-devel @@ -100,13 +101,14 @@ Mapserver library for mapserver or mapscript module. you need this lib to run ma 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-mapscript -Summary: PHP/Mapscript map making extensions to PHP +%package -n php-mapscriptng +Summary: PHP/MapscriptNG map making extensions to PHP Group: Development/Libraries/Other Requires: %{libname} = %{version}-%{release} -Requires: apache2 Provides: php-mapserver = %{version}-%{release} Obsoletes: php-mapserver < %{version}-%{release} %if 0%{with php} @@ -115,7 +117,7 @@ BuildRequires: php-devel Requires: php Requires: php-gd -%description -n php-mapscript +%description -n php-mapscriptng The PHP/Mapscript extension provides full map customization capabilities within the PHP scripting language. %package -n perl-mapscript @@ -233,7 +235,9 @@ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DWITH_MYSQL=TRUE \ -DWITH_PERL=TRUE \ -DCUSTOM_PERL_SITE_ARCH_DIR="%{perl_vendorarch}" \ - -DWITH_PHPNG=FALSE \ +%if 0%{with php} + -DWITH_PHPNG=TRUE \ +%endif -DWITH_POSTGIS=TRUE \ -DWITH_PROJ=TRUE \ -DUSE_PROJ=TRUE \ @@ -290,10 +294,10 @@ cd .. %if 0%{with php} mkdir -p %{buildroot}%{_sysconfdir}/%{php_name}/conf.d/ -cat > %{buildroot}%{_sysconfdir}/%{php_name}/conf.d/mapscript.ini < %{buildroot}%{_sysconfdir}/%{php_name}/conf.d/mapscriptng.ini <