From 22e80cc721619973107ef8705384def689e49eeb Mon Sep 17 00:00:00 2001 From: Julien Enselme Date: Tue, 28 Jun 2016 19:28:43 +0200 Subject: [PATCH] Disable PHP support. --- mapserver.spec | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/mapserver.spec b/mapserver.spec index efc90f5..3fc6564 100644 --- a/mapserver.spec +++ b/mapserver.spec @@ -1,12 +1,15 @@ %global ini_name 40-mapserver.ini %global project_owner mapserver %global project_name mapserver +# MapServer doesn't support PHP 7 yet. See: +# https://github.com/mapserver/mapserver/issues/5252 +%global php_mapscript 0 %global commit 6ae2bc6915d73417f4fea78201d4f7087c25b3f1 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: mapserver Version: 7.0.1 -Release: 2.git%{shortcommit}%{?dist} +Release: 3.git%{shortcommit}%{?dist} Summary: Environment for building spatially-enabled internet applications Group: Development/Tools @@ -68,6 +71,7 @@ Requires: %{name} = %{version} %description devel This package contains development files for mapserver. +%if 0%{php_mapscript} %package -n php-%{name} Summary: PHP/Mapscript map making extensions to PHP Group: Development/Languages @@ -79,6 +83,7 @@ Requires: php(api) = %{php_core_api} %description -n php-%{name} The PHP/Mapscript extension provides full map customization capabilities within the PHP scripting language. +%endif # end php_mapscript %package perl @@ -173,7 +178,9 @@ cmake -DINSTALL_LIB_DIR=%{_libdir} \ -DWITH_MYSQL=TRUE \ -DWITH_PERL=TRUE \ -DCUSTOM_PERL_SITE_ARCH_DIR="%{perl_vendorarch}" \ +%if 0%{php_mapscript} -DWITH_PHP=TRUE \ +%endif # end php_mapscript -DWITH_POSTGIS=TRUE \ -DWITH_PROJ=TRUE \ -DWITH_PYTHON=TRUE \ @@ -204,8 +211,10 @@ make %{?_smp_mflags} %install mkdir -p %{buildroot}%{_libexecdir} +%if 0%{php_mapscript} mkdir -p %{buildroot}%{php_inidir} mkdir -p %{buildroot}%{php_extdir} +%endif # end php_mapscript mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/%{name} mkdir -p %{buildroot}%{_includedir}/%{name}/ @@ -223,12 +232,14 @@ install -p -m 644 *.h %{buildroot}%{_includedir}/%{name}/ cd build make DESTDIR=%{buildroot} install %{?_smp_mflags} +%if 0%{php_mapscript} # install php config file mkdir -p %{buildroot}%{php_inidir} cat > %{buildroot}%{php_inidir}/%{ini_name} < - 7.0.1-3.git6ae2bc6 +- Disable PHP support. + * Sat May 14 2016 Jitka Plesnikova - 7.0.1-2.git6ae2bc6 - Perl 5.24 rebuild