From abab17efe664a5faf0b53c9e713eafc7ef28c769e5344ecaade3c7ca159f39bb Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Mon, 24 May 2021 07:38:22 +0000 Subject: [PATCH] Accepting request 893700 from home:dirkmueller:Factory - remove bundled libraries, use system provided ones OBS-URL: https://build.opensuse.org/request/show/893700 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/gdal?expand=0&rev=136 --- gdal.changes | 5 +++++ gdal.spec | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/gdal.changes b/gdal.changes index ade699d..c87ee22 100644 --- a/gdal.changes +++ b/gdal.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 17 10:55:47 UTC 2021 - Dirk Müller + +- remove bundled libraries, use system provided ones + ------------------------------------------------------------------- Tue May 4 14:17:10 UTC 2021 - Bruno Friedmann diff --git a/gdal.spec b/gdal.spec index 7ff6865..23e1295 100644 --- a/gdal.spec +++ b/gdal.spec @@ -160,6 +160,15 @@ The GDAL python modules provide support to handle multiple GIS file formats. %setup -q -n %{sourcename}-%{version} %autopatch -p1 +# Delete bundled libraries +rm -rv frmts/zlib +rm -rv frmts/png/libpng +rm -rv frmts/gif/giflib +rm -rv frmts/jpeg/libjpeg +rm -rv frmts/jpeg/libjpeg12 +rm -rv frmts/gtiff/libgeotiff +rm -rv frmts/gtiff/libtiff + # Set the right (build) libproj.so version, use the upper found version. PROJSOVER=$(ls -1 %{_libdir}/libproj.so.?? | tail -n1 | awk -F '.' '{print $3}') sed -i "s,# define LIBNAME \"libproj.so\",# define LIBNAME \"libproj.so.${PROJSOVER}\",g" ogr/ogrct.cpp