39 Commits

Author SHA256 Message Date
044beaf8e5 Accepting request 1194774 from Application:Geo
- Add 0001-Fix-compilation-errors-with-libxml2-2.12.patch

OBS-URL: https://build.opensuse.org/request/show/1194774
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mapserver?expand=0&rev=8
2024-08-20 14:13:34 +00:00
OBS User unknown
2b3f628a12 [info=07d681639e5e67c724dc128237ee247c2fd2484ad005a7c9875aefcb70f99a09]
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=149
2024-08-19 20:32:50 +00:00
edd6b54763 [info=401f5142b019416ff5814932f096e849c9853e1cd1ace48c8baf65200cb6dfed]
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=148
2024-08-19 20:25:18 +00:00
401f5142b0 Accepting request 1153756 from Application:Geo
OBS-URL: https://build.opensuse.org/request/show/1153756
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mapserver?expand=0&rev=7
2024-03-01 22:36:48 +00:00
5acc3f30f7 Accepting request 1153753 from home:dimstar:Factory
- BuildRequire proj-devel instead of the long deprecated name
  libproj-devel.

OBS-URL: https://build.opensuse.org/request/show/1153753
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=146
2024-03-01 07:56:13 +00:00
b0b74112bb Accepting request 1111509 from Application:Geo
curate changelog

OBS-URL: https://build.opensuse.org/request/show/1111509
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mapserver?expand=0&rev=6
2023-09-15 20:02:27 +00:00
6e6b844c2a curate changelog
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=144
2023-09-15 09:35:30 +00:00
09a7aa388c Accepting request 1110932 from Application:Geo
- update to 8.0.1 Many changes, see
  https://www.mapserver.org/development/changelog/changelog-8-0.html

OBS-URL: https://build.opensuse.org/request/show/1110932
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mapserver?expand=0&rev=5
2023-09-14 14:25:26 +00:00
958533df4c OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=142 2023-09-13 16:38:18 +00:00
77a2707f01 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=141 2023-09-13 16:37:24 +00:00
dd3e72f74b fix build
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=140
2023-09-13 16:28:44 +00:00
a12a3603e8 Accepting request 1033752 from Application:Geo
- Enable PHP8 module build in Tumbleweed again since newer SWIG
  is available. New subpackage php-mapscriptng emitted as a result.
  [boo#1204736]

OBS-URL: https://build.opensuse.org/request/show/1033752
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mapserver?expand=0&rev=4
2022-11-06 11:42:15 +00:00
78be46446b Require swig-4.1 for php(8) code
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=138
2022-11-05 22:49:05 +00:00
b0c71b5e5b - Enable PHP8 module build in Tumbleweed again since newer SWIG
is available. New subpackage php-mapscriptng emitted as a result.
  [boo#1204736]

OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=137
2022-11-05 22:41:54 +00:00
fe07403ff7 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
2022-10-10 16:47:19 +00:00
038641944e OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=135 2022-10-09 08:57:17 +00:00
0d59903057 leap15.3 build fix after patch removal
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=134
2022-10-09 08:44:09 +00:00
891b3bfc81 - Update to release 8
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=133
2022-10-08 22:07:18 +00:00
88d73ccfee Accepting request 991276 from Application:Geo
OBS-URL: https://build.opensuse.org/request/show/991276
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mapserver?expand=0&rev=2
2022-07-28 18:58:06 +00:00
dc134a0636 Accepting request 991267 from home:bmanojlovic:branches:Application:Geo
- re-enable postgresql support...

OBS-URL: https://build.opensuse.org/request/show/991267
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=131
2022-07-26 15:37:15 +00:00
bd2c19a857 Accepting request 966846 from Application:Geo
OBS-URL: https://build.opensuse.org/request/show/966846
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mapserver?expand=0&rev=1
2022-04-04 17:27:08 +00:00
e9e2422fff reinstate mapserver-7.6.1-fix_python_install_path.patch
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=129
2022-04-04 14:15:10 +00:00
ebdf301592 Complete the Tumbleweed fix
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=128
2022-04-02 15:22:02 +00:00
2371c1582a - Make the package build on current Tumbleweed again
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=127
2022-03-16 11:58:55 +00:00
11953a5530 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=126 2022-03-08 11:44:11 +00:00
0bab8b1045 Accepting request 868371 from home:jengelh:branches:Application:Geo
- Update to release 7.6.2

OBS-URL: https://build.opensuse.org/request/show/868371
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=119
2021-02-01 15:15:00 +00:00
f8283f404b Accepting request 864482 from home:jengelh:branches:Application:Geo
- Drop BuildRequires on binary library packages; this is wrong.
- Drop excessive runtime package requirements.
(there is no requirement to run /usr/bin/mapserv with SQL, let alone apache.
It's just fine from a command-line.)

OBS-URL: https://build.opensuse.org/request/show/864482
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=118
2021-02-01 09:30:54 +00:00
2b385e7cf4 Accepting request 858394 from home:jengelh:branches:Application:Geo
- Modernize and ready specfile for Factory

OBS-URL: https://build.opensuse.org/request/show/858394
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=117
2020-12-24 07:50:43 +00:00
23aa380fd0 Accepting request 833123 from home:bmanojlovic:branches:Application:Geo
- add USE_PROJ to compile flags to enable reprojections (TILE support)

OBS-URL: https://build.opensuse.org/request/show/833123
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=116
2020-09-09 08:01:38 +00:00
c0f6885193 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
2020-09-08 08:40:59 +00:00
e14ba9d7cf disable python
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=114
2019-06-14 10:01:26 +00:00
734a90427c python fixes, still not working
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=113
2019-06-14 09:57:29 +00:00
a1a7092d5e disable ruby, fix build with postgresql 11
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=112
2019-06-14 09:36:38 +00:00
6a8ec14b71 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=111 2019-05-17 09:51:44 +00:00
0a284cebfa OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=110 2019-05-17 09:32:53 +00:00
6acbb3f0b6 update, still has a build failure (ruby)
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=109
2019-05-17 09:28:17 +00:00
5426710b9a fix build
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=108
2018-09-13 11:20:07 +00:00
27e4ba5dde fix build
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=107
2018-09-13 11:19:17 +00:00
285794b645 drop beta
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=106
2018-09-13 09:59:28 +00:00
7 changed files with 100 additions and 53 deletions

View File

@@ -0,0 +1,50 @@
From 2cea5a12a35b396800296cb1c3ea08eb00b29760 Mon Sep 17 00:00:00 2001
From: Even Rouault <even.rouault@spatialys.com>
Date: Sat, 18 Nov 2023 22:13:46 +0100
Subject: [PATCH] Fix compilation errors with libxml2 2.12
---
mapows.c | 2 +-
mapwcs.cpp | 2 +-
mapwcs20.cpp | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
Index: mapserver-8.0.1/mapows.c
===================================================================
--- mapserver-8.0.1.orig/mapows.c
+++ mapserver-8.0.1/mapows.c
@@ -168,7 +168,7 @@ static int msOWSPreParseRequest(cgiReque
#endif
if (ows_request->document == NULL
|| (root = xmlDocGetRootElement(ows_request->document)) == NULL) {
- xmlErrorPtr error = xmlGetLastError();
+ const xmlError *error = xmlGetLastError();
msSetError(MS_OWSERR, "XML parsing error: %s",
"msOWSPreParseRequest()", error->message);
return MS_FAILURE;
Index: mapserver-8.0.1/mapwcs.cpp
===================================================================
--- mapserver-8.0.1.orig/mapwcs.cpp
+++ mapserver-8.0.1/mapwcs.cpp
@@ -362,7 +362,7 @@ static int msWCSParseRequest(cgiRequestO
/* parse to DOM-Structure and get root element */
if((doc = xmlParseMemory(request->postrequest, strlen(request->postrequest)))
== NULL) {
- xmlErrorPtr error = xmlGetLastError();
+ const xmlError *error = xmlGetLastError();
msSetError(MS_WCSERR, "XML parsing error: %s",
"msWCSParseRequest()", error->message);
return MS_FAILURE;
Index: mapserver-8.0.1/mapwcs20.cpp
===================================================================
--- mapserver-8.0.1.orig/mapwcs20.cpp
+++ mapserver-8.0.1/mapwcs20.cpp
@@ -1446,7 +1446,7 @@ int msWCSParseRequest20(mapObj *map,
/* parse to DOM-Structure and get root element */
if(doc == NULL) {
- xmlErrorPtr error = xmlGetLastError();
+ const xmlError *error = xmlGetLastError();
msSetError(MS_WCSERR, "XML parsing error: %s",
"msWCSParseRequest20()", error->message);
return MS_FAILURE;

View File

@@ -1,4 +1,4 @@
mtime: 1728904273
commit: 0cfa2b58a711a2a09b1b64d0333c25ce77482d47d42818a266e9b660e57c93c8
mtime: 1724099836
commit: 07d681639e5e67c724dc128237ee247c2fd2484ad005a7c9875aefcb70f99a09
url: https://src.opensuse.org/jengelh/mapserver
revision: master

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3a300c5eff585ab1b2e728e8c148cf6ad1fef2d53a14c3e51c9a001e9e1b56b6
oid sha256:a4d7cc1de98f4c39d57a8658062b5eebb153a7ecc06996b523a5c283f5d5c02b
size 256

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

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

Binary file not shown.

View File

@@ -1,13 +1,3 @@
-------------------------------------------------------------------
Sun Oct 13 20:43:59 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update to release 8.2.2
* Use EPSGTreatsAsLatLong and EPSGTreatsAsNorthingEasting to
determine inverted axis
- Delete 0001-Fix-compilation-errors-with-libxml2-2.12.patch
(merged)
- Perform multipython build
-------------------------------------------------------------------
Mon Aug 19 20:30:15 UTC 2024 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -30,18 +30,17 @@
%bcond_with php
%define php_name php7
%endif
%{?sle15_python_module_pythons}
Name: mapserver
Version: 8.2.2
Version: 8.0.1
Release: 0
Summary: Environment for building spatially-enabled internet applications
License: MIT
Group: Productivity/Networking/Web/Servers
#Git-Clone: https://github.com/MapServer/MapServer
URL: https://www.mapserver.org/
Source: https://download.osgeo.org/mapserver/%{name}-%{version}.tar.gz
Source9: %{name}-rpmlintrc
Patch1: 0001-Fix-compilation-errors-with-libxml2-2.12.patch
BuildRequires: FastCGI-devel
BuildRequires: apache2-devel
BuildRequires: autoconf
@@ -77,7 +76,6 @@ BuildRequires: postgresql-server-devel >= 9.1
BuildRequires: libprotobuf-c-devel
BuildRequires: php8-devel
BuildRequires: proj
BuildRequires: python-rpm-macros
BuildRequires: readline-devel
BuildRequires: rpm
%if 0%{with php}
@@ -89,15 +87,8 @@ BuildRequires: update-alternatives
BuildRequires: xorg-x11-libXpm-devel
BuildRequires: zlib-devel
BuildRequires: perl(ExtUtils::MakeMaker)
%if %{with python}
BuildRequires: %python_module devel
BuildRequires: %python_module wheel
BuildRequires: %python_module pip
BuildRequires: %python_module setuptools >= 40.8.0
%endif
Requires: %{libname} = %{version}-%{release}
Requires: proj
%python_subpackages
%description
Mapserver is an internet mapping program that converts GIS data to
@@ -147,7 +138,12 @@ within the Perl programming language.
%package -n python-mapscript
Summary: Python/Mapscript map making extensions to Python
Group: Development/Languages/Python
%if 0%{with python}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%endif
Requires: %{libname} = %{version}-%{release}
Requires: python3-base
Provides: mapserver-python = %{version}-%{release}
Obsoletes: mapserver-python < %{version}-%{release}
@@ -202,6 +198,8 @@ against the C Mapserver library.
%autosetup -p1
%build
mkdir build
cd build
#Pre export the PREFIX ( having it on the command line doesn't expand correctly for
#dynamic postgresql location
export CMAKE_PREFIX_PATH="%{_includedir}:%{_includedir}/fastcgi:%%(pg_config --includedir):%%(pg_config --includedir-server):%%(pg_config --libdir)"
@@ -210,9 +208,6 @@ export CXXFLAGS="%{optflags} -fno-strict-aliasing"
#specify all options and play with true/false
#so we always know which option are included in our build.
%{python_expand #
mkdir b$python
pushd b$python
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
@@ -223,7 +218,6 @@ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_SKIP_INSTALL_RPATH=ON \
-DCMAKE_SKIP_RPATH=ON \
-DPython_EXECUTABLE:PATH="/usr/bin/$python" \
-DWITH_CAIRO=TRUE \
-DWITH_CLIENT_WFS=TRUE \
-DWITH_CLIENT_WMS=TRUE \
@@ -276,20 +270,28 @@ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
..
%make_build
popd
}
%check
# make test
%install
mkdir -p %{buildroot}/%{_sbindir}
mkdir -p %{buildroot}/%{_cgibindir}
mkdir -p %{buildroot}%{_libdir}/%{php_name}/extensions
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}%{python_sitearch}/
mkdir -p %{buildroot}/%{_includedir}/%{name}
#Comment this look a bit wired to be useful sub-dir should also needed
# agg, etc
cp *.h %{buildroot}/%{_includedir}/%{name}/
%{python_expand #
pushd b$python
# fix some exec bits essentially on examples to make rpmlint happy
# and avoid rpm adding require
find mapscript/ -type f "(" -iname "*.p[ly]" -o -iname "*.rb" -o -iname "*.dist" ")" -exec chmod -x {} +
cd build
%make_install
popd
}
cd ..
%if 0%{with php}
mkdir -p %{buildroot}%{_sysconfdir}/%{php_name}/conf.d/
@@ -314,8 +316,7 @@ rm -rf %{buildroot}%{_docdir}/%{name}/tests/vera \
%{buildroot}%{_docdir}/%{name}-%{version}/tests/vera
chmod a+x "%{buildroot}/%{_libdir}/libjavamapscript.so"
rm -fv "%buildroot/etc/mapserver-sample.conf" \
"%buildroot/usr/etc/mapserver-sample.conf"
rm -fv "%buildroot/%_sysconfdir/mapserver-sample.conf"
echo >"mapserver.conf" <<-EOF
CONFIG
ENV
@@ -324,10 +325,17 @@ echo >"mapserver.conf" <<-EOF
END
EOF
%ldconfig_scriptlets -n %libname
%if 0%{?suse_version} < 1550
mkdir -pv "%buildroot/%python3_sitearch"
mv -v "%buildroot/%python3_sitelib"/* "%buildroot/%python3_sitearch/"
%endif
%files -n %name
%doc README.md HISTORY.md MIGRATION_GUIDE.md mapserver.conf etc/mapserver-sample.conf
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files
%doc README.md HISTORY.md MIGRATION_GUIDE.md mapserver.conf
%doc symbols tests fonts
%{_bindir}/coshp
%{_bindir}/map2img
@@ -340,7 +348,6 @@ EOF
%{_bindir}/msencrypt
%{_bindir}/shptreetst
%{_bindir}/shptreevis
%dir %_cgibindir
%{_cgibindir}/mapserv
%{_cgibindir}/legend
%{_cgibindir}/scalebar
@@ -355,23 +362,23 @@ EOF
%endif
%files -n perl-mapscript
%doc src/mapscript/perl/examples
%doc mapscript/perl/examples
%dir %{perl_vendorarch}/auto/mapscript
%{perl_vendorarch}/auto/mapscript/*
%{perl_vendorarch}/mapscript.pm
%if 0%{with python}
%files %python_files
%doc src/mapscript/python/README.rst
%doc src/mapscript/python/examples
%doc src/mapscript/python/tests
%python_sitearch/mapscript*
%files -n python-mapscript
%doc mapscript/python/README.rst
%doc mapscript/python/examples
%doc mapscript/python/tests
%{python3_sitearch}/*
%endif
%files -n libjavamapscript
%doc src/mapscript/java/README
%doc src/mapscript/java/examples
%doc src/mapscript/java/tests
%doc mapscript/java/README
%doc mapscript/java/examples
%doc mapscript/java/tests
%{_libdir}/libjavamapscript.so
%if 0%{with ruby}
@@ -381,7 +388,7 @@ EOF
%{rb_sitearchdir}/mapscript.so
%endif
%files -n mapserver-devel
%files devel
%dir %{_includedir}/mapserver
%{_includedir}/mapserver/*
%{_libdir}/libmapserver.so