Summary: Geospatial Data Abstraction Library
Summary(pl): Biblioteka abstrakcji danych dotycz±cych powierzchni Ziemi
Name: gdal
-Version: 1.3.1
-Release: 5
+Version: 1.3.2
+Release: 2
License: BSD-like
Group: Libraries
-Source0: ftp://ftp.remotesensing.org/pub/gdal/%{name}-%{version}.tar.gz
-# Source0-md5: 7ff1ceff745ee011793e1f860c02c172
+Source0: ftp://ftp.gdal.org/gdal/%{name}-%{version}.tar.gz
+# Source0-md5: 67ed02dcea21e93f5e123bb0d322898a
Patch0: %{name}-pgsql.patch
Patch1: %{name}-DESTDIR.patch
Patch2: %{name}-dods.patch
Patch3: %{name}-gcc4.patch
-URL: http://www.remotesensing.org/gdal/
+Patch4: %{name}-ac.patch
+URL: http://www.gdal.org/
BuildRequires: autoconf
BuildRequires: cfitsio-devel
BuildRequires: doxygen
BuildRequires: geos-devel >= 2.0
+BuildRequires: giflib-devel >= 4.0
BuildRequires: hdf-devel >= 4.0
BuildRequires: jasper-devel
BuildRequires: libcsf-devel
BuildRequires: libpng-devel >= 2:1.2.8
BuildRequires: libstdc++-devel
BuildRequires: libtiff-devel >= 3.6.0
-BuildRequires: libungif-devel >= 4.0
BuildRequires: netcdf-devel
BuildRequires: ogdi-devel >= 3.1
BuildRequires: postgresql-devel
Requires: %{name} = %{version}-%{release}
Requires: cfitsio-devel
Requires: geos-devel >= 2.0
+Requires: giflib-devel
Requires: hdf-devel >= 4.0
Requires: jasper-devel
Requires: libcsf-devel
Requires: libpng-devel >= 2:1.2.8
Requires: libstdc++-devel
Requires: libtiff-devel >= 3.6.0
-Requires: libungif-devel
Requires: netcdf-devel
Requires: ogdi-devel >= 3.1
Requires: postgresql-devel
%patch1 -p1
%patch2 -p1
%patch3 -p1
-
-%{__perl} -pi -e "s/PYLIB=lib/PYLIB=%{_lib}/" aclocal.m4
+%patch4 -p1
%build
# disable grass/libgrass here, it can be built from separate gdal-grass package
mv -f ogr/html html/org
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
%clean
%files
%defattr(644,root,root,755)
-%doc ChangeLog NEWS
+%doc NEWS PROVENANCE.TXT
%attr(755,root,root) %{_bindir}/*
%exclude %{_bindir}/gdal-config
%attr(755,root,root) %{_libdir}/libgdal.so.*.*.*
%files static
%defattr(644,root,root,755)
-%{_libdir}/*.a
+%{_libdir}/libgdal.a
%files -n python-gdal
%defattr(644,root,root,755)
%attr(755,root,root) %{py_sitedir}/_gdalmodule.so
-%{py_sitedir}/*.py
+%{py_sitedir}/*.py[co]