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 pisitools
from pisi.actionsapi import shelltools from pisi.actionsapi import shelltools
from pisi.actionsapi import perlmodules from pisi.actionsapi import perlmodules
from pisi.actionsapi import pythonmodules from pisi.actionsapi import python3modules, cmaketools
def setup(): def setup():
options_cfg = ''.join([ options_cfg = ''.join([
'--with-png ', '-DGDAL_USE_PNG=ON ',
'--with-curl ', '-DGDAL_USE_CURL=ON ',
'--with-geos ', '-DGDAL_USE_GEOS=ON ',
'--with-hdf5 ', '-DGDAL_USE_HDF5=ON ',
'--with-perl ', '-DGDAL_USE_EXPAT=ON ',
'--with-expat ', '-DGDAL_USE_MYSQL=ON ',
'--with-mysql ', '-DGDAL_USE_NETCDF=ON ',
'--with-netcdf ', '-DGDAL_USE_GEOTIFF=ON ',
'--with-geotiff ', '-DGDAL_USE_TIFF=ON ',
'--with-libtiff ', '-DGDAL_USE_NETCDF=ON ',
'--with-sqlite3 ', '-DGDAL_USE_SQLITE3=ON ',
'--enable-shared ', '-DGDAL_USE_OPENJPEG=ON ',
'--with-openjpeg ', '-DBUILD_PYTHON_BINDINGS=ON ',
'--with-spatialite']) '-DGDAL_USE_SPATIALITE=ON'])
# '--with-perl ',
# '--enable-shared ',
pisitools.cflags.add("-fno-strict-aliasing") pisitools.cflags.add("-fno-strict-aliasing")
autotools.configure("%s" % options_cfg) cmaketools.configure("%s" % options_cfg)
# fix unused direct dependency analysis # 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(): def build():
autotools.make() cmaketools.make()
# FIXME build man pages # FIXME build man pages
#autotools.make("man") #autotools.make("man")
# build python bindings # build python bindings
shelltools.cd("swig/python") # shelltools.cd("swig/python")
pythonmodules.compile() # python3modules.compile()
def install(): def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR()) cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
# install python bindings # install python bindings
shelltools.cd("swig/python") # shelltools.cd("swig/python")
pythonmodules.install() # python3modules.install()
shelltools.cd("../..") # shelltools.cd("../..")
perlmodules.removePodfiles() # perlmodules.removePodfiles()
# fix rpath # 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/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/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/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/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/OGR/OGR.so" % get.installDIR())
pisitools.dodoc("LICENSE*") pisitools.dodoc("LICENSE*")
+9 -6
View File
@@ -13,7 +13,7 @@
<IsA>library</IsA> <IsA>library</IsA>
<Summary>A translator library for raster geospatial data formats (includes OGR support)</Summary> <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> <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> <BuildDependencies>
<Dependency>curl-devel</Dependency> <Dependency>curl-devel</Dependency>
<Dependency>hdf5-devel</Dependency> <Dependency>hdf5-devel</Dependency>
@@ -28,8 +28,9 @@
<Dependency>libgeotiff-devel</Dependency> <Dependency>libgeotiff-devel</Dependency>
<Dependency>libspatialite-devel</Dependency> <Dependency>libspatialite-devel</Dependency>
<!-- for python bindings--> <!-- for python bindings-->
<Dependency>python-devel</Dependency> <Dependency>python3-devel</Dependency>
<Dependency>python-setuptools</Dependency> <Dependency>python3-build</Dependency>
<Dependency>python3-setuptools</Dependency>
<!-- for building man files <!-- for building man files
<Dependency>python3-devel</Dependency> <Dependency>python3-devel</Dependency>
<Dependency>python3-breathe</Dependency> <Dependency>python3-breathe</Dependency>
@@ -69,7 +70,7 @@
<RuntimeDependencies> <RuntimeDependencies>
<Dependency>python</Dependency> <Dependency>python</Dependency>
<Dependency>libgcc</Dependency> <Dependency>libgcc</Dependency>
<Dependency>python-numpy</Dependency> <Dependency>python3-numpy</Dependency>
<Dependency release="current">gdal</Dependency> <Dependency release="current">gdal</Dependency>
</RuntimeDependencies> </RuntimeDependencies>
<Files> <Files>
@@ -98,7 +99,9 @@
<Path fileType="executable">/usr/bin/gdal_fillnodata.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_pansharpen.py</Path>
<Path fileType="executable">/usr/bin/gdal_polygonize.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> </Files>
</Package> </Package>
@@ -117,7 +120,7 @@
<History> <History>
<Update release="8"> <Update release="8">
<Date>2023-11-04</Date> <Date>2023-11-04</Date>
<Version>3.7.2</Version> <Version>3.7.3</Version>
<Comment>Version bump.</Comment> <Comment>Version bump.</Comment>
<Name>Mustafa Cinasal</Name> <Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email> <Email>muscnsl@gmail.com</Email>