gdal ver. bump

This commit is contained in:
Rmys
2023-11-05 09:06:00 +03:00
parent 81f2ee1ddf
commit ec2129255d
2 changed files with 41 additions and 36 deletions
+32 -30
View File
@@ -9,58 +9,60 @@ 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
from pisi.actionsapi import python3modules, cmaketools
def setup():
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'])
'-DGDAL_USE_PNG=ON ',
'-DGDAL_USE_CURL=ON ',
'-DGDAL_USE_GEOS=ON ',
'-DGDAL_USE_HDF5=ON ',
'-DGDAL_USE_EXPAT=ON ',
'-DGDAL_USE_MYSQL=ON ',
'-DGDAL_USE_NETCDF=ON ',
'-DGDAL_USE_GEOTIFF=ON ',
'-DGDAL_USE_TIFF=ON ',
'-DGDAL_USE_NETCDF=ON ',
'-DGDAL_USE_SQLITE3=ON ',
'-DGDAL_USE_OPENJPEG=ON ',
'-DBUILD_PYTHON_BINDINGS=ON ',
'-DGDAL_USE_SPATIALITE=ON'])
# '--with-perl ',
# '--enable-shared ',
pisitools.cflags.add("-fno-strict-aliasing")
autotools.configure("%s" % options_cfg)
cmaketools.configure("%s" % options_cfg)
# fix unused direct dependency analysis
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
# pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.make()
cmaketools.make()
# FIXME build man pages
#autotools.make("man")
# build python bindings
shelltools.cd("swig/python")
pythonmodules.compile()
# shelltools.cd("swig/python")
# python3modules.compile()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
# install python bindings
shelltools.cd("swig/python")
pythonmodules.install()
shelltools.cd("../..")
# shelltools.cd("swig/python")
# python3modules.install()
# shelltools.cd("../..")
perlmodules.removePodfiles()
# 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())
# 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*")
+9 -6
View File
@@ -13,7 +13,7 @@
<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="f79f8cbeaf687a7dbf951d66a562e43dfcc2629b" type="targz">http://download.osgeo.org/gdal/3.7.2/gdal-3.7.2.tar.gz</Archive>
<Archive sha1sum="3fedd60ac105946e51008c306721e27e01165e7c" type="targz">http://download.osgeo.org/gdal/3.7.3/gdal-3.7.3.tar.gz</Archive>
<BuildDependencies>
<Dependency>curl-devel</Dependency>
<Dependency>hdf5-devel</Dependency>
@@ -28,8 +28,9 @@
<Dependency>libgeotiff-devel</Dependency>
<Dependency>libspatialite-devel</Dependency>
<!-- for python bindings-->
<Dependency>python-devel</Dependency>
<Dependency>python-setuptools</Dependency>
<Dependency>python3-devel</Dependency>
<Dependency>python3-build</Dependency>
<Dependency>python3-setuptools</Dependency>
<!-- for building man files
<Dependency>python3-devel</Dependency>
<Dependency>python3-breathe</Dependency>
@@ -69,7 +70,7 @@
<RuntimeDependencies>
<Dependency>python</Dependency>
<Dependency>libgcc</Dependency>
<Dependency>python-numpy</Dependency>
<Dependency>python3-numpy</Dependency>
<Dependency release="current">gdal</Dependency>
</RuntimeDependencies>
<Files>
@@ -98,7 +99,9 @@
<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>
<Path fileType="executable">/usr/bin/ogr_layer_algebra.py</Path>
<Path fileType="executable">/usr/bin/gdalattachpct.py</Path>
<Path fileType="header">/usr/lib/python3*</Path>
</Files>
</Package>
@@ -117,7 +120,7 @@
<History>
<Update release="8">
<Date>2023-11-04</Date>
<Version>3.7.2</Version>
<Version>3.7.3</Version>
<Comment>Version bump.</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>