Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mapserver for openSUSE:Factory 
checked in at 2021-03-30 20:57:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mapserver (Old)
 and      /work/SRC/openSUSE:Factory/.mapserver.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mapserver"

Tue Mar 30 20:57:28 2021 rev:1 rq:868337 version:7.6.1

Changes:
--------
New Changes file:

--- /dev/null   2021-03-11 01:47:46.020784395 +0100
+++ /work/SRC/openSUSE:Factory/.mapserver.new.2401/mapserver.changes    
2021-03-30 20:57:37.016534387 +0200
@@ -0,0 +1,557 @@
+-------------------------------------------------------------------
+Wed Jan 20 01:15:24 UTC 2021 - Jan Engelhardt <[email protected]>
+
+- Drop BuildRequires on binary library packages; this is wrong.
+- Drop excessive runtime package requirements.
+
+-------------------------------------------------------------------
+Wed Dec 23 20:07:24 UTC 2020 - Jan Engelhardt <[email protected]>
+
+- Modernize and ready specfile for Factory
+
+-------------------------------------------------------------------
+Tue Sep  8 19:49:30 UTC 2020 - Boris Manojlovic <[email protected]>
+
+- add USE_PROJ to compile flags to enable reprojections (TILE support) 
+
+-------------------------------------------------------------------
+Sat Sep  5 09:14:07 UTC 2020 - Boris Manojlovic <[email protected]>
+
+- 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 <[email protected]>
+
+- update to version 7.4.0
+  * MS RFC 117: PHP 7 MapScript Support Through SWIG
+  * native support for PHP 7 through mapscript (461f827)
+  * Fix potential cross-site scripting (XSS) security issue with
+    [layers] tag
+  * enhanced support for Python 3 mapscript through SWIG
+  * Allow compiling with PROJ 6, but full PROJ 6 support will be
+    included in the future MapServer 8 release (#5766)
+- Drop 5461.patch and cmake-3.12.patch included upstream
+
+-------------------------------------------------------------------
+Thu Sep 13 09:28:34 UTC 2018 - Dirk Stoecker <[email protected]>
+
+- update to final release
+- Fix build with newer cmake: cmake-3.12.patch
+
+-------------------------------------------------------------------
+Thu Jun  7 11:51:11 UTC 2018 - [email protected]
+
+- update to 7.2.0-beta1 to support Leap 15.0
+  * Add 5461.patch to support PHP7
+  * support python3
+
+-------------------------------------------------------------------
+Fri Dec 15 08:37:40 UTC 2017 - [email protected]
+
+- update to 7.0.7
+
+-------------------------------------------------------------------
+Wed Apr  5 15:59:16 UTC 2017 - [email protected]
+
+- udate to Mapserver 7.0.4, drop all patches
+
+-------------------------------------------------------------------
+Tue Mar  8 07:02:53 UTC 2016 - [email protected]
+
+- Add xxxx-fix-python-mapscript-soversion-install-issue.patch to fix
+  broken installing of mapscript python module 
+- Exclude ruby from build for sles11 because of missing ruby dependencies
+- Use ruby-common as build dependency instead of outdated ruby-macros
+
+-------------------------------------------------------------------
+Fri Feb  5 14:22:24 UTC 2016 - [email protected]
+
+- Fix build when 'php_mapscript.so' is only file installed and no 
+  *.so.1 and *.so%{version} (Fix openSUSE 13.1 build)
+
+-------------------------------------------------------------------
+Fri Feb  5 14:10:02 UTC 2016 - [email protected]
+
+- Add giflib_5.1.0.patch to fix compilation with giflib 5.1.0+ 
+- Add swig_3.patch to fix compilation with swig 3
+
+-------------------------------------------------------------------
+Sat Aug 30 18:34:09 UTC 2014 - [email protected]
+
+- packaging spec-cleaner
+- fixed compilation error with php 5.6.0  
+  upstream patch 4912-php56-php-input.patch
+  supported also php 5.5x
+- fixed blending tif error
+  upstream patch 4875-incorrect-blending-tif.patch
+
+-------------------------------------------------------------------
+Sun Mar 30 18:52:41 UTC 2014 - [email protected]
+
+- use correct ruby rpm macros  
+
+-------------------------------------------------------------------
+Thu Jan  2 20:30:07 UTC 2014 - [email protected]
+
+- updated to upstream 6.4.1  
+  
http://mapserver.org/development/changelog/changelog-6-4.html#changelog-6-4-1 
+  full list of changes in 6.4.1
+
+- spec cleaning
+- modified patches:
+  * 4788.patch (upstream issue 4788) SOVERSION in CMakefile
+  * 4788-php-mapscript patch for php versionning
+  * 4788-python-mapscript patch for python versionning
+- deleted patches: (merged upstream)
+  * 4791.patch fix lib path install
+  * 4803.patch fix for force_st2d
+
+-------------------------------------------------------------------
+Mon Nov 18 14:05:34 UTC 2013 - [email protected]
+
+- Added Requires proj (missing espg for tools otherwise)
+- Added upstream #4803 patch forcest2d  
+
+-------------------------------------------------------------------
+Thu Nov 14 15:27:13 UTC 2013 - [email protected]
+
+- packaging : fix php mapscript name in mapscript.ini (symlink)
+- Added upstream #4788 patch versionning php-mapscript
+  Fix by removing buggy pre-post script
+- /srv/www/cgi-bin/ binaries as symlink to /usr/bin 
+
+-------------------------------------------------------------------
+Sun Nov  3 15:28:44 UTC 2013 - [email protected]
+
+- Some minor spec cleanup
+
+-------------------------------------------------------------------
+Sat Oct 26 16:28:36 UTC 2013 - [email protected]
+
+- packaging fix tab 
+- packaging fix php-mapscript 
+       rename php_mapscript.so to php_mapscript-%{version}.so 
+       (upstream bug in 6.4.0)
+       remove post check which remove php_mapscript.so 
+
+-------------------------------------------------------------------
+Sun Oct 13 14:33:33 UTC 2013 - [email protected]
+
+- Use patch commit 4791 for fixing cmake_install_lib
+- split libmapserver to its own package
+  could be used by mapscript module alone 
+- add rpmlintrc with explanation for warning removal
+- Review licence part, description
+- Remove apache2-mod_php5 dependency which block usage on fcgid 
+  fastcgi mode 
+- Rename all mapscript package to fix naming policy and clarify 
+  what they are 
+- Added ruby mapscript package
+- Make all DWITH extension visible in the spec to be sure about
+  which one are activated or not
+
+-------------------------------------------------------------------
+Sun Apr 21 22:31:20 UTC 2013 - [email protected]
+
+- Updated to v6.4.0 (see
+  http://mapserver.org/development/changelog/changelog-6-4.html#changelog-6-4-0
+  for a detailed description of the changes).
+- Switched to CMake
+
+-------------------------------------------------------------------
+Sun Apr 21 22:31:20 UTC 2013 - [email protected]
+
+- Updated to v6.2.1
+
+    * Move #4577 fixes out of libmapserver (2013-04-18 10:55:23 +0200 - Thomas 
Bonfort)
+    * Exposed labelObj.text and labelObj.expression in PHP/MapScript (closes 
#4310) (2013-04-16 13:41:18 +0000 - Alan Boudreault)
+    * Fixed problems found in the mapfile.xsd while trying to convert current 
mapfiles into xmlmapfiles (2013-01-30 09:45:41 -0700 - Alex Wells)
+    * Ensure that msCopyLabel copies expression and text directives 
(2013-02-20 09:02:56 +0000 - Homme Zwaagstra)
+    * Updated submodule for #4633 (2013-04-12 18:56:44 +0200 - Thomas Bonfort)
+    * Update submodule for backported fix of #4633 (2013-04-12 18:32:53 +0200 
- Thomas Bonfort)
+    * OGR WFS output: do not force null integer values to 0 (#4633) 
(2013-04-12 00:57:27 +0200 - Even Rouault)
+    * Fix for WMS requests with width and height of 1 (#4629) (2013-04-11 
19:30:25 +0200 - Thomas Bonfort)
+    * Parse key value pairs sent in POST body (#4627) (2013-04-04 12:49:37 
+0200 - Martin Kofahl)
+    * Add a script to run full test suite (build + test run) (2013-04-11 
10:22:00 +0200 - Thomas Bonfort)
+    * update autotest submodule for #4625 and #4624 (2013-04-09 13:17:05 +0200 
- Thomas Bonfort)
+    * Use ows_schemas_location for sld_capabilities ref (#4624) (2013-04-08 
20:38:40 -0400 - Tom Kralidis)
+    * Update msautotests for #4622 (2013-04-08 11:56:34 +0200 - Thomas Bonfort)
+    * Don???t entity-encode URLs used on attributes: libxml2 does this for us. 
Refs #4622 (2013-04-05 09:38:25 +0200 - ejn)
+    * Fix cgi label commands after multi-label changes (#4621) (2013-04-03 
13:54:43 +0200 - Thomas Bonfort)
+    * Ignore additional encodings in received content-type headers (#4585) 
(2013-03-29 10:22:05 -0400 - Thomas Bonfort)
+    * Fix PHP building when GD is disabled. Closes #4550 (2013-03-28 16:53:07 
-0400 - Thomas Bonfort)
+    * CAIRO renderer fails to render some truetype symbols (#4616) (2013-03-27 
11:34:22 +0100 - szekerest)
+    * Fix mapfile writer to write SVG symbols (#4607) (2013-03-21 22:05:02 
+0100 - szekerest)
+    * Fix issues with wms_layer_group printing (#4533) (2013-03-04 21:49:36 
+0100 - szekerest)
+    * Write CLASS validation to mapfile (#4596) (2013-03-04 17:06:05 +0100 - 
Thomas Bonfort)
+    * Mark disabled layers as processed to prevent from being displayed in 
nested groups (#4533) (2013-03-03 19:25:25 +0100 - szekerest)
+    * Don???t write GRATICULE connectiontype (#4165) (2013-02-28 10:20:24 
+0100 - Thomas Bonfort)
+    * Add validation block to copy functions (#4596) (2013-02-27 17:39:39 
+0100 - Thomas Bonfort)
++++ 360 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:Factory/.mapserver.new.2401/mapserver.changes

New:
----
  mapserver-7.6.1-fix_python_install_path.patch
  mapserver-7.6.1.tar.gz
  mapserver-rpmlintrc
  mapserver.changes
  mapserver.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mapserver.spec ++++++
#
# spec file for package mapserver
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2014 Ioda-Net S??rl, Charmoille, Switzerland. Bruno Friedmann 
(tigerfoot)
# Copyright (c) 2015 Angelos Tzotsos (kalxas)
#
# 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
# 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
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%bcond_with python
%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
%define php_name    php7
%else
%define php_name    php5
%endif

Name:           mapserver
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
Source9:        %{name}-rpmlintrc
# 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
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
BuildRequires:  harfbuzz-devel
BuildRequires:  krb5-devel
BuildRequires:  libcurl-devel
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
BuildRequires:  postgresql-devel >= 9.1
%if 0%{?suse_version} >= 1500
BuildRequires:  postgresql-server-devel >= 9.1
%endif
BuildRequires:  proj
BuildRequires:  libprotobuf-c-devel
BuildRequires:  protobuf-c
BuildRequires:  readline-devel
BuildRequires:  rpm
BuildRequires:  swig
BuildRequires:  update-alternatives
BuildRequires:  xorg-x11-libXpm-devel
BuildRequires:  zlib-devel
BuildRequires:  perl(ExtUtils::MakeMaker)
Requires:       %{libname} = %{version}-%{release}
Requires:       proj

%description
Mapserver is an internet mapping program that converts GIS data to
map images in real time. With appropriate interface pages,
Mapserver can provide an interactive internet map based on
custom GIS data.

%package -n %{libname}
Summary:        Mapsserver library for mapserver or mapscript module
Group:          System/Libraries

%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)

# We don't require apache2_mod-php5 users could have php5 running 
# with other modes (cgi, php-fpm etc)

%package -n php-mapscript
Summary:        PHP/Mapscript map making extensions to PHP
Group:          Development/Libraries/Other
Requires:       %{libname} = %{version}-%{release}
Requires:       apache2
Provides:       php-mapserver = %{version}-%{release}
Obsoletes:      php-mapserver < %{version}-%{release}
BuildRequires:  php-devel
Requires:       php
Requires:       php-gd

%description -n php-mapscript
The PHP/Mapscript extension provides full map customization capabilities within 
the PHP scripting language.

%package -n perl-mapscript
Summary:        Perl/Mapscript map making extensions to Perl
Group:          Development/Languages/Perl
BuildRequires:  perl-base
BuildRequires:  perl(ExtUtils::MakeMaker)
Requires:       %{libname} = %{version}-%{release}
Requires:       perl-base
Provides:       mapserver-perl = %{version}-%{release}
Obsoletes:      mapserver-perl < %{version}-%{release}

%description -n perl-mapscript
The Perl/Mapscript extension provides full map customization capabilities
within the Perl programming language.

%if %{with python}
%package -n python-mapscript
Summary:        Python/Mapscript map making extensions to Python
Group:          Development/Languages/Python
%if %{suse_version} >= 1500
%define python_sitearch %(python3 -c "from distutils.sysconfig import 
get_python_lib; print (get_python_lib(1))")
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Requires:       python3-base
%else
%define python_sitearch %(python2 -c "from distutils.sysconfig import 
get_python_lib; print (get_python_lib(1))")
BuildRequires:  python2-devel
BuildRequires:  python2-setuptools
Requires:       python2-base
%endif
Requires:       %{libname} = %{version}-%{release}
Provides:       mapserver-python = %{version}-%{release}
Obsoletes:      mapserver-python < %{version}-%{release}

%description -n python-mapscript
The Python/Mapscript extension provides full map customization capabilities
within the Python programming language.
%endif

%package -n libjavamapscript
Summary:        Java/Mapscript map making extensions to Java
Group:          Development/Languages/Java
BuildRequires:  java >= 1.6
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}
Obsoletes:      mapserver-java < %{version}-%{release}

%description -n libjavamapscript
The Java/Mapscript extension provides full map customization capabilities
within the Java programming language.

%if %{with ruby}
%package -n ruby-mapscript
Summary:        Ruby/Mapscript map making extensions to Ruby
Group:          Development/Languages/Ruby
BuildRequires:  ruby-common
BuildRequires:  ruby-devel
Requires:       %{libname} = %{version}-%{release}
Requires:       ruby
Provides:       mapserver-ruby = %{version}-%{release}
Obsoletes:      mapserver-ruby < %{version}-%{release}

%description -n ruby-mapscript
The Ruby/Mapscript extension provides full map customization capabilities
within the Ruby programming language.
%endif

%package        devel
Summary:        Mapserver development files
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}-%{release}

%description    devel
The Mapserver development package provides necessary files to build
against the C Mapserver library.

%prep
%setup -q -n %{name}-%{version}
%global _default_patch_fuzz 5
%patch0 -p0

%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)"
export CFLAGS="%{optflags} -fno-strict-aliasing"
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.
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
        -DCMAKE_SKIP_RPATH=ON \
        -DCMAKE_INSTALL_LIBDIR=%{_libdir} \
        -DINSTALL_LIB_DIR=%{_libdir} \
        -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}" \
        -DWITH_PHP=TRUE \
        -DWITH_POSTGIS=TRUE \
        -DWITH_PROJ=TRUE \
        -DUSE_PROJ=TRUE \
        -DWITH_PROTOBUFC=TRUE \
%if %{with python}
        -DWITH_PYTHON=TRUE \
%endif
%if %{with ruby}
        -DWITH_RUBY=TRUE \
%endif
        -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 \
        -Wno-dev \
        ..

%make_build

%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}/

# fix some exec bits essentially on examples to make rpmlint happy
# and avoid rpm adding require
find ./mapscript/ -type f -iname "*.p[ly]" -exec chmod -x {} \;
find ./mapscript/ -type f -iname "*.rb" -exec chmod -x {} \;
find ./mapscript/ -type f -iname "*.dist" -exec chmod -x {} \;

cd build
%make_install
cd ..

mkdir -p %{buildroot}%{_sysconfdir}/%{php_name}/conf.d/
cat > %{buildroot}%{_sysconfdir}/%{php_name}/conf.d/mapscript.ini <<EOF
; Enable %{name} extension module
; For 6.4 we name the symlink here
extension=php_mapscript.so
EOF

# 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
ln -s %{_bindir}/mapserv %{buildroot}%{_cgibindir}/mapserv
ln -s %{_bindir}/legend %{buildroot}%{_cgibindir}/legend
ln -s %{_bindir}/scalebar %{buildroot}%{_cgibindir}/scalebar

# remove vera fonts, these are provided system wide
#@todo then we should patch the fonts file example
rm -rf %{buildroot}%{_docdir}/%{name}/tests/vera
rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/tests/vera

%post -n %{libname} -p /sbin/ldconfig

%postun -n %{libname} -p /sbin/ldconfig

%files
%doc README.rst HISTORY.TXT
%doc MIGRATION_GUIDE.txt
%doc symbols tests
%doc fonts
%{_bindir}/shp2img
%{_bindir}/shptree
%{_bindir}/sortshp
%{_bindir}/tile4ms
%{_bindir}/mapserv
%{_bindir}/legend
%{_bindir}/scalebar
%{_bindir}/msencrypt
%{_bindir}/shptreetst
%{_bindir}/shptreevis
%{_cgibindir}/mapserv
%{_cgibindir}/legend
%{_cgibindir}/scalebar

%files -n %{libname}
%{_libdir}/libmapserver.so.*

%files -n php-mapscript
%doc mapscript/php/README
%doc mapscript/php/examples
%config(noreplace) %{_sysconfdir}/%{php_name}/conf.d/mapscript.ini
%{_libdir}/%{php_name}/extensions/php_mapscript.so*

%files -n perl-mapscript
%doc mapscript/perl/examples
%dir %{perl_vendorarch}/auto/mapscript
%{perl_vendorarch}/auto/mapscript/*
%{perl_vendorarch}/mapscript.pm

%if %{with python}
%files -n python-mapscript
%doc mapscript/python/README.rst
%doc mapscript/python/examples
%doc mapscript/python/tests
%{python_sitearch}/*
%endif

%files -n libjavamapscript
%doc mapscript/java/README
%doc mapscript/java/examples
%doc mapscript/java/tests
%{_libdir}/libjavamapscript.so

%if %{with ruby}
%files -n ruby-mapscript
%doc mapscript/ruby/README
%doc mapscript/ruby/examples
%{rb_sitearchdir}/mapscript.so
%endif

%files devel
%dir %{_includedir}/mapserver
%{_includedir}/mapserver/*
%{_libdir}/libmapserver.so
%{_datadir}/mapserver

%changelog
++++++ mapserver-7.6.1-fix_python_install_path.patch ++++++
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}
     )
   "
++++++ mapserver-rpmlintrc ++++++
# for the shared-lib-call-exit here the explanation
# <tbonfort> we're not really a library, so no problem here...
# <tbonfort> we exit on a failed malloc, which isn't really recoverable anyways
addFilter("mapserver.*: W: shared-lib-calls-exit*")

# All those binary are sort of mapserv
addFilter("W: no-manual-page-for-binary sortshp")
addFilter("W: no-manual-page-for-binary shptreetst")
addFilter("W: no-manual-page-for-binary shptreevis")
addFilter("W: no-manual-page-for-binary shp2img")
addFilter("W: no-manual-page-for-binary tile4ms")
addFilter("W: no-manual-page-for-binary shptree")
addFilter("W: no-manual-page-for-binary msencrypt")
addFilter("W: no-manual-page-for-binary mapserv")
addFilter("W: no-manual-page-for-binary scalebar")
addFilter("W: no-manual-page-for-binary legend")

Reply via email to