%bcond_without spatialite # SpatiaLite support
%bcond_without xerces # Xerces support
%bcond_without java # Java and MDB support
-%bcond_without php # PHP binding [PHP 7 not supported by swig 3.0.x]
+%bcond_with php # PHP binding [PHP 7 not supported by swig 3.0.x]
%bcond_with ruby # Ruby binding [not available as of 2.0.2]
%if %{with podofo}
Summary(pl.UTF-8): Biblioteka abstrakcji danych dotyczÄ…cych powierzchni Ziemi
Name: gdal
Version: 2.0.2
-Release: 2
+Release: 17
License: BSD-like
Group: Libraries
Source0: http://download.osgeo.org/gdal/%{version}/%{name}-%{version}.tar.xz
Patch11: %{name}-armadillo.patch
Patch12: %{name}-rasdaman.patch
Patch13: %{name}-pluginsdir.patch
+Patch14: %{name}-uchar.patch
+Patch15: libx32.patch
URL: http://www.gdal.org/
%{?with_php:BuildRequires: %{php_name}-devel}
%{?with_opencl:BuildRequires: OpenCL-devel >= 1.0}
BuildRequires: libuuid-devel
BuildRequires: libwebp-devel
BuildRequires: libxml2-devel >= 2
-%{?with_mysql:BuildRequires: mysql-devel}
+%{?with_mysql:BuildRequires: /usr/bin/mysql_config}
BuildRequires: netcdf-devel >= 4.1
BuildRequires: ogdi-devel >= 3.1
%{?with_openjpeg:BuildRequires: openjpeg2-devel >= 2.0.0-2}
Requires: libuuid-devel
Requires: libwebp-devel
Requires: libxml2-devel >= 2
-%{?with_mysql:Requires: mysql-devel}
+%{?with_mysql:Requires: /usr/bin/mysql_config}
Requires: netcdf-devel >= 4
Requires: ogdi-devel >= 3.1
%{?with_openjpeg:Requires: openjpeg2-devel >= 2.0.0-2}
%patch11 -p1
%patch12 -p1
%patch13 -p1
+%patch14 -p1
+%patch15 -p1
# need to regenerate (old ones don't support perl 5.10 or php 5.5)
%{__rm} swig/{perl,php}/{gdal_wrap.cpp,gdalconst_wrap.c,ogr_wrap.cpp,osr_wrap.cpp}