2013-11-04 11:37:28 +01:00
|
|
|
#
|
2017-04-05 19:23:30 +02:00
|
|
|
# spec file for package mapserver
|
2013-11-04 11:37:28 +01:00
|
|
|
#
|
2023-09-13 18:28:44 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2015-01-19 22:21:14 +01:00
|
|
|
# Copyright (c) 2014 Ioda-Net Sàrl, Charmoille, Switzerland. Bruno Friedmann (tigerfoot)
|
|
|
|
# Copyright (c) 2015 Angelos Tzotsos (kalxas)
|
2013-11-04 11:37:28 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
2017-04-05 19:23:30 +02:00
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
2013-11-04 11:37:28 +01:00
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2022-03-08 12:44:11 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-11-04 11:37:28 +01:00
|
|
|
#
|
2015-01-19 22:21:14 +01:00
|
|
|
|
2022-03-08 12:44:11 +01:00
|
|
|
|
|
|
|
%bcond_without python
|
2022-04-02 17:22:02 +02:00
|
|
|
%bcond_with ruby
|
2017-04-05 19:23:30 +02:00
|
|
|
%define libname libmapserver2
|
2015-01-19 22:21:14 +01:00
|
|
|
%define _cgibindir /srv/www/cgi-bin
|
2022-03-16 12:58:55 +01:00
|
|
|
%if 0%{?suse_version} >= 1550
|
2022-11-05 23:41:54 +01:00
|
|
|
# needs swig-4.1 for build
|
|
|
|
%bcond_without php
|
2022-03-16 12:58:55 +01:00
|
|
|
%define php_name php8
|
2018-06-07 17:35:25 +02:00
|
|
|
%else
|
2022-11-05 23:41:54 +01:00
|
|
|
%bcond_with php
|
2022-03-16 12:58:55 +01:00
|
|
|
%define php_name php7
|
2018-06-07 17:35:25 +02:00
|
|
|
%endif
|
2015-01-19 22:21:14 +01:00
|
|
|
|
|
|
|
Name: mapserver
|
2023-09-13 18:28:44 +02:00
|
|
|
Version: 8.0.1
|
2015-01-19 22:21:14 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Environment for building spatially-enabled internet applications
|
|
|
|
License: MIT
|
|
|
|
Group: Productivity/Networking/Web/Servers
|
2022-03-08 12:44:11 +01:00
|
|
|
URL: https://www.mapserver.org/
|
2018-09-13 11:59:28 +02:00
|
|
|
Source: https://download.osgeo.org/mapserver/%{name}-%{version}.tar.gz
|
2020-12-24 08:50:43 +01:00
|
|
|
Source9: %{name}-rpmlintrc
|
2015-01-19 22:21:14 +01:00
|
|
|
BuildRequires: FastCGI-devel
|
|
|
|
BuildRequires: apache2-devel
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: cairo-devel
|
|
|
|
BuildRequires: chrpath
|
|
|
|
BuildRequires: cmake >= 2.4
|
|
|
|
BuildRequires: freetype2-devel
|
|
|
|
BuildRequires: fribidi-devel
|
|
|
|
BuildRequires: gcc
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gd-devel >= 2.0.16
|
|
|
|
BuildRequires: giflib-devel
|
2018-06-07 13:51:21 +02:00
|
|
|
BuildRequires: harfbuzz-devel
|
2015-01-19 22:21:14 +01:00
|
|
|
BuildRequires: krb5-devel
|
2017-04-05 19:23:30 +02:00
|
|
|
BuildRequires: libcurl-devel
|
2015-01-19 22:21:14 +01:00
|
|
|
BuildRequires: libexpat-devel
|
|
|
|
BuildRequires: libgdal-devel >= 1.10
|
|
|
|
BuildRequires: libgeos-devel
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libproj-devel
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: libxslt-devel
|
|
|
|
BuildRequires: mysql-devel
|
|
|
|
BuildRequires: openjpeg2-devel
|
|
|
|
BuildRequires: pam
|
|
|
|
BuildRequires: pam-devel
|
2022-07-26 17:37:15 +02:00
|
|
|
BuildRequires: postgresql-devel >= 9.1
|
2020-09-08 10:40:59 +02:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2022-07-26 17:37:15 +02:00
|
|
|
BuildRequires: postgresql-server-devel >= 9.1
|
2022-03-16 12:58:55 +01:00
|
|
|
%endif
|
2018-06-07 13:51:21 +02:00
|
|
|
BuildRequires: libprotobuf-c-devel
|
2022-11-05 23:41:54 +01:00
|
|
|
BuildRequires: php8-devel
|
2022-03-08 12:44:11 +01:00
|
|
|
BuildRequires: proj
|
2015-01-19 22:21:14 +01:00
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: rpm
|
2022-11-05 23:49:05 +01:00
|
|
|
%if 0%{with php}
|
|
|
|
BuildRequires: swig >= 4.1
|
|
|
|
%else
|
2015-01-19 22:21:14 +01:00
|
|
|
BuildRequires: swig
|
2022-11-05 23:49:05 +01:00
|
|
|
%endif
|
2015-01-19 22:21:14 +01:00
|
|
|
BuildRequires: update-alternatives
|
|
|
|
BuildRequires: xorg-x11-libXpm-devel
|
2017-04-05 19:23:30 +02:00
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
2015-01-19 22:21:14 +01:00
|
|
|
Requires: %{libname} = %{version}-%{release}
|
2017-04-05 19:23:30 +02:00
|
|
|
Requires: proj
|
2015-01-19 22:21:14 +01:00
|
|
|
|
2008-03-16 18:15:39 +01:00
|
|
|
%description
|
|
|
|
Mapserver is an internet mapping program that converts GIS data to
|
2015-01-19 22:21:14 +01:00
|
|
|
map images in real time. With appropriate interface pages,
|
|
|
|
Mapserver can provide an interactive internet map based on
|
2008-03-16 18:15:39 +01:00
|
|
|
custom GIS data.
|
|
|
|
|
2013-11-04 11:37:28 +01:00
|
|
|
%package -n %{libname}
|
|
|
|
Summary: Mapsserver library for mapserver or mapscript module
|
2021-02-01 10:30:54 +01:00
|
|
|
Group: System/Libraries
|
2013-11-04 11:37:28 +01:00
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
Mapserver library for mapserver or mapscript module. you need this lib to run mapserver
|
|
|
|
or any of the mapscript module (php, java, python, ruby)
|
|
|
|
|
2022-11-05 23:41:54 +01:00
|
|
|
%package -n php-mapscriptng
|
|
|
|
Summary: PHP/MapscriptNG map making extensions to PHP
|
2018-09-13 11:59:28 +02:00
|
|
|
Group: Development/Libraries/Other
|
2013-11-04 11:37:28 +01:00
|
|
|
Requires: %{libname} = %{version}-%{release}
|
2015-01-19 22:21:14 +01:00
|
|
|
Provides: php-mapserver = %{version}-%{release}
|
|
|
|
Obsoletes: php-mapserver < %{version}-%{release}
|
2022-04-02 17:22:02 +02:00
|
|
|
%if 0%{with php}
|
2013-11-04 11:37:28 +01:00
|
|
|
BuildRequires: php-devel
|
2022-03-16 12:58:55 +01:00
|
|
|
%endif
|
2013-11-04 11:37:28 +01:00
|
|
|
Requires: php
|
|
|
|
Requires: php-gd
|
2023-09-13 18:38:18 +02:00
|
|
|
# We don't require apache2_mod-php8 users could have php5 running
|
|
|
|
# with other modes (cgi, php-fpm, etc)
|
2008-03-16 18:15:39 +01:00
|
|
|
|
2022-11-05 23:41:54 +01:00
|
|
|
%description -n php-mapscriptng
|
2008-08-26 15:12:25 +02:00
|
|
|
The PHP/Mapscript extension provides full map customization capabilities within the PHP scripting language.
|
2008-03-16 18:15:39 +01:00
|
|
|
|
2013-11-04 11:37:28 +01:00
|
|
|
%package -n perl-mapscript
|
2008-03-16 18:15:39 +01:00
|
|
|
Summary: Perl/Mapscript map making extensions to Perl
|
2013-11-04 11:37:28 +01:00
|
|
|
Group: Development/Languages/Perl
|
2015-01-19 22:21:14 +01:00
|
|
|
BuildRequires: perl-base
|
2017-04-05 19:23:30 +02:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
2013-11-04 11:37:28 +01:00
|
|
|
Requires: %{libname} = %{version}-%{release}
|
2011-11-23 17:39:36 +01:00
|
|
|
Requires: perl-base
|
2015-01-19 22:21:14 +01:00
|
|
|
Provides: mapserver-perl = %{version}-%{release}
|
|
|
|
Obsoletes: mapserver-perl < %{version}-%{release}
|
2008-03-16 18:15:39 +01:00
|
|
|
|
2013-11-04 11:37:28 +01:00
|
|
|
%description -n perl-mapscript
|
2008-03-16 18:15:39 +01:00
|
|
|
The Perl/Mapscript extension provides full map customization capabilities
|
|
|
|
within the Perl programming language.
|
|
|
|
|
2013-11-04 11:37:28 +01:00
|
|
|
%package -n python-mapscript
|
2011-03-01 15:53:07 +01:00
|
|
|
Summary: Python/Mapscript map making extensions to Python
|
2013-11-04 11:37:28 +01:00
|
|
|
Group: Development/Languages/Python
|
2022-04-02 17:22:02 +02:00
|
|
|
%if 0%{with python}
|
2016-03-08 13:02:44 +01:00
|
|
|
BuildRequires: python3-devel
|
2019-06-14 12:01:26 +02:00
|
|
|
BuildRequires: python3-setuptools
|
2018-06-07 17:35:25 +02:00
|
|
|
%endif
|
2016-03-08 13:02:44 +01:00
|
|
|
Requires: %{libname} = %{version}-%{release}
|
2022-07-26 17:37:15 +02:00
|
|
|
Requires: python3-base
|
2015-01-19 22:21:14 +01:00
|
|
|
Provides: mapserver-python = %{version}-%{release}
|
|
|
|
Obsoletes: mapserver-python < %{version}-%{release}
|
2011-03-01 15:53:07 +01:00
|
|
|
|
2013-11-04 11:37:28 +01:00
|
|
|
%description -n python-mapscript
|
2011-03-01 15:53:07 +01:00
|
|
|
The Python/Mapscript extension provides full map customization capabilities
|
|
|
|
within the Python programming language.
|
2008-03-16 18:15:39 +01:00
|
|
|
|
2013-11-04 11:37:28 +01:00
|
|
|
%package -n libjavamapscript
|
2012-11-14 16:45:22 +01:00
|
|
|
Summary: Java/Mapscript map making extensions to Java
|
2013-11-04 11:37:28 +01:00
|
|
|
Group: Development/Languages/Java
|
|
|
|
BuildRequires: java >= 1.6
|
2015-01-19 22:21:14 +01:00
|
|
|
BuildRequires: java-devel >= 1.6
|
|
|
|
BuildRequires: swig
|
|
|
|
Requires: %{libname} = %{version}-%{release}
|
|
|
|
Requires: java >= 1.6
|
|
|
|
Requires: swig
|
|
|
|
Provides: java-mapscript = %{version}-%{release}
|
|
|
|
Provides: mapserver-java = %{version}-%{release}
|
|
|
|
Obsoletes: java-mapscript < %{version}-%{release}
|
2017-04-05 19:23:30 +02:00
|
|
|
Obsoletes: mapserver-java < %{version}-%{release}
|
2013-11-04 11:37:28 +01:00
|
|
|
|
|
|
|
%description -n libjavamapscript
|
2012-11-14 16:45:22 +01:00
|
|
|
The Java/Mapscript extension provides full map customization capabilities
|
|
|
|
within the Java programming language.
|
2008-03-16 18:15:39 +01:00
|
|
|
|
2013-11-04 11:37:28 +01:00
|
|
|
%package -n ruby-mapscript
|
|
|
|
Summary: Ruby/Mapscript map making extensions to Ruby
|
|
|
|
Group: Development/Languages/Ruby
|
2022-04-02 17:22:02 +02:00
|
|
|
%if 0%{with ruby}
|
2016-03-08 13:02:44 +01:00
|
|
|
BuildRequires: ruby-common
|
2017-04-05 19:23:30 +02:00
|
|
|
BuildRequires: ruby-devel
|
2022-03-16 12:58:55 +01:00
|
|
|
%endif
|
2013-11-04 11:37:28 +01:00
|
|
|
Requires: %{libname} = %{version}-%{release}
|
2015-01-19 22:21:14 +01:00
|
|
|
Requires: ruby
|
|
|
|
Provides: mapserver-ruby = %{version}-%{release}
|
|
|
|
Obsoletes: mapserver-ruby < %{version}-%{release}
|
2013-11-04 11:37:28 +01:00
|
|
|
|
|
|
|
%description -n ruby-mapscript
|
|
|
|
The Ruby/Mapscript extension provides full map customization capabilities
|
|
|
|
within the Ruby programming language.
|
|
|
|
|
2015-01-19 22:21:14 +01:00
|
|
|
%package devel
|
2012-11-29 04:12:25 +01:00
|
|
|
Summary: Mapserver development files
|
2013-11-04 11:37:28 +01:00
|
|
|
Group: Development/Libraries/Other
|
2022-03-16 12:58:55 +01:00
|
|
|
Requires: %{libname} = %{version}-%{release}
|
2012-11-29 04:12:25 +01:00
|
|
|
|
2015-01-19 22:21:14 +01:00
|
|
|
%description devel
|
2012-11-29 04:12:25 +01:00
|
|
|
The Mapserver development package provides necessary files to build
|
|
|
|
against the C Mapserver library.
|
|
|
|
|
2008-03-16 18:15:39 +01:00
|
|
|
%prep
|
2022-03-16 12:58:55 +01:00
|
|
|
%autosetup -p1
|
2017-04-05 19:23:30 +02:00
|
|
|
|
|
|
|
%build
|
2013-11-04 11:37:28 +01:00
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
#Pre export the PREFIX ( having it on the command line doesn't expand correctly for
|
|
|
|
#dynamic postgresql location
|
2022-04-02 17:22:02 +02:00
|
|
|
export CMAKE_PREFIX_PATH="%{_includedir}:%{_includedir}/fastcgi:%%(pg_config --includedir):%%(pg_config --includedir-server):%%(pg_config --libdir)"
|
2015-01-19 22:21:14 +01:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
|
2013-11-04 11:37:28 +01:00
|
|
|
|
|
|
|
#specify all options and play with true/false
|
|
|
|
#so we always know which option are included in our build.
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
2015-01-19 22:21:14 +01:00
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
2017-04-05 19:23:30 +02:00
|
|
|
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
|
|
|
|
-DINSTALL_LIB_DIR=%{_libdir} \
|
2015-01-19 22:21:14 +01:00
|
|
|
-DCMAKE_C_FLAGS_RELEASE="%{optflags} -fno-strict-aliasing" \
|
|
|
|
-DCMAKE_CXX_FLAGS_RELEASE="%{optflags} -fno-strict-aliasing" \
|
|
|
|
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
|
|
|
-DCMAKE_BUILD_TYPE="Release" \
|
|
|
|
-DCMAKE_SKIP_INSTALL_RPATH=ON \
|
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
|
|
-DWITH_CAIRO=TRUE \
|
|
|
|
-DWITH_CLIENT_WFS=TRUE \
|
|
|
|
-DWITH_CLIENT_WMS=TRUE \
|
|
|
|
-DWITH_CURL=TRUE \
|
|
|
|
-DWITH_FCGI=TRUE \
|
|
|
|
-DWITH_FRIBIDI=TRUE \
|
|
|
|
-DWITH_GD=TRUE \
|
|
|
|
-DWITH_GDAL=TRUE \
|
|
|
|
-DWITH_GEOS=TRUE \
|
|
|
|
-DWITH_GIF=TRUE \
|
|
|
|
-DWITH_ICONV=TRUE \
|
|
|
|
-DWITH_JAVA=TRUE \
|
|
|
|
-DWITH_KML=TRUE \
|
|
|
|
-DWITH_LIBXML2=TRUE \
|
|
|
|
-DWITH_OGR=TRUE \
|
|
|
|
-DWITH_MYSQL=TRUE \
|
|
|
|
-DWITH_PERL=TRUE \
|
|
|
|
-DCUSTOM_PERL_SITE_ARCH_DIR="%{perl_vendorarch}" \
|
2022-11-05 23:41:54 +01:00
|
|
|
%if 0%{with php}
|
|
|
|
-DWITH_PHPNG=TRUE \
|
|
|
|
%endif
|
2022-07-26 17:37:15 +02:00
|
|
|
-DWITH_POSTGIS=TRUE \
|
2015-01-19 22:21:14 +01:00
|
|
|
-DWITH_PROJ=TRUE \
|
2020-09-09 10:01:38 +02:00
|
|
|
-DUSE_PROJ=TRUE \
|
2018-06-07 13:51:21 +02:00
|
|
|
-DWITH_PROTOBUFC=TRUE \
|
2022-04-02 17:22:02 +02:00
|
|
|
%if 0%{with python}
|
2015-01-19 22:21:14 +01:00
|
|
|
-DWITH_PYTHON=TRUE \
|
2019-06-14 12:01:26 +02:00
|
|
|
%endif
|
2022-04-02 17:22:02 +02:00
|
|
|
%if 0%{with ruby}
|
2015-01-19 22:21:14 +01:00
|
|
|
-DWITH_RUBY=TRUE \
|
2019-06-14 11:36:38 +02:00
|
|
|
%endif
|
2015-01-19 22:21:14 +01:00
|
|
|
-DWITH_SOS=TRUE \
|
|
|
|
-DWITH_THREAD_SAFETY=TRUE \
|
|
|
|
-DWITH_WCS=TRUE \
|
|
|
|
-DWITH_WMS=TRUE \
|
|
|
|
-DWITH_WFS=TRUE \
|
|
|
|
-DWITH_XMLMAPFILE=TRUE \
|
|
|
|
-DWITH_POINT_Z_M=TRUE \
|
|
|
|
-DWITH_APACHE_MODULE=FALSE \
|
|
|
|
-DWITH_SVGCAIRO=FALSE \
|
|
|
|
-DWITH_MYSQL=FALSE \
|
|
|
|
-DWITH_CSHARP=FALSE \
|
|
|
|
-DWITH_ORACLESPATIAL=FALSE \
|
|
|
|
-DWITH_ORACLE_PLUGIN=FALSE \
|
|
|
|
-DWITH_MSSQL2008=FALSE \
|
|
|
|
-DWITH_SDE=FALSE \
|
|
|
|
-DWITH_SDE_PLUGIN=FALSE \
|
|
|
|
-DWITH_EXEMPI=FALSE \
|
2018-06-07 13:51:21 +02:00
|
|
|
-Wno-dev \
|
2017-04-05 19:23:30 +02:00
|
|
|
..
|
2013-11-04 11:37:28 +01:00
|
|
|
|
2020-12-24 08:50:43 +01:00
|
|
|
%make_build
|
2008-03-16 18:15:39 +01:00
|
|
|
|
2014-01-03 00:11:28 +01:00
|
|
|
%check
|
|
|
|
# make test
|
|
|
|
|
2008-03-16 18:15:39 +01:00
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}/%{_sbindir}
|
2008-08-26 15:12:25 +02:00
|
|
|
mkdir -p %{buildroot}/%{_cgibindir}
|
2018-06-07 17:35:25 +02:00
|
|
|
mkdir -p %{buildroot}%{_libdir}/%{php_name}/extensions
|
2008-03-16 18:15:39 +01:00
|
|
|
mkdir -p %{buildroot}/%{_bindir}
|
2012-11-14 16:45:22 +01:00
|
|
|
mkdir -p %{buildroot}%{python_sitearch}/
|
2013-11-04 11:37:28 +01:00
|
|
|
mkdir -p %{buildroot}/%{_includedir}/%{name}
|
2017-04-05 19:23:30 +02:00
|
|
|
#Comment this look a bit wired to be useful sub-dir should also needed
|
2022-03-08 12:44:11 +01:00
|
|
|
# agg, etc
|
2013-11-04 11:37:28 +01:00
|
|
|
cp *.h %{buildroot}/%{_includedir}/%{name}/
|
|
|
|
|
|
|
|
# fix some exec bits essentially on examples to make rpmlint happy
|
|
|
|
# and avoid rpm adding require
|
2022-03-16 12:58:55 +01:00
|
|
|
find mapscript/ -type f "(" -iname "*.p[ly]" -o -iname "*.rb" -o -iname "*.dist" ")" -exec chmod -x {} +
|
2013-11-04 11:37:28 +01:00
|
|
|
|
2017-04-05 19:23:30 +02:00
|
|
|
cd build
|
2020-12-24 08:50:43 +01:00
|
|
|
%make_install
|
2017-04-05 19:23:30 +02:00
|
|
|
cd ..
|
2013-11-04 11:37:28 +01:00
|
|
|
|
2022-04-02 17:22:02 +02:00
|
|
|
%if 0%{with php}
|
2018-06-07 17:35:25 +02:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/%{php_name}/conf.d/
|
2022-11-05 23:41:54 +01:00
|
|
|
cat > %{buildroot}%{_sysconfdir}/%{php_name}/conf.d/mapscriptng.ini <<EOF
|
2008-03-16 18:15:39 +01:00
|
|
|
; Enable %{name} extension module
|
2014-01-03 00:11:28 +01:00
|
|
|
; For 6.4 we name the symlink here
|
2022-11-05 23:41:54 +01:00
|
|
|
extension=php_mapscriptng.so
|
2008-03-16 18:15:39 +01:00
|
|
|
EOF
|
2022-03-16 12:58:55 +01:00
|
|
|
%endif
|
2008-03-16 18:15:39 +01:00
|
|
|
|
2014-01-03 00:11:28 +01:00
|
|
|
# Install our links
|
|
|
|
#@ todo : check
|
|
|
|
# Having them as link is good for bytes, but httpd_daemon should allow
|
|
|
|
# reading those symlinks which is not the default
|
2017-04-05 19:23:30 +02:00
|
|
|
ln -s %{_bindir}/mapserv %{buildroot}%{_cgibindir}/mapserv
|
|
|
|
ln -s %{_bindir}/legend %{buildroot}%{_cgibindir}/legend
|
|
|
|
ln -s %{_bindir}/scalebar %{buildroot}%{_cgibindir}/scalebar
|
2013-11-04 11:37:28 +01:00
|
|
|
|
2008-03-16 18:15:39 +01:00
|
|
|
# remove vera fonts, these are provided system wide
|
2013-11-04 11:37:28 +01:00
|
|
|
#@todo then we should patch the fonts file example
|
2022-03-16 12:58:55 +01:00
|
|
|
rm -rf %{buildroot}%{_docdir}/%{name}/tests/vera \
|
|
|
|
%{buildroot}%{_docdir}/%{name}-%{version}/tests/vera
|
|
|
|
|
|
|
|
chmod a+x "%{buildroot}/%{_libdir}/libjavamapscript.so"
|
2022-10-09 00:07:18 +02:00
|
|
|
rm -fv "%buildroot/%_sysconfdir/mapserver-sample.conf"
|
|
|
|
echo >"mapserver.conf" <<-EOF
|
|
|
|
CONFIG
|
|
|
|
ENV
|
|
|
|
MS_MAP_PATTERN "^"
|
|
|
|
END
|
|
|
|
END
|
|
|
|
EOF
|
2008-03-16 18:15:39 +01:00
|
|
|
|
2022-10-09 10:57:17 +02:00
|
|
|
%if 0%{?suse_version} < 1550
|
2022-10-09 10:44:09 +02:00
|
|
|
mkdir -pv "%buildroot/%python3_sitearch"
|
|
|
|
mv -v "%buildroot/%python3_sitelib"/* "%buildroot/%python3_sitearch/"
|
2022-10-09 10:57:17 +02:00
|
|
|
%endif
|
2022-10-09 10:44:09 +02:00
|
|
|
|
2013-11-04 11:37:28 +01:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
2008-03-16 18:15:39 +01:00
|
|
|
%files
|
2023-09-13 18:28:44 +02:00
|
|
|
%doc README.md HISTORY.md MIGRATION_GUIDE.md mapserver.conf
|
|
|
|
%doc symbols tests fonts
|
2022-10-09 00:07:18 +02:00
|
|
|
%{_bindir}/coshp
|
|
|
|
%{_bindir}/map2img
|
2008-03-16 18:15:39 +01:00
|
|
|
%{_bindir}/shptree
|
|
|
|
%{_bindir}/sortshp
|
|
|
|
%{_bindir}/tile4ms
|
2012-11-14 16:45:22 +01:00
|
|
|
%{_bindir}/mapserv
|
|
|
|
%{_bindir}/legend
|
|
|
|
%{_bindir}/scalebar
|
|
|
|
%{_bindir}/msencrypt
|
|
|
|
%{_bindir}/shptreetst
|
|
|
|
%{_bindir}/shptreevis
|
2008-08-26 15:12:25 +02:00
|
|
|
%{_cgibindir}/mapserv
|
|
|
|
%{_cgibindir}/legend
|
|
|
|
%{_cgibindir}/scalebar
|
2008-03-16 18:15:39 +01:00
|
|
|
|
2013-11-04 11:37:28 +01:00
|
|
|
%files -n %{libname}
|
|
|
|
%{_libdir}/libmapserver.so.*
|
|
|
|
|
2022-04-02 17:22:02 +02:00
|
|
|
%if 0%{with php}
|
2022-11-05 23:41:54 +01:00
|
|
|
%files -n php-mapscriptng
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{php_name}/conf.d/mapscriptng.ini
|
2022-03-08 12:44:11 +01:00
|
|
|
%{_libdir}/%{php_name}/extensions/php_mapscriptng.so*
|
2022-03-16 12:58:55 +01:00
|
|
|
%endif
|
2013-11-04 11:37:28 +01:00
|
|
|
|
|
|
|
%files -n perl-mapscript
|
2008-03-16 18:15:39 +01:00
|
|
|
%doc mapscript/perl/examples
|
|
|
|
%dir %{perl_vendorarch}/auto/mapscript
|
|
|
|
%{perl_vendorarch}/auto/mapscript/*
|
|
|
|
%{perl_vendorarch}/mapscript.pm
|
|
|
|
|
2022-04-02 17:22:02 +02:00
|
|
|
%if 0%{with python}
|
2013-11-04 11:37:28 +01:00
|
|
|
%files -n python-mapscript
|
2019-06-14 11:36:38 +02:00
|
|
|
%doc mapscript/python/README.rst
|
2011-03-01 15:53:07 +01:00
|
|
|
%doc mapscript/python/examples
|
|
|
|
%doc mapscript/python/tests
|
2022-04-04 16:15:10 +02:00
|
|
|
%{python3_sitearch}/*
|
2019-06-14 12:01:26 +02:00
|
|
|
%endif
|
2008-03-16 18:34:49 +01:00
|
|
|
|
2013-11-04 11:37:28 +01:00
|
|
|
%files -n libjavamapscript
|
2012-11-14 16:45:22 +01:00
|
|
|
%doc mapscript/java/README
|
|
|
|
%doc mapscript/java/examples
|
|
|
|
%doc mapscript/java/tests
|
2013-11-04 11:37:28 +01:00
|
|
|
%{_libdir}/libjavamapscript.so
|
|
|
|
|
2022-04-02 17:22:02 +02:00
|
|
|
%if 0%{with ruby}
|
2013-11-04 11:37:28 +01:00
|
|
|
%files -n ruby-mapscript
|
|
|
|
%doc mapscript/ruby/README
|
|
|
|
%doc mapscript/ruby/examples
|
2015-01-19 22:21:14 +01:00
|
|
|
%{rb_sitearchdir}/mapscript.so
|
2019-06-14 11:36:38 +02:00
|
|
|
%endif
|
2008-03-16 18:15:39 +01:00
|
|
|
|
2012-11-29 04:12:25 +01:00
|
|
|
%files devel
|
|
|
|
%dir %{_includedir}/mapserver
|
|
|
|
%{_includedir}/mapserver/*
|
2013-11-04 11:37:28 +01:00
|
|
|
%{_libdir}/libmapserver.so
|
2021-02-01 10:30:54 +01:00
|
|
|
%{_datadir}/mapserver
|
2012-11-29 04:12:25 +01:00
|
|
|
|
2008-03-16 18:15:39 +01:00
|
|
|
%changelog
|