2015-02-10 11:05:38 +01:00
#
# spec file for package gdal
#
2021-01-06 07:25:11 +01:00
# Copyright (c) 2021 SUSE LLC
2015-02-10 11:05:38 +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
# 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.
2018-09-30 20:48:49 +02:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2015-02-10 11:05:38 +01:00
#
2021-06-14 09:06:44 +02:00
%define soversion 29
2016-02-26 14:31:15 +01:00
%define sourcename gdal
2019-02-25 08:58:09 +01:00
# Uppercase GDAL is the canonical name for this package in Python
%define pypi_package_name GDAL
2018-03-22 10:36:33 +01:00
%bcond_with ecw_support
2018-05-15 10:54:45 +02:00
%bcond_with ecw5_support
2018-06-15 09:16:32 +02:00
%bcond_with fgdb_support
2021-06-14 09:06:44 +02:00
%bcond_with kml_support
%bcond_with sfcgal_support
%bcond_with heif_support
%bcond_with tests_support
2015-02-10 11:05:38 +01:00
Name : gdal
2021-09-09 16:30:36 +02:00
Version : 3.3.2
2015-02-10 11:05:38 +01:00
Release : 0
Summary : GDAL/OGR - a translator library for raster and vector geospatial data formats
2021-03-12 09:37:40 +01:00
License : BSD-3-Clause AND MIT AND SUSE-Public-Domain
2019-10-10 11:46:07 +02:00
URL : https://www.gdal.org/
2021-06-14 09:06:44 +02:00
Source0 : https://download.osgeo.org/%{name} /%{version} /%{sourcename} -%{version} .tar.xz
Source1 : https://download.osgeo.org/%{name} /%{version} /%{sourcename} -%{version} .tar.xz.md5
Source2 : https://download.osgeo.org/%{name} /%{version} /%{sourcename} autotest-%{version} .tar.gz
2016-05-11 10:41:17 +02:00
Patch0 : gdal-perl.patch
2016-02-26 14:31:15 +01:00
# Fix occasional parallel build failure
2016-05-11 10:41:17 +02:00
Patch1 : GDALmake.opt.in.patch
2018-09-30 20:48:49 +02:00
BuildRequires : KEALib-devel
2019-09-06 08:26:49 +02:00
BuildRequires : autoconf
BuildRequires : automake
2015-02-10 11:05:38 +01:00
BuildRequires : blas-devel
2015-03-08 21:45:59 +01:00
BuildRequires : chrpath
2015-02-10 11:05:38 +01:00
BuildRequires : curl-devel
2015-08-26 18:14:10 +02:00
BuildRequires : dos2unix
2015-02-10 11:05:38 +01:00
BuildRequires : doxygen >= 1.4.2
BuildRequires : fdupes
BuildRequires : gcc-c++
BuildRequires : geos-devel >= 3
BuildRequires : giflib-devel
2019-09-06 08:26:49 +02:00
BuildRequires : hdf5-devel
2015-02-10 11:05:38 +01:00
BuildRequires : lapack-devel
BuildRequires : libtool
2019-10-10 11:46:07 +02:00
BuildRequires : libzstd-devel
2016-02-26 14:31:15 +01:00
BuildRequires : mysql-devel
BuildRequires : opencl-headers
2019-09-06 08:26:49 +02:00
BuildRequires : perl-ExtUtils-MakeMaker
2016-02-26 14:31:15 +01:00
BuildRequires : perl-macros
2018-03-22 10:36:33 +01:00
BuildRequires : pkgconfig
2015-08-26 18:14:10 +02:00
BuildRequires : python3-numpy-devel
2016-02-26 14:31:15 +01:00
BuildRequires : python3-setuptools
2021-06-14 09:06:44 +02:00
%if %{with tests_support}
BuildRequires : python3-lxml
BuildRequires : python3-pytest
BuildRequires : python3-pytest-env
BuildRequires : python3-pytest-sugar
%endif
2015-02-10 11:05:38 +01:00
BuildRequires : swig
BuildRequires : unixODBC-devel
2019-09-06 08:26:49 +02:00
BuildRequires : pkgconfig(OpenCL)
2019-10-08 08:53:22 +02:00
BuildRequires : pkgconfig(expat) >= 1.95.0
2021-06-14 09:06:44 +02:00
# BuildRequires: pkgconfig(armadillo)
2019-09-06 08:26:49 +02:00
BuildRequires : pkgconfig(freexl)
BuildRequires : pkgconfig(json)
BuildRequires : pkgconfig(json-c)
2018-03-22 10:36:33 +01:00
BuildRequires : pkgconfig(libgeotiff) >= 1.2.1
BuildRequires : pkgconfig(libjpeg)
BuildRequires : pkgconfig(liblzma)
BuildRequires : pkgconfig(libopenjp2)
2021-06-14 09:06:44 +02:00
BuildRequires : pkgconfig(libpcrecpp)
2018-03-22 10:36:33 +01:00
BuildRequires : pkgconfig(libpng)
2019-04-08 16:08:57 +02:00
BuildRequires : pkgconfig(libpq)
2018-03-22 10:36:33 +01:00
BuildRequires : pkgconfig(libtiff-4) >= 3.6.0
2019-09-06 08:26:49 +02:00
BuildRequires : pkgconfig(libwebp)
BuildRequires : pkgconfig(libwebpdecoder)
BuildRequires : pkgconfig(libwebpdemux)
BuildRequires : pkgconfig(libwebpmux)
2018-03-22 10:36:33 +01:00
BuildRequires : pkgconfig(libxml-2.0)
BuildRequires : pkgconfig(netcdf)
2019-09-06 08:26:49 +02:00
BuildRequires : pkgconfig(ocl-icd)
2018-01-12 12:35:25 +01:00
BuildRequires : pkgconfig(poppler)
2018-03-22 10:36:33 +01:00
BuildRequires : pkgconfig(proj)
2021-06-14 09:06:44 +02:00
#BuildRequires: pkgconfig(qhull_r)
2018-03-22 10:36:33 +01:00
BuildRequires : pkgconfig(spatialite)
BuildRequires : pkgconfig(sqlite3)
BuildRequires : pkgconfig(xerces-c)
BuildRequires : pkgconfig(zlib) >= 1.1.4
2018-09-30 20:48:49 +02:00
%if %{with fgdb_support}
BuildRequires : filegdb_api-devel
%endif
2021-06-14 09:06:44 +02:00
%if %{with kml_support}
BuildRequires : pkgconfig(libkml)
%endif
%if %{with sfcgal_support}
BuildRequires : pkgconfig(sfcgal)
%endif
%if %{with heif_support}
BuildRequires : libheif-devel
%endif
2018-05-15 10:54:45 +02:00
%if %{with ecw5_support}
BuildRequires : ERDAS-ECW_JPEG_2000_SDK-devel
%else
2015-02-10 11:05:38 +01:00
%if %{with ecw_support}
BuildRequires : libecwj2-devel
%endif
2018-05-15 10:54:45 +02:00
%endif
2020-11-08 22:31:36 +01:00
Requires : python3-GDAL = %{version}
2015-02-10 11:05:38 +01:00
%description
GDAL is a translator library for raster geospatial data formats that
is released under an Open Source license. As a library, it presents a
single abstract data model to the calling application for all
supported formats. The related OGR library (which lives within the
GDAL source tree) provides a similar capability for simple features
vector data.
%package devel
Summary : GDAL library header files
2016-02-26 14:31:15 +01:00
Requires : lib%{name} %{soversion} = %{version}
2018-09-30 20:48:49 +02:00
Requires : pkgconfig(libopenjp2)
2019-07-08 21:20:39 +02:00
Provides : lib%{name} %{soversion} -devel = %{version}
Provides : lib%{name} -devel = %{version}
2015-02-10 11:05:38 +01:00
%description devel
Development Libraries for the GDAL file format library
2016-02-26 14:31:15 +01:00
%package -n lib%{name}%{soversion}
2015-02-10 11:05:38 +01:00
Summary : GDAL static libraries
2016-02-26 14:31:15 +01:00
%description -n lib%{name}%{soversion}
2015-02-10 11:05:38 +01:00
GDAL and OGR are translator libraries for raster and vector geospatial data
formats. As a library, it presents a single abstract data model to the calling
application for all supported formats.
2016-02-26 14:31:15 +01:00
%package -n perl-%{name}
2015-02-10 11:05:38 +01:00
Summary : Perl bindings for GDAL
Requires : %{name} = %{version} -%{release}
2015-03-01 20:53:48 +01:00
%{perl_requires}
2015-03-01 21:01:40 +01:00
2016-02-26 14:31:15 +01:00
%description -n perl-%{name}
2015-02-10 11:05:38 +01:00
Perl bindings for GDAL - Geo::GDAL, Geo::OGR and Geo::OSR modules.
2019-02-25 08:58:09 +01:00
%package -n python3-%{pypi_package_name}
2015-08-26 18:14:10 +02:00
Summary : GDAL Python3 module
Requires : %{name} = %{version} -%{release}
2019-02-25 08:58:09 +01:00
Provides : python3-%{name} = %{version}
2019-03-07 13:07:15 +01:00
Obsoletes : python3-%{name} < %{version}
2015-08-26 18:14:10 +02:00
2019-02-25 08:58:09 +01:00
%description -n python3-%{pypi_package_name}
2016-02-26 14:31:15 +01:00
The GDAL python modules provide support to handle multiple GIS file formats.
2015-08-26 18:14:10 +02:00
2015-02-10 11:05:38 +01:00
%prep
2016-02-26 14:31:15 +01:00
%setup -q -n %{sourcename} -%{version}
2020-07-06 18:59:55 +02:00
%autopatch -p1
2021-06-14 09:06:44 +02:00
# Prepare tests
tar -xf %{S:2}
2021-05-24 09:38:22 +02:00
# 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
2021-06-14 09:06:44 +02:00
# internal but needed rm -rv frmts/pcidsk
2021-05-24 09:38:22 +02:00
2019-04-08 16:08:57 +02:00
# Set the right (build) libproj.so version, use the upper found version.
2019-10-10 11:46:07 +02:00
PROJSOVER=$(ls -1 %{_libdir} /libproj.so.?? | tail -n1 | awk -F '.' '{print $3}' )
2018-08-01 08:52:43 +02:00
sed -i " s , # d e f i n e L I B N A M E \" l i b p r o j . s o \" , # d e f i n e L I B N A M E \" l i b p r o j . s o . $ { P R O J S O V E R } \" , g " ogr/ogrct.cpp
2020-06-16 11:27:49 +02:00
# --keep-going option not support on Leap/SLE
%if 0%{?sle_version} && 0%{?sle_version} <= 150200
sed -i 's/--keep-going//' doc/Makefile
%endif
2016-02-26 14:31:15 +01:00
# Fix mandir
sed -i " s | ^ m a n d i r = . * | m a n d i r = ' \ $ { p r e f i x } / s h a r e / m a n ' | " configure
2015-02-10 11:05:38 +01:00
2015-08-26 18:14:10 +02:00
# Fix wrong encoding EOL
2016-02-26 14:31:15 +01:00
for F in frmt_twms_srtm.xml frmt_wms_bluemarble_s3_tms.xml frmt_wms_virtualearth.xml frmt_twms_Clementine.xml;do
2015-08-26 18:14:10 +02:00
find . -name " $ { F } " -exec dos2unix {} \;
done
2020-11-08 22:31:36 +01:00
# Remove shebang in scripts located in non executable dir
2021-06-14 09:06:44 +02:00
find swig/python/gdal-utils/osgeo_utils -iname '*.py' -ls -exec sed -i '/^#!\/usr\/bin\/env python3/d' {} \;
2020-07-06 18:59:55 +02:00
# Fix wrong /usr/bin/env python3
find . -iname " * . p y " -exec sed -i " s , ^ # ! %{_bindir} / e n v p y t h o n 3 , # ! %{_bindir} / p y t h o n 3 , " {} \;
2018-05-15 10:54:45 +02:00
%if %{with ecw5_support}
# gdal configure script looks for a given layout, so reproduce what is expected.
2020-04-17 12:11:00 +02:00
export ECW_PATH=" . . / E C W / D e s k t o p _ R e a d - O n l y "
export ECW_LIB_PATH=" $ E C W _ P A T H / l i b / c p p 1 1 a b i / x 6 4 / r e l e a s e "
export ECW_INC_PATH=" $ E C W _ P A T H / i n c l u d e "
mkdir -p $ECW_PATH/lib/cpp11abi/x64/
ln -s %{_libdir} $ECW_LIB_PATH
ln -s %{_includedir} $ECW_INC_PATH
2018-05-15 10:54:45 +02:00
%endif
2017-11-24 09:52:34 +01:00
2015-02-10 11:05:38 +01:00
%build
%configure \
2016-02-26 14:31:15 +01:00
--prefix=%{_prefix} \
2015-02-10 11:05:38 +01:00
--includedir=%{_includedir} /gdal \
2020-07-19 11:31:26 +02:00
--datadir=%{_datadir} \
2016-02-26 14:31:15 +01:00
--with-threads \
2015-02-10 11:05:38 +01:00
--disable-static \
2021-06-14 09:06:44 +02:00
--without-armadillo \
2016-02-26 14:31:15 +01:00
--with-geotiff \
--with-libtiff \
2015-08-26 18:14:10 +02:00
--with-rename-internal-libtiff-symbols=yes \
--with-rename-internal-libgeotiff-symbols=yes \
2015-02-10 11:05:38 +01:00
--with-libz \
2016-09-30 18:56:46 +02:00
--with-liblzma \
2015-02-10 11:05:38 +01:00
--with-cfitsio=no \
2018-07-16 13:34:46 +02:00
--with-kea=yes \
2015-02-10 11:05:38 +01:00
--with-netcdf \
2015-08-26 18:14:10 +02:00
--with-openjpeg \
2015-02-10 11:05:38 +01:00
--with-curl \
--with-pg \
2021-06-14 09:06:44 +02:00
--with-pcre \
2015-02-10 11:05:38 +01:00
--with-ogdi \
2016-02-26 14:31:15 +01:00
--without-pcraster \
--with-jpeg12=no \
--without-libgrass \
--without-grass \
--enable-shared \
2015-02-10 11:05:38 +01:00
--with-geos \
--with-expat \
2016-10-30 10:23:20 +01:00
--without-jasper \
2015-02-10 11:05:38 +01:00
--with-png \
--with-gif \
--with-jpeg \
2015-08-26 18:14:10 +02:00
--with-spatialite \
2015-02-10 11:05:38 +01:00
--with-poppler \
--with-python \
--with-perl \
2015-09-26 11:38:36 +02:00
--with-mysql \
2015-12-05 17:30:21 +01:00
--with-freexl \
2021-06-14 09:06:44 +02:00
--without-qhull \
2015-02-10 11:05:38 +01:00
--with-xerces=yes \
--with-xerces-lib=" - l x e r c e s - c " \
2018-05-15 10:54:45 +02:00
%if %{with ecw5_support}
--with-ecw=../ECW/ \
%else
2015-02-10 11:05:38 +01:00
%if %{with ecw_support}
2016-02-26 14:31:15 +01:00
--with-ecw \
2015-08-26 18:14:10 +02:00
CFLAGS=" $ C F L A G S - p t h r e a d " \
2015-02-10 11:05:38 +01:00
%endif
2018-05-15 10:54:45 +02:00
%endif
2018-06-15 09:16:32 +02:00
%if %{with fgdb_support}
--with-fgdb \
--with-static-proj4 \
2018-07-27 09:37:42 +02:00
--with-proj5-api=no \
2019-04-11 15:07:50 +02:00
CPPFLAGS=" $ C P P F L A G S - D A C C E P T _ U S E _ O F _ D E P R E C A T E D _ P R O J _ A P I _ H " \
2021-06-14 09:06:44 +02:00
%endif
%if %{with kml_support}
--with-kml \
%endif
%if %{with sfcgal_support}
--with-sfcgal=%{_bindir} /sfcgal-config \
%endif
%if %{with heif_support}
--with-heif \
2018-06-15 09:16:32 +02:00
%endif
2015-12-05 17:30:21 +01:00
--with-opencl \
2015-08-28 13:12:11 +02:00
--without-hdf4 \
--with-hdf5 \
2015-08-26 18:14:10 +02:00
--with-webp \
2019-10-10 11:46:07 +02:00
--disable-rpath \
--enable-lto
2015-02-10 11:05:38 +01:00
# regenerate where needed
2015-08-26 18:14:10 +02:00
for M in perl python;
do
make %{?_smp_mflags} -C swig/${M} veryclean
make %{?_smp_mflags} -C swig/${M} generate
done
2015-02-10 11:05:38 +01:00
2020-07-19 11:31:26 +02:00
# Workaround incomplete ordering in Makefile
%make_build lib-dependencies
%make_build all
2015-02-10 11:05:38 +01:00
2015-08-26 18:14:10 +02:00
# Make Python 3 module
pushd swig/python
python3 setup.py build
popd
2015-02-10 11:05:38 +01:00
%install
2015-08-26 18:14:10 +02:00
# Install Python 3 module
# Must be done first so executables are env python
pushd swig/python
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
popd
2020-07-06 18:59:55 +02:00
# Don't even think to make it smp_mflags if you want successful build!
make V=1 install install-man DESTDIR=%{buildroot} INST_MAN=%{_mandir}
2015-02-10 11:05:38 +01:00
# chrpath must be removed here
chmod 644 %{buildroot} %{perl_vendorarch} /auto/Geo/GDAL/Const/Const.so
chmod 644 %{buildroot} %{perl_vendorarch} /auto/Geo/GDAL/GDAL.so
2017-05-28 13:31:48 +02:00
chmod 644 %{buildroot} %{perl_vendorarch} /auto/Geo/GNM/GNM.so
2015-02-10 11:05:38 +01:00
chmod 644 %{buildroot} %{perl_vendorarch} /auto/Geo/OGR/OGR.so
chmod 644 %{buildroot} %{perl_vendorarch} /auto/Geo/OSR/OSR.so
chrpath --delete %{buildroot} %{perl_vendorarch} /auto/Geo/GDAL/Const/Const.so
chrpath --delete %{buildroot} %{perl_vendorarch} /auto/Geo/GDAL/GDAL.so
2017-05-28 13:31:48 +02:00
chrpath --delete %{buildroot} %{perl_vendorarch} /auto/Geo/GNM/GNM.so
2015-02-10 11:05:38 +01:00
chrpath --delete %{buildroot} %{perl_vendorarch} /auto/Geo/OGR/OGR.so
chrpath --delete %{buildroot} %{perl_vendorarch} /auto/Geo/OSR/OSR.so
2020-07-06 18:59:55 +02:00
# do not ship those
2015-02-10 11:05:38 +01:00
rm -rf %{buildroot} %{_mandir} /man1/_*
rm -rf %{buildroot} %{_libdir} /libgdal.la
rm -rf %{buildroot} %{perl_archlib} /perllocal.pod
rm -rf %{buildroot} %{perl_vendorarch} /auto/Geo/*/.packlist
rm -rf %{buildroot} %{perl_vendorarch} /auto/Geo/GDAL/Const/.packlist
rm -rf %{buildroot} %{_bindir} /*.dox
2018-04-06 08:50:35 +02:00
# License doesn't go there
rm -f %{buildroot} %{_datadir} /gdal/LICENSE.TXT
2015-02-10 11:05:38 +01:00
2016-02-04 21:02:29 +01:00
# avoid PACKAGE redefines
sed -i 's,\(#define PACKAGE_.*\),/* \1 */,' %{buildroot} %{_includedir} /gdal/cpl_config.h
2021-06-14 09:06:44 +02:00
%if %{with tests_support}
%check
pushd %{name} autotest-%{version}
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot} %{_libdir}
export GDAL_DATA=%{buildroot} %{_datadir} /%{name} /
export PYTHONPATH=%{buildroot} %{python3_sitearch} /
# Enable these tests on demand
#export GDAL_RUN_SLOW_TESTS=1
#export GDAL_DOWNLOAD_TEST_DATA=1
# Some tests are currently skipped:
# - `test_fits_vector` because it's crashing.
# - `test_http*`, `test_jp2openjpeg_45`, `*multithreaded_download*`,
# `*multithreaded_upload*`, and `test_vsis3_no_sign_request`, which
# try to connect externally.
# - `test_eedai_GOOGLE_APPLICATION_CREDENTIALS` which seems to use the
# internet.
# - `test_osr_erm_1`, `test_ers_4`, `test_ers_8`, and `test_ers_10` as
# they use `ecw_cs.wkt` which was removed due to unclear license.
# - `test_jpeg2000_8` and `test_jpeg2000_11` as files don't load,
# perhaps due to buggy Jasper library?
# - `test_osr_ct_options_area_of_interest` returns the wrong value, but
# it's skipped on macOS by upstream for mysteriously failing as well,
# so do the same here.
# - `test_ndf_1` because it hangs on i686 and armv7hl
# FIXME: Tests hang on i686 and armv7hl
%ifnarch i686 armv7hl
2021-07-14 09:40:40 +02:00
pytest -k 'not test_fits_vector and not test_http and not test_jp2openjpeg_45 and not multithreaded_download and not multithreaded_upload and not test_vsis3_no_sign_request and not test_eedai_GOOGLE_APPLICATION_CREDENTIALS and not test_osr_erm_1 and not test_ers_4 and not test_ers_8 and not test_ers_10 and not test_jpeg2000_8 and not test_jpeg2000_11 and not test_osr_ct_options_area_of_interest and not test_ndf_1 and not test_cog_small_world_to_web_mercator and not test_bag'
2021-06-14 09:06:44 +02:00
#|| :
%endif
popd
%endif
2016-02-26 14:31:15 +01:00
%post -n lib%{name}%{soversion} -p /sbin/ldconfig
2021-03-12 09:37:40 +01:00
2016-02-26 14:31:15 +01:00
%postun -n lib%{name}%{soversion} -p /sbin/ldconfig
2015-02-10 11:05:38 +01:00
2016-02-26 14:31:15 +01:00
%files -n lib%{name}%{soversion}
2018-04-06 08:50:35 +02:00
%license LICENSE.TXT
2016-02-26 14:31:15 +01:00
%{_libdir} /*.so.%{soversion} .*
%{_libdir} /*.so.%{soversion}
2015-02-10 11:05:38 +01:00
%files
2018-04-06 08:50:35 +02:00
%license LICENSE.TXT
2015-02-10 11:05:38 +01:00
%doc NEWS PROVENANCE.TXT
%{_bindir} /gdal_contour
2020-11-08 22:31:36 +01:00
%{_bindir} /gdal_create
2015-02-10 11:05:38 +01:00
%{_bindir} /gdal_grid
%{_bindir} /gdal_rasterize
%{_bindir} /gdal_translate
2020-06-16 11:27:49 +02:00
%{_bindir} /gdal_viewshed
2015-02-10 11:05:38 +01:00
%{_bindir} /gdaladdo
%{_bindir} /gdalbuildvrt
%{_bindir} /gdaldem
%{_bindir} /gdalenhance
%{_bindir} /gdalinfo
2016-02-26 14:31:15 +01:00
%{_bindir} /gdallocationinfo
2015-02-10 11:05:38 +01:00
%{_bindir} /gdalmanage
2020-06-16 11:27:49 +02:00
%{_bindir} /gdalmdiminfo
%{_bindir} /gdalmdimtranslate
2015-02-10 11:05:38 +01:00
%{_bindir} /gdalsrsinfo
%{_bindir} /gdaltindex
%{_bindir} /gdaltransform
%{_bindir} /gdalwarp
2017-05-28 13:31:48 +02:00
%{_bindir} /gnmanalyse
%{_bindir} /gnmmanage
2015-02-10 11:05:38 +01:00
%{_bindir} /nearblack
%{_bindir} /ogr2ogr
%{_bindir} /ogrinfo
2016-02-26 14:31:15 +01:00
%{_bindir} /ogrlineref
2015-02-10 11:05:38 +01:00
%{_bindir} /ogrtindex
%{_bindir} /testepsg
%{_datadir} /gdal
2018-03-22 10:36:33 +01:00
%{_mandir} /man1/gdal_contour.1%{?ext_man}
2020-11-08 22:31:36 +01:00
%{_mandir} /man1/gdal_create.1%{?ext_man}
2018-03-22 10:36:33 +01:00
%{_mandir} /man1/gdal_rasterize.1%{?ext_man}
%{_mandir} /man1/gdal_translate.1%{?ext_man}
2020-07-06 18:59:55 +02:00
%{_mandir} /man1/gdal_viewshed.1%{?ext_man}
2018-03-22 10:36:33 +01:00
%{_mandir} /man1/gdaladdo.1%{?ext_man}
%{_mandir} /man1/gdalbuildvrt.1%{?ext_man}
%{_mandir} /man1/gdaldem.1%{?ext_man}
%{_mandir} /man1/gdalinfo.1%{?ext_man}
%{_mandir} /man1/gdallocationinfo.1%{?ext_man}
%{_mandir} /man1/gdalmanage.1%{?ext_man}
2020-07-06 18:59:55 +02:00
%{_mandir} /man1/gdalmdiminfo.1%{?ext_man}
%{_mandir} /man1/gdalmdimtranslate.1%{?ext_man}
2018-03-22 10:36:33 +01:00
%{_mandir} /man1/gdalsrsinfo.1%{?ext_man}
%{_mandir} /man1/gdaltindex.1%{?ext_man}
%{_mandir} /man1/gdaltransform.1%{?ext_man}
%{_mandir} /man1/gdalwarp.1%{?ext_man}
%{_mandir} /man1/gnmanalyse.1%{?ext_man}
%{_mandir} /man1/gnmmanage.1%{?ext_man}
%{_mandir} /man1/nearblack.1%{?ext_man}
%{_mandir} /man1/ogr2ogr.1%{?ext_man}
%{_mandir} /man1/ogrinfo.1%{?ext_man}
%{_mandir} /man1/ogrlineref.1%{?ext_man}
%{_mandir} /man1/ogrtindex.1%{?ext_man}
2020-11-08 22:31:36 +01:00
# 20201104 We keep all binaries in gdal and requires python3-GDAL
2021-06-14 09:06:44 +02:00
%{_bindir} /gdalattachpct.py
2020-11-08 22:31:36 +01:00
%{_bindir} /gdal2tiles.py
%{_bindir} /gdal2xyz.py
%{_bindir} /gdal_calc.py
%{_bindir} /gdal_edit.py
%{_bindir} /gdal_fillnodata.py
%{_bindir} /gdal_merge.py
%{_bindir} /gdal_pansharpen.py
%{_bindir} /gdal_polygonize.py
%{_bindir} /gdal_proximity.py
%{_bindir} /gdal_retile.py
%{_bindir} /gdal_sieve.py
%{_bindir} /gdalcompare.py
%{_bindir} /gdalmove.py
%{_bindir} /ogrmerge.py
%{_bindir} /pct2rgb.py
%{_bindir} /rgb2pct.py
%{_mandir} /man1/gdal2tiles.1%{?ext_man}
%{_mandir} /man1/gdal_calc.1%{?ext_man}
%{_mandir} /man1/gdal_edit.1%{?ext_man}
%{_mandir} /man1/gdal_fillnodata.1%{?ext_man}
%{_mandir} /man1/gdal_grid.1%{?ext_man}
%{_mandir} /man1/gdal_merge.1%{?ext_man}
%{_mandir} /man1/gdal_pansharpen.1%{?ext_man}
%{_mandir} /man1/gdal_polygonize.1%{?ext_man}
%{_mandir} /man1/gdal_proximity.1%{?ext_man}
%{_mandir} /man1/gdal_retile.1%{?ext_man}
%{_mandir} /man1/gdal_sieve.1%{?ext_man}
%{_mandir} /man1/gdalcompare.1%{?ext_man}
%{_mandir} /man1/gdalmove.1%{?ext_man}
%{_mandir} /man1/ogrmerge.1%{?ext_man}
2018-03-22 10:36:33 +01:00
%{_mandir} /man1/pct2rgb.1%{?ext_man}
%{_mandir} /man1/rgb2pct.1%{?ext_man}
2015-02-10 11:05:38 +01:00
%files devel
2018-03-22 10:36:33 +01:00
%license LICENSE.TXT
%doc NEWS PROVENANCE.TXT
2020-06-16 11:27:49 +02:00
%if %{with docs}
%doc doc/build/html/
%endif
2015-02-10 11:05:38 +01:00
%attr (755,root,root) %{_bindir} /gdal-config
%{_libdir} /libgdal.so
%{_libdir} /pkgconfig/gdal.pc
%dir %{_includedir} /gdal
%{_includedir} /gdal/*.h
2018-03-22 10:36:33 +01:00
%{_mandir} /man1/gdal-config.1%{?ext_man}
2015-02-10 11:05:38 +01:00
%files -n perl-%{name}
2018-03-22 10:36:33 +01:00
%license LICENSE.TXT
%doc NEWS PROVENANCE.TXT
2015-02-10 11:05:38 +01:00
%{perl_vendorarch} /Geo/GDAL.pm
%dir %{perl_vendorarch} /Geo/GDAL
%{perl_vendorarch} /Geo/GDAL/Const.pm
2017-05-28 13:31:48 +02:00
%{perl_vendorarch} /Geo/GNM.pm
2015-02-10 11:05:38 +01:00
%{perl_vendorarch} /Geo/OGR.pm
%{perl_vendorarch} /Geo/OSR.pm
%dir %{perl_vendorarch} /Geo
%dir %{perl_vendorarch} /auto/Geo
%dir %{perl_vendorarch} /auto/Geo/GDAL
%attr (755,root,root) %{perl_vendorarch} /auto/Geo/GDAL/GDAL.so
%dir %{perl_vendorarch} /auto/Geo/GDAL/Const
%attr (755,root,root) %{perl_vendorarch} /auto/Geo/GDAL/Const/Const.so
2017-05-28 13:31:48 +02:00
%dir %{perl_vendorarch} /auto/Geo/GNM
%attr (755,root,root) %{perl_vendorarch} /auto/Geo/GNM/GNM.so
2015-02-10 11:05:38 +01:00
%dir %{perl_vendorarch} /auto/Geo/OGR
%attr (755,root,root) %{perl_vendorarch} /auto/Geo/OGR/OGR.so
%dir %{perl_vendorarch} /auto/Geo/OSR
%attr (755,root,root) %{perl_vendorarch} /auto/Geo/OSR/OSR.so
2018-03-22 10:36:33 +01:00
%{_mandir} /man3/Geo::GDAL.3pm%{?ext_man}
2015-02-10 11:05:38 +01:00
2019-02-25 08:58:09 +01:00
%files -n python3-%{pypi_package_name}
2018-03-22 10:36:33 +01:00
%license LICENSE.TXT
%doc NEWS PROVENANCE.TXT
2015-08-26 18:14:10 +02:00
%{python3_sitearch} /*
2015-02-10 11:05:38 +01:00
%changelog