gdal : major upgrade
This commit is contained in:
+41
-66
@@ -9,83 +9,58 @@ from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import perlmodules
|
||||
from pisi.actionsapi import pythonmodules
|
||||
|
||||
|
||||
def setup():
|
||||
# autotools.autoreconf("-vfi")
|
||||
# autotools.aclocal()
|
||||
options_cfg = ''.join([
|
||||
'--with-png ',
|
||||
'--with-curl ',
|
||||
'--with-geos ',
|
||||
'--with-hdf5 ',
|
||||
'--with-perl ',
|
||||
'--with-expat ',
|
||||
'--with-mysql ',
|
||||
'--with-netcdf ',
|
||||
'--with-geotiff ',
|
||||
'--with-libtiff ',
|
||||
'--with-sqlite3 ',
|
||||
'--enable-shared ',
|
||||
'--with-openjpeg ',
|
||||
'--with-spatialite'])
|
||||
|
||||
pisitools.cflags.add("-fno-strict-aliasing")
|
||||
autotools.configure("%s" % options_cfg)
|
||||
|
||||
autotools.configure("--disable-static \
|
||||
--enable-shared \
|
||||
--datadir=/usr/share/gdal \
|
||||
--with-threads \
|
||||
--with-jasper \
|
||||
--with-odbc=/usr/lib/unixODBC \
|
||||
--with-expat \
|
||||
--with-cfitsio \
|
||||
--with-hdf5 \
|
||||
--with-netcdf \
|
||||
--with-png \
|
||||
--with-geos \
|
||||
--without-mysql \
|
||||
--with-curl \
|
||||
--with-perl \
|
||||
--with-jpeg \
|
||||
--with-jpeg12=no \
|
||||
--with-libtiff \
|
||||
--with-sqlite3 \
|
||||
--with-geotiff=external \
|
||||
--with-podofo \
|
||||
--with-spatialite \
|
||||
--with-ogr \
|
||||
--with-grib \
|
||||
--with-curl \
|
||||
--with-webp \
|
||||
--with-python \
|
||||
--without-poppler \
|
||||
--with-xerces \
|
||||
--with-openjpeg \
|
||||
--without-libtool \
|
||||
--without-hdf4 \
|
||||
--without-fme \
|
||||
--without-pcraster \
|
||||
--without-kakadu \
|
||||
--without-mrsid \
|
||||
--without-jp2mrsid \
|
||||
--without-msg \
|
||||
--without-bsb \
|
||||
--without-dods-root \
|
||||
--without-oci \
|
||||
--without-ingres \
|
||||
--without-spatialite \
|
||||
--without-dwgdirect \
|
||||
--without-epsilon \
|
||||
--without-idb \
|
||||
--without-sde \
|
||||
--mandir=/usr/share/man \
|
||||
--without-ruby")
|
||||
#--with-ogdi error: rpc/rpc.h
|
||||
|
||||
|
||||
# fix unused direct dependency analysis
|
||||
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
|
||||
|
||||
#for bug 13646
|
||||
#pisitools.dosed("GDALmake.opt", "PY_HAVE_SETUPTOOLS=1 ", "PY_HAVE_SETUPTOOLS= ")
|
||||
#pisitools.dosed("apps/GNUmakefile", "EXE_DEP_LIBS ", "KILL_EXE_DEP_LIBS ")
|
||||
|
||||
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
# FIXME build man pages
|
||||
#autotools.make("man")
|
||||
|
||||
# build python bindings
|
||||
shelltools.cd("swig/python")
|
||||
pythonmodules.compile()
|
||||
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
#remove egg
|
||||
# pisitools.removeDir("/usr/lib/python2.7/site-packages/GDAL-*")
|
||||
|
||||
#pisitools.domove("/usr/man/man3/*", "/usr/share/man/man3")
|
||||
#pisitools.removeDir("/usr/man/")
|
||||
#pisitools.domove("/usr/etc/bash_completion.d/*", "/etc/bash_completion.d")
|
||||
#pisitools.removeDir("/usr/etc")
|
||||
|
||||
# install python bindings
|
||||
shelltools.cd("swig/python")
|
||||
pythonmodules.install()
|
||||
shelltools.cd("../..")
|
||||
|
||||
perlmodules.removePodfiles()
|
||||
|
||||
# fix rpath
|
||||
shelltools.system("chrpath -d %s/usr/lib/perl5/x86_64-linux-thread-multi/auto/Geo/GDAL/Const/Const.so" % get.installDIR())
|
||||
shelltools.system("chrpath -d %s/usr/lib/perl5/x86_64-linux-thread-multi/auto/Geo/GDAL/GDAL.so" % get.installDIR())
|
||||
shelltools.system("chrpath -d %s/usr/lib/perl5/x86_64-linux-thread-multi/auto/Geo/GNM/GNM.so" % get.installDIR())
|
||||
shelltools.system("chrpath -d %s/usr/lib/perl5/x86_64-linux-thread-multi/auto/Geo/OSR/OSR.so" % get.installDIR())
|
||||
shelltools.system("chrpath -d %s/usr/lib/perl5/x86_64-linux-thread-multi/auto/Geo/OGR/OGR.so" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("LICENSE*")
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- swig/php/gdal_wrap.cpp~ 2012-10-09 08:58:28.000000000 +0800
|
||||
+++ swig/php/gdal_wrap.cpp 2012-10-12 12:19:02.201201302 +0800
|
||||
@@ -932,7 +932,7 @@
|
||||
p = value->ptr;
|
||||
if (type==-1) return NULL;
|
||||
|
||||
- type_name=zend_rsrc_list_get_rsrc_type(z->value.lval TSRMLS_CC);
|
||||
+ type_name=(char *)zend_rsrc_list_get_rsrc_type(z->value.lval TSRMLS_CC);
|
||||
|
||||
return SWIG_ZTS_ConvertResourceData(p, type_name, ty TSRMLS_CC);
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
--- gdal-2.3.1/ogr/ogrct.cpp~ 2018-06-23 17:09:11.000000000 +0200
|
||||
+++ gdal-2.3.1/ogr/ogrct.cpp 2018-07-30 15:55:10.059763422 +0200
|
||||
@@ -124,7 +124,7 @@
|
||||
#elif defined(__APPLE__)
|
||||
# define LIBNAME "libproj.dylib"
|
||||
#else
|
||||
-# define LIBNAME "libproj.so"
|
||||
+# define LIBNAME "libproj.so.13"
|
||||
#endif
|
||||
|
||||
#endif // PROJ_VERSION == 4
|
||||
@@ -1,11 +0,0 @@
|
||||
--- gdal-2.3.1/frmts/mrf/mrf_band.cpp.ext_zlib 2018-07-30 16:12:26.034881517 +0200
|
||||
+++ gdal-2.3.1/frmts/mrf/mrf_band.cpp 2018-07-30 16:13:09.023430106 +0200
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
#include <vector>
|
||||
#include <assert.h>
|
||||
-#include "../zlib/zlib.h"
|
||||
+#include <zlib.h>
|
||||
|
||||
CPL_CVSID("$Id: mrf_band.cpp 7e07230bbff24eb333608de4dbd460b7312839d0 2017-12-11 19:08:47Z Even Rouault $")
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
Index: gdal-2.2.3-fedora/scripts/GNUmakefile
|
||||
===================================================================
|
||||
--- gdal-2.2.3-fedora.orig/scripts/GNUmakefile
|
||||
+++ gdal-2.2.3-fedora/scripts/GNUmakefile
|
||||
@@ -5,6 +5,6 @@ completion:
|
||||
|
||||
install:
|
||||
if test "x`pkg-config --version 2>/dev/null`" != "x" -a "x`pkg-config --variable=compatdir bash-completion`" != "x"; then \
|
||||
- $(INSTALL_DIR) $(DESTDIR)${prefix}`pkg-config --variable=compatdir bash-completion` ; \
|
||||
- cp gdal-bash-completion.sh $(DESTDIR)${prefix}`pkg-config --variable=compatdir bash-completion`; \
|
||||
+ $(INSTALL_DIR) $(DESTDIR)`pkg-config --variable=compatdir bash-completion` ; \
|
||||
+ $(INSTALL_DATA) gdal-bash-completion.sh $(DESTDIR)`pkg-config --variable=compatdir bash-completion`/gdal; \
|
||||
fi
|
||||
@@ -1,12 +0,0 @@
|
||||
diff -Nuar a/configure b/configure
|
||||
--- a/configure 2018-06-23 18:05:47.000000000 +0300
|
||||
+++ b/configure 2018-09-07 15:07:36.398094137 +0300
|
||||
@@ -35383,7 +35383,7 @@
|
||||
datarootdir='${prefix}/share/gdal'
|
||||
fi
|
||||
|
||||
-mandir='${prefix}/man'
|
||||
+mandir='${prefix}/share/man'
|
||||
|
||||
|
||||
if test "$prefix" = "NONE" ; then
|
||||
+66
-80
@@ -1,89 +1,65 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>gdal</Name>
|
||||
<Homepage>https://www.gdal.org/</Homepage>
|
||||
<Homepage>https://gdal.org/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<PartOf>science.gis</PartOf>
|
||||
<License>MIT</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>A translator library for raster geospatial data formats (includes OGR support)</Summary>
|
||||
<Description>GDAL is a translator library for raster geospatial data formats which presents a single abstract data model to the calling application for all supported formats.</Description>
|
||||
<Archive sha1sum="f5cb70b5b17db25b9cebeea20ef081a8c1ee951f" type="targz">http://download.osgeo.org/gdal/2.3.1/gdal-2.3.1.tar.gz</Archive>
|
||||
<Archive sha1sum="e6d137304fc188e536dec7f1353786d8306510f1" type="targz">http://download.osgeo.org/gdal/3.1.3/gdal-3.1.3.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>bash-completion</Dependency>
|
||||
<Dependency>python-numpy</Dependency>
|
||||
<!--Dependency>perl-ExtUtils-MakeMaker</Dependency-->
|
||||
<Dependency>geos-devel</Dependency>
|
||||
<Dependency>hdf5-devel</Dependency>
|
||||
<!-- <Dependency>ogdi-devel</Dependency> --> <!--error: rpc/rpc.h-->
|
||||
<Dependency>tiff-devel</Dependency>
|
||||
<Dependency>webp-devel</Dependency>
|
||||
<Dependency>giflib-devel</Dependency>
|
||||
<Dependency>openjpeg2-devel</Dependency>
|
||||
<Dependency>netcdf-devel</Dependency>
|
||||
<Dependency>podofo-devel</Dependency>
|
||||
<Dependency>cfitsio-devel</Dependency>
|
||||
<Dependency>unixODBC-devel</Dependency>
|
||||
<Dependency>xerces-c-devel</Dependency>
|
||||
<Dependency>libfreexl-devel</Dependency>
|
||||
<Dependency>libgeotiff-devel</Dependency>
|
||||
<Dependency>libjpeg-turbo-devel</Dependency>
|
||||
<Dependency>postgresql-lib</Dependency>
|
||||
<Dependency>libpng-devel</Dependency>
|
||||
<Dependency>expat-devel</Dependency>
|
||||
<Dependency>curl-devel</Dependency>
|
||||
<Dependency>hdf5-devel</Dependency>
|
||||
<Dependency>geos-devel</Dependency>
|
||||
<Dependency>proj-devel</Dependency>
|
||||
<Dependency>tiff-devel</Dependency>
|
||||
<Dependency>expat-devel</Dependency>
|
||||
<Dependency>libpng-devel</Dependency>
|
||||
<Dependency>netcdf-devel</Dependency>
|
||||
<Dependency>sqlite-devel</Dependency>
|
||||
<Dependency>libpcre-devel</Dependency>
|
||||
<!--Dependency>poppler-devel</Dependency-->
|
||||
<Dependency>libxml2-devel</Dependency>
|
||||
<Dependency>openjpeg2-devel</Dependency>
|
||||
<Dependency>libgeotiff-devel</Dependency>
|
||||
<Dependency>libspatialite-devel</Dependency>
|
||||
<!-- for python bindings-->
|
||||
<Dependency>python-devel</Dependency>
|
||||
<Dependency>python-setuptools</Dependency>
|
||||
<!-- for building man files
|
||||
<Dependency>python3-devel</Dependency>
|
||||
<Dependency>python3-breathe</Dependency>
|
||||
<Dependency>python3-sphinx_rtd_theme</Dependency>
|
||||
-->
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch>gdal-1.9.2-typecast.patch</Patch>
|
||||
<Patch level="1">gdal-2.3.1-libname.patch</Patch>
|
||||
<Patch level="1">gdal-2.3.1-zlib.patch</Patch>
|
||||
<Patch level="1">gdal-completion.patch</Patch>
|
||||
<Patch level="1">man.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>gdal</Name>
|
||||
<Summary>A translator library for raster geospatial data formats (includes OGR support)</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>geos</Dependency>
|
||||
<Dependency>hdf5</Dependency>
|
||||
<Dependency>ogdi</Dependency>
|
||||
<Dependency>proj</Dependency>
|
||||
<Dependency>swig</Dependency>
|
||||
<Dependency>tiff</Dependency>
|
||||
<Dependency>webp</Dependency>
|
||||
<Dependency>giflib</Dependency>
|
||||
<!--Dependency>jasper</Dependency-->
|
||||
<Dependency>expat</Dependency>
|
||||
<Dependency>libpng</Dependency>
|
||||
<Dependency>netcdf</Dependency>
|
||||
<Dependency>podofo</Dependency>
|
||||
<Dependency>cfitsio</Dependency>
|
||||
<Dependency>unixODBC</Dependency>
|
||||
<Dependency>xerces-c</Dependency>
|
||||
<Dependency>libfreexl</Dependency>
|
||||
<Dependency>openjpeg2</Dependency>
|
||||
<Dependency>libgeotiff</Dependency>
|
||||
<Dependency>libjpeg-turbo</Dependency>
|
||||
<Dependency>postgresql-lib</Dependency>
|
||||
<Dependency>curl</Dependency>
|
||||
<Dependency>zlib</Dependency>
|
||||
<Dependency>expat</Dependency>
|
||||
<Dependency>libpcre</Dependency>
|
||||
<Dependency>libgcc</Dependency>
|
||||
<Dependency>libpng</Dependency>
|
||||
<Dependency>sqlite</Dependency>
|
||||
<Dependency>libxml2</Dependency>
|
||||
<Dependency>libspatialite</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="data">/usr/share</Path>
|
||||
<Path fileType="data">/etc/bash_completion.d</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
@@ -91,12 +67,37 @@
|
||||
<Name>python-gdal</Name>
|
||||
<Summary>gdal python bindings</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">gdal</Dependency>
|
||||
<Dependency>python-numpy</Dependency>
|
||||
<Dependency>libgcc</Dependency>
|
||||
<Dependency>python</Dependency>
|
||||
<Dependency>libgcc</Dependency>
|
||||
<Dependency>python-numpy</Dependency>
|
||||
<Dependency release="current">gdal</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin/epsg_tr.py</Path>
|
||||
<Path fileType="executable">/usr/bin/pct2rgb.py</Path>
|
||||
<Path fileType="executable">/usr/bin/rgb2pct.py</Path>
|
||||
<Path fileType="executable">/usr/bin/esri2wkt.py</Path>
|
||||
<Path fileType="executable">/usr/bin/gcps2vec.py</Path>
|
||||
<Path fileType="executable">/usr/bin/gcps2wld.py</Path>
|
||||
<Path fileType="executable">/usr/bin/gdal2xyz.py</Path>
|
||||
<Path fileType="executable">/usr/bin/gdalmove.py</Path>
|
||||
<Path fileType="executable">/usr/bin/ogrmerge.py</Path>
|
||||
<Path fileType="executable">/usr/bin/gdal_auth.py</Path>
|
||||
<Path fileType="executable">/usr/bin/gdal_calc.py</Path>
|
||||
<Path fileType="executable">/usr/bin/gdal_edit.py</Path>
|
||||
<Path fileType="executable">/usr/bin/gdalident.py</Path>
|
||||
<Path fileType="executable">/usr/bin/gdal2tiles.py</Path>
|
||||
<Path fileType="executable">/usr/bin/gdal_merge.py</Path>
|
||||
<Path fileType="executable">/usr/bin/gdal_sieve.py</Path>
|
||||
<Path fileType="executable">/usr/bin/gdalchksum.py</Path>
|
||||
<Path fileType="executable">/usr/bin/gdalimport.py</Path>
|
||||
<Path fileType="executable">/usr/bin/gdal_retile.py</Path>
|
||||
<Path fileType="executable">/usr/bin/gdalcompare.py</Path>
|
||||
<Path fileType="executable">/usr/bin/mkgraticule.py</Path>
|
||||
<Path fileType="executable">/usr/bin/gdal_proximity.py</Path>
|
||||
<Path fileType="executable">/usr/bin/gdal_fillnodata.py</Path>
|
||||
<Path fileType="executable">/usr/bin/gdal_pansharpen.py</Path>
|
||||
<Path fileType="executable">/usr/bin/gdal_polygonize.py</Path>
|
||||
<Path fileType="header">/usr/lib/python2.7</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
@@ -106,28 +107,6 @@
|
||||
<Summary>Development files for gdal</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">gdal</Dependency>
|
||||
<Dependency>geos-devel</Dependency>
|
||||
<Dependency>hdf5-devel</Dependency>
|
||||
<Dependency>ogdi-devel</Dependency>
|
||||
<Dependency>tiff-devel</Dependency>
|
||||
<Dependency>webp-devel</Dependency>
|
||||
<Dependency>giflib-devel</Dependency>
|
||||
<!--Dependency>jasper-devel</Dependency-->
|
||||
<Dependency>netcdf-devel</Dependency>
|
||||
<Dependency>podofo-devel</Dependency>
|
||||
<Dependency>cfitsio-devel</Dependency>
|
||||
<Dependency>unixODBC-devel</Dependency>
|
||||
<Dependency>xerces-c-devel</Dependency>
|
||||
<Dependency>libfreexl-devel</Dependency>
|
||||
<Dependency>libgeotiff-devel</Dependency>
|
||||
<Dependency>libjpeg-turbo-devel</Dependency>
|
||||
<Dependency>postgresql-lib</Dependency>
|
||||
<Dependency>libpng-devel</Dependency>
|
||||
<Dependency>expat-devel</Dependency>
|
||||
<Dependency>curl-devel</Dependency>
|
||||
<Dependency>sqlite-devel</Dependency>
|
||||
<Dependency>libpcre-devel</Dependency>
|
||||
<Dependency>libxml2-devel</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
@@ -136,6 +115,13 @@
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="7">
|
||||
<Date>2020-09-24</Date>
|
||||
<Version>3.1.3</Version>
|
||||
<Comment>Major version bump.</Comment>
|
||||
<Name>Blue Devil</Name>
|
||||
<Email>bluedevil@sctzine.com</Email>
|
||||
</Update>
|
||||
<Update release="6">
|
||||
<Date>2019-02-07</Date>
|
||||
<Version>2.3.1</Version>
|
||||
@@ -179,4 +165,4 @@
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
</PISI>
|
||||
@@ -9,5 +9,12 @@
|
||||
<Package>
|
||||
<Name>gdal-devel</Name>
|
||||
<Summary xml:lang="tr">gdal için geliştirme dosyaları</Summary>
|
||||
<Description xml:lang="tr">gdal-devel, gdal için geliştirme dosyalarını içerir.</Description>
|
||||
</Package>
|
||||
</PISI>
|
||||
|
||||
<Package>
|
||||
<Name>python-gdal</Name>
|
||||
<Summary xml:lang="tr">gdal için python bağlayıcıları</Summary>
|
||||
<Description xml:lang="tr">python-gdal, gdal için python bağlayıcıları içerir.</Description>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user