1
0
forked from pool/mapserver

Accepting request 832766 from home:bmanojlovic:branches:Application:Geo

- added _with_python 1 macro so if in future breakage it can be unset 
  no need to specially change .spec file
- updated to latest version 7.6.1 
- fix building on opensuse leap 15.X
- added mapserver-7.6.1-fix_python_install_path.patch to fix
  python install location defaulting to arch independent location
- a lot of changes between versions please look at:
  https://mapserver.org/development/changelog/changelog-7-6.html#changelog-7-6
  and at this location:
  https://github.com/mapserver/mapserver/blob/branch-7-6/HISTORY.TXT
- security fixes from older versions: CVE-2020-10872 and CVE-2020-10873

OBS-URL: https://build.opensuse.org/request/show/832766
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=115
This commit is contained in:
Martin Pluskal 2020-09-08 08:40:59 +00:00 committed by Git OBS Bridge
parent e14ba9d7cf
commit c0f6885193
5 changed files with 36 additions and 5 deletions

View File

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

View File

@ -0,0 +1,13 @@
Index: mapscript/python/CMakeLists.txt
===================================================================
--- mapscript/python/CMakeLists.txt.orig 2020-07-31 19:11:56.000000000 +0200
+++ mapscript/python/CMakeLists.txt 2020-09-05 14:44:10.142799065 +0200
@@ -146,7 +146,7 @@ install(
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}
)
"

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

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

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Sat Sep 5 09:14:07 UTC 2020 - Boris Manojlovic <boris@steki.net>
- updated to latest version 7.6.1
- fix building on opensuse leap 15.X
- added mapserver-7.6.1-fix_python_install_path.patch to fix
python install location defaulting to arch independent location
- a lot of changes between versions please look at:
https://mapserver.org/development/changelog/changelog-7-6.html#changelog-7-6
and at this location:
https://github.com/mapserver/mapserver/blob/branch-7-6/HISTORY.TXT
- security fixes from older versions: CVE-2020-10872 and CVE-2020-10873
-------------------------------------------------------------------
Fri May 17 09:05:04 UTC 2019 - Dirk Stoecker <opensuse@dstoecker.de>

View File

@ -21,6 +21,8 @@
%bcond_with ruby
#
# define python for future reference
%define _with_python 1
%define libname libmapserver2
%define _cgibindir /srv/www/cgi-bin
%if 0%{?suse_version} >= 1500
@ -30,13 +32,15 @@
%endif
Name: mapserver
Version: 7.4.0
Version: 7.6.1
Release: 0
Summary: Environment for building spatially-enabled internet applications
License: MIT
Group: Productivity/Networking/Web/Servers
Url: https://www.mapserver.org/
Source: https://download.osgeo.org/mapserver/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM mapserver-7.6.1-fix_python_install_path.patch fixing python installation path badly defaulting to arch independent location
Patch0: mapserver-7.6.1-fix_python_install_path.patch
BuildRequires: FastCGI-devel
BuildRequires: apache2-devel
BuildRequires: autoconf
@ -68,7 +72,7 @@ BuildRequires: openjpeg2-devel
BuildRequires: pam
BuildRequires: pam-devel
BuildRequires: postgresql-devel >= 9.1
%if 0%{?suse_version} >= 1510
%if 0%{?suse_version} >= 1500
BuildRequires: postgresql-server-devel >= 9.1
%endif
BuildRequires: proj
@ -206,6 +210,7 @@ against the C Mapserver library.
%prep
%setup -q -n %{name}-%{version}
%global _default_patch_fuzz 5
%patch0 -p0
%build
mkdir build