1
0
forked from pool/mapserver

Accepting request 1009075 from Application:Geo

- Update to release 8

OBS-URL: https://build.opensuse.org/request/show/1009075
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mapserver?expand=0&rev=3
This commit is contained in:
Fabian Vogt 2022-10-10 16:47:19 +00:00 committed by Git OBS Bridge
commit fe07403ff7
5 changed files with 40 additions and 28 deletions

View File

@ -1,18 +0,0 @@
# PATCH-FIX-UPSTREAM mapserver-7.6.1-fix_python_install_path.patch fixing python installation path badly defaulting to arch independent location
There is a _mapserver.so file, which means the installation has to happen to sitearch.
This patch makes it so (i.e. installation to /usr/lib64/python... rather than
/usr/lib/python...)
diff -Nur mapserver-7.6.3/mapscript/python/CMakeLists.txt new/mapscript/python/CMakeLists.txt
--- mapserver-7.6.3/mapscript/python/CMakeLists.txt 2021-04-30 23:26:25.000000000 +0200
+++ new/mapscript/python/CMakeLists.txt 2021-05-31 20:53:16.269084059 +0200
@@ -146,7 +146,7 @@
endif()
execute_process(
- COMMAND ${PYTHON_EXECUTABLE} setup.py install \${PYTHON_ROOT} \${PYTHON_PREFIX}
+ COMMAND ${PYTHON_EXECUTABLE} setup.py install --install-lib=${PYTHON_SITE_PACKAGES} \${PYTHON_ROOT} \${PYTHON_PREFIX}
WORKING_DIRECTORY ${OUTPUT_FOLDER}
)
"

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b46c884bc42bd49873806a05325872e4418fc34e97824d4e13d398e86ea474ac
size 2718735

3
mapserver-8.0.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bb7ee625eb6fdce9bd9851f83664442845d70d041e449449e88ac855e97d773c
size 2945524

View File

@ -1,3 +1,23 @@
-------------------------------------------------------------------
Sat Oct 8 20:50:04 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Update to release 8
* MapServer now requires a config file. To get back mapserver7
behavior, copy /usr/share/doc/packages/mapserver/mapserver.conf
to mapserver.conf once.
* The shp2img utility has been renamed to map2img
* FlatGeobuf is now supported natively
* Initial OGC API support
* PHP native MapScript has been removed, in place of PHPNG
(SWIG) MapScript, and PHP unit tests have been re-enabled
* New labeling centerline GEOMTRANSFORM method for polygons
* Numerical validation of mapfile entries
* Removed various deprecated mapfile parameters
* New coshp utility to sort shapefile contents as well as sort
the associated qix spatial index.
- Drop mapserver-7.6.1-fix_python_install_path.patch
(no longer applicable)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jul 26 14:54:06 UTC 2022 - Boris Manojlovic <boris@steki.net> Tue Jul 26 14:54:06 UTC 2022 - Boris Manojlovic <boris@steki.net>

View File

@ -30,7 +30,7 @@
%endif %endif
Name: mapserver Name: mapserver
Version: 7.6.4 Version: 8.0.0
Release: 0 Release: 0
Summary: Environment for building spatially-enabled internet applications Summary: Environment for building spatially-enabled internet applications
License: MIT License: MIT
@ -39,10 +39,7 @@ URL: https://www.mapserver.org/
Source: https://download.osgeo.org/mapserver/%{name}-%{version}.tar.gz Source: https://download.osgeo.org/mapserver/%{name}-%{version}.tar.gz
Source9: %{name}-rpmlintrc Source9: %{name}-rpmlintrc
# Known issues: # Known issues:
# - /usr/share/cmake/Modules/FindPostgreSQL.cmake is silly
# (the postgresql version list is manual), so no postgresql
# - swig 4.0 can't do php8, gotta wait for 4.1 so no php # - swig 4.0 can't do php8, gotta wait for 4.1 so no php
Patch0: mapserver-7.6.1-fix_python_install_path.patch
BuildRequires: FastCGI-devel BuildRequires: FastCGI-devel
BuildRequires: apache2-devel BuildRequires: apache2-devel
BuildRequires: autoconf BuildRequires: autoconf
@ -103,7 +100,6 @@ Mapserver library for mapserver or mapscript module. you need this lib to run ma
or any of the mapscript module (php, java, python, ruby) or any of the mapscript module (php, java, python, ruby)
# We don't require apache2_mod-php8 users could have php5 running # We don't require apache2_mod-php8 users could have php5 running
# with other modes (cgi, php-fpm, etc) # with other modes (cgi, php-fpm, etc)
%package -n php-mapscript %package -n php-mapscript
@ -315,17 +311,31 @@ rm -rf %{buildroot}%{_docdir}/%{name}/tests/vera \
%{buildroot}%{_docdir}/%{name}-%{version}/tests/vera %{buildroot}%{_docdir}/%{name}-%{version}/tests/vera
chmod a+x "%{buildroot}/%{_libdir}/libjavamapscript.so" chmod a+x "%{buildroot}/%{_libdir}/libjavamapscript.so"
rm -fv "%buildroot/%_sysconfdir/mapserver-sample.conf"
echo >"mapserver.conf" <<-EOF
CONFIG
ENV
MS_MAP_PATTERN "^"
END
END
EOF
%if 0%{?suse_version} < 1550
mkdir -pv "%buildroot/%python3_sitearch"
mv -v "%buildroot/%python3_sitelib"/* "%buildroot/%python3_sitearch/"
%endif
%post -n %{libname} -p /sbin/ldconfig %post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig
%files %files
%doc README.rst HISTORY.TXT %doc README.rst HISTORY.TXT mapserver.conf
%doc MIGRATION_GUIDE.txt %doc MIGRATION_GUIDE.txt
%doc symbols tests %doc symbols tests
%doc fonts %doc fonts
%{_bindir}/shp2img %{_bindir}/coshp
%{_bindir}/map2img
%{_bindir}/shptree %{_bindir}/shptree
%{_bindir}/sortshp %{_bindir}/sortshp
%{_bindir}/tile4ms %{_bindir}/tile4ms