# TODO:
+# - be reasonable about devel dependencies - you do not need all of them to
+# use gdal (probably a gdal module or driver shall not imply devel
+# dependency)
# - spatialite (--with-spatialite; libspatialite: http://www.gaia-gis.it/gaia-sins/)
# - freexl (http://www.gaia-gis.it/FreeXL/)
# - rasdaman (--with-rasdaman; http://rasdaman.eecs.jacobs-university.de/trac/rasdaman/wiki/Download)
# - armadillo (--with-armadillo; http://arma.sourceforge.net/)
-# - openjpeg (unreleased 1.5 or 2? needs opj_decode_tile_data symbol, not available in 1.3-1.4)
+# - openjpeg (unreleased post-1.5 or 2? needs opj_decode_tile_data symbol, not available in 1.3-1.5)
# - libjpeg12 (needs patching to use system one)
# - libkml (1.3.0 needed, not released yet)
# - wait for newer pcidsk, switch to external again
Summary: Geospatial Data Abstraction Library
Summary(pl.UTF-8): Biblioteka abstrakcji danych dotyczÄ…cych powierzchni Ziemi
Name: gdal
-Version: 1.9.0
+Version: 1.9.1
Release: 2
License: BSD-like
Group: Libraries
Source0: ftp://ftp.remotesensing.org/gdal/%{name}-%{version}.tar.gz
-# Source0-md5: 1853f3d8eb5232ae030abe007840cade
+# Source0-md5: c5cf09b92dac1f5775db056e165b34f5
Patch0: %{name}-perl.patch
Patch1: %{name}-python_install.patch
-Patch2: %{name}-doxy.patch
-Patch3: %{name}-sh.patch
+Patch2: gdal-1.9.1-poppler020.patch
+
Patch4: %{name}-php.patch
+Patch5: %{name}-fpic.patch
URL: http://www.gdal.org/
BuildRequires: autoconf >= 2.52
BuildRequires: automake
Requires: hdf-devel >= 4.0
Requires: hdf5-devel
Requires: jasper-devel
-%{?with_java:Requires: jdk}
Requires: libcsf-devel
Requires: libdap-devel >= 3.10
Requires: libgeotiff-devel >= 1.2.1
%setup -q
%patch0 -p1
%patch1 -p1
-%patch2 -p1
-%patch3 -p1
+%patch2 -p4
+
%patch4 -p1
+%patch5 -p1
# need to regenerate (old ones don't support perl 5.10)
%{__rm} swig/perl/{gdal_wrap.cpp,gdalconst_wrap.c,ogr_wrap.cpp,osr_wrap.cpp}