Accepting request 794861 from home:Guillaume_G:branches:home:Le_Docteur

- Fixes for previous commit "Rework ECW5 SDK handling"

OBS-URL: https://build.opensuse.org/request/show/794861
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/gdal?expand=0&rev=112
This commit is contained in:
Martin Pluskal 2020-04-17 10:11:00 +00:00 committed by Git OBS Bridge
parent b938ad014e
commit 41ad9ecb37
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Apr 17 09:58:35 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Fixes for previous commit "Rework ECW5 SDK handling"
-------------------------------------------------------------------
Thu Apr 9 10:22:54 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>

View File

@ -184,9 +184,12 @@ find . -type f -name "style_ogr_sym.png" -exec chmod 0644 {} \;
find . -iname "*.py" -exec sed -i 's,^#!%{_bindir}/env python$,#!%{_bindir}/python3,' {} \;
%if %{with ecw5_support}
# gdal configure script looks for a given layout, so reproduce what is expected.
mkdir -p ../ECW/Desktop_Read-Only/lib/x64/
ln -s %{_libdir} ../ECW/Desktop_Read-Only/lib/x64/release
ln -s %{_includedir} ../ECW/Desktop_Read-Only/include
export ECW_PATH="../ECW/Desktop_Read-Only"
export ECW_LIB_PATH="$ECW_PATH/lib/cpp11abi/x64/release"
export ECW_INC_PATH="$ECW_PATH/include"
mkdir -p $ECW_PATH/lib/cpp11abi/x64/
ln -s %{_libdir} $ECW_LIB_PATH
ln -s %{_includedir} $ECW_INC_PATH
%endif
%build