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
This commit is contained in:
Martin Pluskal 2021-05-24 07:38:22 +00:00 committed by Git OBS Bridge
parent 816b174576
commit abab17efe6
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 17 10:55:47 UTC 2021 - Dirk Müller <dmueller@suse.com>
- remove bundled libraries, use system provided ones
------------------------------------------------------------------- -------------------------------------------------------------------
Tue May 4 14:17:10 UTC 2021 - Bruno Friedmann <bruno@ioda-net.ch> Tue May 4 14:17:10 UTC 2021 - Bruno Friedmann <bruno@ioda-net.ch>

View File

@ -160,6 +160,15 @@ The GDAL python modules provide support to handle multiple GIS file formats.
%setup -q -n %{sourcename}-%{version} %setup -q -n %{sourcename}-%{version}
%autopatch -p1 %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. # Set the right (build) libproj.so version, use the upper found version.
PROJSOVER=$(ls -1 %{_libdir}/libproj.so.?? | tail -n1 | awk -F '.' '{print $3}') 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 sed -i "s,# define LIBNAME \"libproj.so\",# define LIBNAME \"libproj.so.${PROJSOVER}\",g" ogr/ogrct.cpp