- Spec file cleanups
- Remove poppler boost dependnecy - Enable LTO and zstd OBS-URL: https://build.opensuse.org/package/show/Application:Geo/gdal?expand=0&rev=102
This commit is contained in:
parent
a443c9eb25
commit
5ae26b2a16
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 10 08:26:00 UTC 2019 - Martin Pluskal <mpluskal@suse.com>
|
||||||
|
|
||||||
|
- Spec file cleanups
|
||||||
|
- Remove poppler boost dependnecy
|
||||||
|
- Enable LTO and zstd
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Oct 6 12:00:05 UTC 2019 - Bruno Friedmann <bruno@ioda-net.ch>
|
Sun Oct 6 12:00:05 UTC 2019 - Bruno Friedmann <bruno@ioda-net.ch>
|
||||||
|
|
||||||
|
17
gdal.spec
17
gdal.spec
@ -30,8 +30,7 @@ Version: 3.0.1
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: GDAL/OGR - a translator library for raster and vector geospatial data formats
|
Summary: GDAL/OGR - a translator library for raster and vector geospatial data formats
|
||||||
License: MIT AND BSD-3-Clause AND SUSE-Public-Domain
|
License: MIT AND BSD-3-Clause AND SUSE-Public-Domain
|
||||||
Group: Development/Libraries/C and C++
|
URL: https://www.gdal.org/
|
||||||
URL: http://www.gdal.org/
|
|
||||||
Source0: http://download.osgeo.org/%{name}/%{version}/%{sourcename}-%{version}.tar.xz
|
Source0: http://download.osgeo.org/%{name}/%{version}/%{sourcename}-%{version}.tar.xz
|
||||||
Source1: http://download.osgeo.org/%{name}/%{version}/%{sourcename}-%{version}.tar.xz.md5
|
Source1: http://download.osgeo.org/%{name}/%{version}/%{sourcename}-%{version}.tar.xz.md5
|
||||||
Patch0: gdal-perl.patch
|
Patch0: gdal-perl.patch
|
||||||
@ -54,6 +53,7 @@ BuildRequires: giflib-devel
|
|||||||
BuildRequires: hdf5-devel
|
BuildRequires: hdf5-devel
|
||||||
BuildRequires: lapack-devel
|
BuildRequires: lapack-devel
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
|
BuildRequires: libzstd-devel
|
||||||
BuildRequires: mysql-devel
|
BuildRequires: mysql-devel
|
||||||
BuildRequires: opencl-headers
|
BuildRequires: opencl-headers
|
||||||
BuildRequires: perl-ExtUtils-MakeMaker
|
BuildRequires: perl-ExtUtils-MakeMaker
|
||||||
@ -100,9 +100,6 @@ BuildRequires: ERDAS-ECW_JPEG_2000_SDK-devel
|
|||||||
BuildRequires: libecwj2-devel
|
BuildRequires: libecwj2-devel
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
# Fix libpoppler 0.81
|
|
||||||
# boo#1153146 (once fixed remove this)
|
|
||||||
BuildRequires: libboost_headers-devel
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
GDAL is a translator library for raster geospatial data formats that
|
GDAL is a translator library for raster geospatial data formats that
|
||||||
@ -114,7 +111,6 @@ vector data.
|
|||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: GDAL library header files
|
Summary: GDAL library header files
|
||||||
Group: Development/Languages/C and C++
|
|
||||||
Requires: lib%{name}%{soversion} = %{version}
|
Requires: lib%{name}%{soversion} = %{version}
|
||||||
Requires: pkgconfig(libopenjp2)
|
Requires: pkgconfig(libopenjp2)
|
||||||
Provides: lib%{name}%{soversion}-devel = %{version}
|
Provides: lib%{name}%{soversion}-devel = %{version}
|
||||||
@ -125,7 +121,6 @@ Development Libraries for the GDAL file format library
|
|||||||
|
|
||||||
%package -n lib%{name}%{soversion}
|
%package -n lib%{name}%{soversion}
|
||||||
Summary: GDAL static libraries
|
Summary: GDAL static libraries
|
||||||
Group: System/Libraries
|
|
||||||
|
|
||||||
%description -n lib%{name}%{soversion}
|
%description -n lib%{name}%{soversion}
|
||||||
GDAL and OGR are translator libraries for raster and vector geospatial data
|
GDAL and OGR are translator libraries for raster and vector geospatial data
|
||||||
@ -134,7 +129,6 @@ application for all supported formats.
|
|||||||
|
|
||||||
%package -n perl-%{name}
|
%package -n perl-%{name}
|
||||||
Summary: Perl bindings for GDAL
|
Summary: Perl bindings for GDAL
|
||||||
Group: Development/Languages/Perl
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
@ -143,7 +137,6 @@ Perl bindings for GDAL - Geo::GDAL, Geo::OGR and Geo::OSR modules.
|
|||||||
|
|
||||||
%package -n python2-%{pypi_package_name}
|
%package -n python2-%{pypi_package_name}
|
||||||
Summary: GDAL Python module
|
Summary: GDAL Python module
|
||||||
Group: Development/Languages/Python
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
# Renaming to uppercase 'GDAL' during 2.4.0; previously used lowercase
|
# Renaming to uppercase 'GDAL' during 2.4.0; previously used lowercase
|
||||||
Provides: python2-%{name} = %{version}
|
Provides: python2-%{name} = %{version}
|
||||||
@ -156,7 +149,6 @@ The GDAL python modules provide support to handle multiple GIS file formats.
|
|||||||
|
|
||||||
%package -n python3-%{pypi_package_name}
|
%package -n python3-%{pypi_package_name}
|
||||||
Summary: GDAL Python3 module
|
Summary: GDAL Python3 module
|
||||||
Group: Development/Languages/Python
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Provides: python3-%{name} = %{version}
|
Provides: python3-%{name} = %{version}
|
||||||
Obsoletes: python3-%{name} < %{version}
|
Obsoletes: python3-%{name} < %{version}
|
||||||
@ -169,7 +161,7 @@ The GDAL python modules provide support to handle multiple GIS file formats.
|
|||||||
%autopatch -p1
|
%autopatch -p1
|
||||||
|
|
||||||
# Set the right (build) libproj.so version, use the upper found version.
|
# Set the right (build) libproj.so version, use the upper found version.
|
||||||
PROJSOVER=$(ls -1 %_libdir/libproj.so.?? | tail -n1 | awk -F '.' '{print $3}')
|
PROJSOVER=$(ls -1 %{_libdir}/libproj.so.?? | tail -n1 | awk -F '.' '{print $3}')
|
||||||
sed -i "s,# define LIBNAME \"libproj.so\",# define LIBNAME \"libproj.so.${PROJSOVER}\",g" ogr/ogrct.cpp
|
sed -i "s,# define LIBNAME \"libproj.so\",# define LIBNAME \"libproj.so.${PROJSOVER}\",g" ogr/ogrct.cpp
|
||||||
|
|
||||||
# Fix mandir
|
# Fix mandir
|
||||||
@ -257,7 +249,8 @@ autoreconf -fi
|
|||||||
--without-hdf4 \
|
--without-hdf4 \
|
||||||
--with-hdf5 \
|
--with-hdf5 \
|
||||||
--with-webp \
|
--with-webp \
|
||||||
--disable-rpath
|
--disable-rpath \
|
||||||
|
--enable-lto
|
||||||
|
|
||||||
# regenerate where needed
|
# regenerate where needed
|
||||||
for M in perl python;
|
for M in perl python;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user