Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
0cfa2b58a7 | |||
07d681639e |
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:79d23595ef95d61d3d728ae5e60850a3dbfbf58a46953b4fdc8e6e0ffe5748ba
|
|
||||||
size 2950164
|
|
BIN
mapserver-8.2.2.tar.gz
(Stored with Git LFS)
Normal file
BIN
mapserver-8.2.2.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- Add 0001-Fix-compilation-errors-with-libxml2-2.12.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 1 07:34:53 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
Fri Mar 1 07:34:53 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
@ -30,13 +30,15 @@
|
|||||||
%bcond_with php
|
%bcond_with php
|
||||||
%define php_name php7
|
%define php_name php7
|
||||||
%endif
|
%endif
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
|
|
||||||
Name: mapserver
|
Name: mapserver
|
||||||
Version: 8.0.1
|
Version: 8.2.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Environment for building spatially-enabled internet applications
|
Summary: Environment for building spatially-enabled internet applications
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Productivity/Networking/Web/Servers
|
Group: Productivity/Networking/Web/Servers
|
||||||
|
#Git-Clone: https://github.com/MapServer/MapServer
|
||||||
URL: https://www.mapserver.org/
|
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
|
||||||
@ -75,6 +77,7 @@ BuildRequires: postgresql-server-devel >= 9.1
|
|||||||
BuildRequires: libprotobuf-c-devel
|
BuildRequires: libprotobuf-c-devel
|
||||||
BuildRequires: php8-devel
|
BuildRequires: php8-devel
|
||||||
BuildRequires: proj
|
BuildRequires: proj
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: readline-devel
|
BuildRequires: readline-devel
|
||||||
BuildRequires: rpm
|
BuildRequires: rpm
|
||||||
%if 0%{with php}
|
%if 0%{with php}
|
||||||
@ -86,8 +89,15 @@ BuildRequires: update-alternatives
|
|||||||
BuildRequires: xorg-x11-libXpm-devel
|
BuildRequires: xorg-x11-libXpm-devel
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
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: %{libname} = %{version}-%{release}
|
||||||
Requires: proj
|
Requires: proj
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Mapserver is an internet mapping program that converts GIS data to
|
Mapserver is an internet mapping program that converts GIS data to
|
||||||
@ -137,12 +147,7 @@ within the Perl programming language.
|
|||||||
%package -n python-mapscript
|
%package -n python-mapscript
|
||||||
Summary: Python/Mapscript map making extensions to Python
|
Summary: Python/Mapscript map making extensions to Python
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
%if 0%{with python}
|
|
||||||
BuildRequires: python3-devel
|
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
%endif
|
|
||||||
Requires: %{libname} = %{version}-%{release}
|
Requires: %{libname} = %{version}-%{release}
|
||||||
Requires: python3-base
|
|
||||||
Provides: mapserver-python = %{version}-%{release}
|
Provides: mapserver-python = %{version}-%{release}
|
||||||
Obsoletes: mapserver-python < %{version}-%{release}
|
Obsoletes: mapserver-python < %{version}-%{release}
|
||||||
|
|
||||||
@ -197,8 +202,6 @@ against the C Mapserver library.
|
|||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir build
|
|
||||||
cd build
|
|
||||||
#Pre export the PREFIX ( having it on the command line doesn't expand correctly for
|
#Pre export the PREFIX ( having it on the command line doesn't expand correctly for
|
||||||
#dynamic postgresql location
|
#dynamic postgresql location
|
||||||
export CMAKE_PREFIX_PATH="%{_includedir}:%{_includedir}/fastcgi:%%(pg_config --includedir):%%(pg_config --includedir-server):%%(pg_config --libdir)"
|
export CMAKE_PREFIX_PATH="%{_includedir}:%{_includedir}/fastcgi:%%(pg_config --includedir):%%(pg_config --includedir-server):%%(pg_config --libdir)"
|
||||||
@ -207,6 +210,9 @@ export CXXFLAGS="%{optflags} -fno-strict-aliasing"
|
|||||||
|
|
||||||
#specify all options and play with true/false
|
#specify all options and play with true/false
|
||||||
#so we always know which option are included in our build.
|
#so we always know which option are included in our build.
|
||||||
|
%{python_expand #
|
||||||
|
mkdir b$python
|
||||||
|
pushd b$python
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||||
-DCMAKE_SKIP_RPATH=ON \
|
-DCMAKE_SKIP_RPATH=ON \
|
||||||
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
|
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
|
||||||
@ -217,6 +223,7 @@ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|||||||
-DCMAKE_BUILD_TYPE="Release" \
|
-DCMAKE_BUILD_TYPE="Release" \
|
||||||
-DCMAKE_SKIP_INSTALL_RPATH=ON \
|
-DCMAKE_SKIP_INSTALL_RPATH=ON \
|
||||||
-DCMAKE_SKIP_RPATH=ON \
|
-DCMAKE_SKIP_RPATH=ON \
|
||||||
|
-DPython_EXECUTABLE:PATH="/usr/bin/$python" \
|
||||||
-DWITH_CAIRO=TRUE \
|
-DWITH_CAIRO=TRUE \
|
||||||
-DWITH_CLIENT_WFS=TRUE \
|
-DWITH_CLIENT_WFS=TRUE \
|
||||||
-DWITH_CLIENT_WMS=TRUE \
|
-DWITH_CLIENT_WMS=TRUE \
|
||||||
@ -269,28 +276,20 @@ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|||||||
..
|
..
|
||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
|
popd
|
||||||
|
}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# make test
|
# make test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}/%{_sbindir}
|
|
||||||
mkdir -p %{buildroot}/%{_cgibindir}
|
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}/
|
|
||||||
|
|
||||||
# fix some exec bits essentially on examples to make rpmlint happy
|
%{python_expand #
|
||||||
# and avoid rpm adding require
|
pushd b$python
|
||||||
find mapscript/ -type f "(" -iname "*.p[ly]" -o -iname "*.rb" -o -iname "*.dist" ")" -exec chmod -x {} +
|
|
||||||
|
|
||||||
cd build
|
|
||||||
%make_install
|
%make_install
|
||||||
cd ..
|
popd
|
||||||
|
}
|
||||||
|
|
||||||
%if 0%{with php}
|
%if 0%{with php}
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/%{php_name}/conf.d/
|
mkdir -p %{buildroot}%{_sysconfdir}/%{php_name}/conf.d/
|
||||||
@ -315,7 +314,8 @@ 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"
|
rm -fv "%buildroot/etc/mapserver-sample.conf" \
|
||||||
|
"%buildroot/usr/etc/mapserver-sample.conf"
|
||||||
echo >"mapserver.conf" <<-EOF
|
echo >"mapserver.conf" <<-EOF
|
||||||
CONFIG
|
CONFIG
|
||||||
ENV
|
ENV
|
||||||
@ -324,17 +324,10 @@ echo >"mapserver.conf" <<-EOF
|
|||||||
END
|
END
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
%if 0%{?suse_version} < 1550
|
%ldconfig_scriptlets -n %libname
|
||||||
mkdir -pv "%buildroot/%python3_sitearch"
|
|
||||||
mv -v "%buildroot/%python3_sitelib"/* "%buildroot/%python3_sitearch/"
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%post -n %{libname} -p /sbin/ldconfig
|
%files -n %name
|
||||||
|
%doc README.md HISTORY.md MIGRATION_GUIDE.md mapserver.conf etc/mapserver-sample.conf
|
||||||
%postun -n %{libname} -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%files
|
|
||||||
%doc README.md HISTORY.md MIGRATION_GUIDE.md mapserver.conf
|
|
||||||
%doc symbols tests fonts
|
%doc symbols tests fonts
|
||||||
%{_bindir}/coshp
|
%{_bindir}/coshp
|
||||||
%{_bindir}/map2img
|
%{_bindir}/map2img
|
||||||
@ -347,6 +340,7 @@ mv -v "%buildroot/%python3_sitelib"/* "%buildroot/%python3_sitearch/"
|
|||||||
%{_bindir}/msencrypt
|
%{_bindir}/msencrypt
|
||||||
%{_bindir}/shptreetst
|
%{_bindir}/shptreetst
|
||||||
%{_bindir}/shptreevis
|
%{_bindir}/shptreevis
|
||||||
|
%dir %_cgibindir
|
||||||
%{_cgibindir}/mapserv
|
%{_cgibindir}/mapserv
|
||||||
%{_cgibindir}/legend
|
%{_cgibindir}/legend
|
||||||
%{_cgibindir}/scalebar
|
%{_cgibindir}/scalebar
|
||||||
@ -361,23 +355,23 @@ mv -v "%buildroot/%python3_sitelib"/* "%buildroot/%python3_sitearch/"
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n perl-mapscript
|
%files -n perl-mapscript
|
||||||
%doc mapscript/perl/examples
|
%doc src/mapscript/perl/examples
|
||||||
%dir %{perl_vendorarch}/auto/mapscript
|
%dir %{perl_vendorarch}/auto/mapscript
|
||||||
%{perl_vendorarch}/auto/mapscript/*
|
%{perl_vendorarch}/auto/mapscript/*
|
||||||
%{perl_vendorarch}/mapscript.pm
|
%{perl_vendorarch}/mapscript.pm
|
||||||
|
|
||||||
%if 0%{with python}
|
%if 0%{with python}
|
||||||
%files -n python-mapscript
|
%files %python_files
|
||||||
%doc mapscript/python/README.rst
|
%doc src/mapscript/python/README.rst
|
||||||
%doc mapscript/python/examples
|
%doc src/mapscript/python/examples
|
||||||
%doc mapscript/python/tests
|
%doc src/mapscript/python/tests
|
||||||
%{python3_sitearch}/*
|
%python_sitearch/mapscript*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n libjavamapscript
|
%files -n libjavamapscript
|
||||||
%doc mapscript/java/README
|
%doc src/mapscript/java/README
|
||||||
%doc mapscript/java/examples
|
%doc src/mapscript/java/examples
|
||||||
%doc mapscript/java/tests
|
%doc src/mapscript/java/tests
|
||||||
%{_libdir}/libjavamapscript.so
|
%{_libdir}/libjavamapscript.so
|
||||||
|
|
||||||
%if 0%{with ruby}
|
%if 0%{with ruby}
|
||||||
@ -387,7 +381,7 @@ mv -v "%buildroot/%python3_sitelib"/* "%buildroot/%python3_sitearch/"
|
|||||||
%{rb_sitearchdir}/mapscript.so
|
%{rb_sitearchdir}/mapscript.so
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files -n mapserver-devel
|
||||||
%dir %{_includedir}/mapserver
|
%dir %{_includedir}/mapserver
|
||||||
%{_includedir}/mapserver/*
|
%{_includedir}/mapserver/*
|
||||||
%{_libdir}/libmapserver.so
|
%{_libdir}/libmapserver.so
|
||||||
|
Loading…
Reference in New Issue
Block a user