|
|
|
@ -18,12 +18,11 @@
|
|
|
|
|
# Sadly noarch doesn't work in EL 5, see
|
|
|
|
|
# http://fedoraproject.org/wiki/EPEL/GuidelinesAndPolicies
|
|
|
|
|
|
|
|
|
|
#TODO: EvenR suggested to drop Ruby bindings, as they are unmaintained
|
|
|
|
|
# He also suggest to use --with-static-proj4 to actually link to proj, instead of dlopen()ing it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Tests can be of a different version
|
|
|
|
|
%global testversion 1.11.2
|
|
|
|
|
%global testversion 1.11.3
|
|
|
|
|
%global run_tests 1
|
|
|
|
|
|
|
|
|
|
%global with_spatialite 1
|
|
|
|
@ -40,13 +39,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: gdal
|
|
|
|
|
Version: 1.11.2
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Version: 1.11.3
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: GIS file format library
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://www.gdal.org
|
|
|
|
|
# Source0: http://download.osgeo.org/gdal/gdal-%%{version}.tar.gz
|
|
|
|
|
# Source0: http://download.osgeo.org/gdal/%%{version}/gdal-%%{version}.tar.xz
|
|
|
|
|
# See PROVENANCE.TXT-fedora and the cleaner script for details!
|
|
|
|
|
|
|
|
|
|
Source0: %{name}-%{version}-fedora.tar.xz
|
|
|
|
@ -63,6 +62,9 @@ Patch1: %{name}-g2clib.patch
|
|
|
|
|
# Patch for Fedora JNI library location
|
|
|
|
|
Patch2: %{name}-jni.patch
|
|
|
|
|
|
|
|
|
|
# https://trac.osgeo.org/gdal/ticket/6159#ticket
|
|
|
|
|
Patch3: %{name}-2.0.1-iso8211-include.patch
|
|
|
|
|
|
|
|
|
|
# Fedora uses Alternatives for Java
|
|
|
|
|
Patch8: %{name}-1.9.0-java.patch
|
|
|
|
|
|
|
|
|
@ -113,6 +115,7 @@ BuildRequires: mysql-devel
|
|
|
|
|
BuildRequires: numpy
|
|
|
|
|
BuildRequires: pcre-devel
|
|
|
|
|
BuildRequires: ogdi-devel
|
|
|
|
|
BuildRequires: openjpeg2-devel
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
BuildRequires: poppler-devel
|
|
|
|
@ -265,6 +268,7 @@ rm -r frmts/grib/degrib18/g2clib-1.0.4
|
|
|
|
|
|
|
|
|
|
%patch1 -p1 -b .g2clib~
|
|
|
|
|
%patch2 -p1 -b .jni~
|
|
|
|
|
%patch3 -p1 -b .iso8211~
|
|
|
|
|
%patch8 -p1 -b .java~
|
|
|
|
|
|
|
|
|
|
# Copy in PROVENANCE.TXT-fedora
|
|
|
|
@ -372,7 +376,6 @@ export CPPFLAGS="$CPPFLAGS -I%{_includedir}/libgeotiff"
|
|
|
|
|
|
|
|
|
|
# For future reference:
|
|
|
|
|
# epsilon: Stalled review -- https://bugzilla.redhat.com/show_bug.cgi?id=660024
|
|
|
|
|
# openjpeg 2.0 necessary, 1.4 is in Fedora
|
|
|
|
|
# Building without pgeo driver, because it drags in Java
|
|
|
|
|
|
|
|
|
|
%configure \
|
|
|
|
@ -407,7 +410,7 @@ export CPPFLAGS="$CPPFLAGS -I%{_includedir}/libgeotiff"
|
|
|
|
|
--with-odbc \
|
|
|
|
|
--with-ogdi \
|
|
|
|
|
--without-msg \
|
|
|
|
|
--without-openjpeg \
|
|
|
|
|
--with-openjpeg \
|
|
|
|
|
--with-pcraster \
|
|
|
|
|
--with-pg \
|
|
|
|
|
--with-png \
|
|
|
|
@ -434,6 +437,15 @@ pushd swig/perl
|
|
|
|
|
echo > Makefile.PL;
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
# Build some utilities, as requested in BZ #1271906
|
|
|
|
|
pushd ogr/ogrsf_frmts/s57/
|
|
|
|
|
make all
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
pushd frmts/iso8211/
|
|
|
|
|
make all
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
# Install the Perl modules in the right place
|
|
|
|
|
sed -i 's|INSTALLDIRS = site|INSTALLDIRS = vendor|' swig/perl/Makefile_*
|
|
|
|
|
|
|
|
|
@ -488,6 +500,11 @@ make DESTDIR=%{buildroot} \
|
|
|
|
|
install \
|
|
|
|
|
install-man
|
|
|
|
|
|
|
|
|
|
install -pm 755 ogr/ogrsf_frmts/s57/s57dump %{buildroot}%{_bindir}
|
|
|
|
|
install -pm 755 frmts/iso8211/8211createfromxml %{buildroot}%{_bindir}
|
|
|
|
|
install -pm 755 frmts/iso8211/8211dump %{buildroot}%{_bindir}
|
|
|
|
|
install -pm 755 frmts/iso8211/8211view %{buildroot}%{_bindir}
|
|
|
|
|
|
|
|
|
|
# Directory for auto-loading plugins
|
|
|
|
|
mkdir -p %{buildroot}%{_libdir}/%{name}plugins
|
|
|
|
|
|
|
|
|
@ -695,6 +712,8 @@ popd
|
|
|
|
|
%{_bindir}/gdaltransform
|
|
|
|
|
%{_bindir}/nearblack
|
|
|
|
|
%{_bindir}/ogr*
|
|
|
|
|
%{_bindir}/8211*
|
|
|
|
|
%{_bindir}/s57*
|
|
|
|
|
%{_bindir}/testepsg
|
|
|
|
|
%{_mandir}/man1/gdal*.1*
|
|
|
|
|
%exclude %{_mandir}/man1/gdal-config.1*
|
|
|
|
@ -764,22 +783,20 @@ popd
|
|
|
|
|
#Or as before, using ldconfig
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Mar 31 2015 Orion Poplawski <orion@cora.nwra.com> - 1.11.2-3
|
|
|
|
|
- Rebuild for g2clib fix
|
|
|
|
|
* Wed Oct 21 2015 Volker Froehlich <volker27@gmx.at> - 1.11.3-1
|
|
|
|
|
- New release
|
|
|
|
|
|
|
|
|
|
* Wed Mar 11 2015 Devrim Gündüz <devrim@gunduz.org> - 1.11.2-2
|
|
|
|
|
- Rebuilt for proj 4.9.1
|
|
|
|
|
* Wed Oct 21 2015 Volker Froehlich <volker27@gmx.at> - 1.11.2-5
|
|
|
|
|
- Solve BZ #1271906 (Build iso8211 and s57 utilities)
|
|
|
|
|
- Support openjpeg2
|
|
|
|
|
|
|
|
|
|
* Wed Jul 8 2015 José Matos <jamatos@fedoraproject.org> - 1.11.2-4
|
|
|
|
|
- Rebuild for armadillo 5(.xxx.y)
|
|
|
|
|
|
|
|
|
|
* Tue Feb 17 2015 Volker Fröhlich <volker27@gmx.at> - 1.11.2-1
|
|
|
|
|
- New release
|
|
|
|
|
- Remove obsolete sqlite patch
|
|
|
|
|
|
|
|
|
|
* Fri Jan 23 2015 Marek Kasik <mkasik@redhat.com> - 1.11.1-6
|
|
|
|
|
- Rebuild (poppler-0.30.0)
|
|
|
|
|
|
|
|
|
|
* Wed Jan 07 2015 Orion Poplawski <orion@cora.nwra.com> - 1.11.1-5
|
|
|
|
|
- Rebuild for hdf5 1.8.4
|
|
|
|
|
|
|
|
|
|
* Sat Dec 6 2014 Volker Fröhlich <volker27@gmx.at> - 1.11.1-4
|
|
|
|
|
- Apply upstream changeset 27949 to prevent a crash when using sqlite 3.8.7
|
|
|
|
|
|
|
|
|
@ -796,18 +813,12 @@ popd
|
|
|
|
|
- New release
|
|
|
|
|
- Correct test suite source URL
|
|
|
|
|
|
|
|
|
|
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.11.0-9
|
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Aug 25 2014 Devrim Gündüz <devrim@gunduz.org> - 1.11.0-7
|
|
|
|
|
- Rebuilt for libgeotiff
|
|
|
|
|
|
|
|
|
|
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11.0-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Aug 14 2014 Volker Fröhlich <volker27@gmx.at> - 1.11.0-6
|
|
|
|
|
* Fri Sep 19 2014 Volker Fröhlich <volker27@gmx.at> - 1.11.0-7
|
|
|
|
|
- Add aarch64 to gdal-config script (BZ#1129295)
|
|
|
|
|
|
|
|
|
|
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11.0-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 25 2014 Peter Robinson <pbrobinson@fedoraproject.org> 1.11.0-5
|
|
|
|
|
- rebuild (libspatialite)
|
|
|
|
|
|
|
|
|
|