Accepting request 815573 from home:bruno_friedmann:branches:Application:Geo

- Add a manual fix for PDALConfig.cmake where the 
  @PDAL_CONFIG_LIBRARY_DIRS@ is wrongly expanded.

- update to 2.1.0 version
  release note at https://github.com/PDAL/PDAL/releases
  + Disable removed plugin SQLITE
  + Disable independant plugin python3
- Packaging
  + Fix postgresql(-server)-devel package requirement
  + spec cleanup

  new 3.8 version in Factory
- Remove FindLASzip-cmake.patch with new laszip 3.2.2

OBS-URL: https://build.opensuse.org/request/show/815573
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/PDAL?expand=0&rev=17
This commit is contained in:
Martin Pluskal
2020-06-18 08:13:11 +00:00
committed by Git OBS Bridge
parent 14660f60d2
commit c855a85540
6 changed files with 45 additions and 35 deletions

View File

@@ -17,11 +17,11 @@
#
%define soname 10
%define sovers 10
%define soname 11
%define sovers 11
%define lname pdal
Name: PDAL
Version: 2.0.1
Version: 2.1.0
Release: 0
Summary: Point Data Abstraction Library. GDAL for point cloud data
License: BSD-3-Clause
@@ -51,24 +51,23 @@ BuildRequires: libgdal-devel
BuildRequires: libgeos-devel
BuildRequires: libopenssl-devel >= 1.1
BuildRequires: libproj-devel
# Needed to have proj.db for tests
BuildRequires: proj
BuildRequires: libpsl5
BuildRequires: libspatialindex-devel
BuildRequires: libtiff-devel
BuildRequires: libxml2-devel
BuildRequires: pkgconfig
BuildRequires: postgresql-devel
BuildRequires: python3
# We don't have it yet
# BuildRequires: pointcloud-devel
# Python extension will be build separately.
BuildRequires: python3-Cython
BuildRequires: python3-devel
BuildRequires: python3-numpy-devel
BuildRequires: python3-setuptools
BuildRequires: sqlite3-devel
BuildRequires: xz-devel
BuildRequires: zlib-devel
BuildRequires: libzstd-devel
BuildRequires: libunwind-devel
BuildRequires: pkgconfig(libpq)
BuildRequires: sqlite3-devel
BuildRequires: python3-devel
# Needed for documentation but we don't build it.
# BuildRequires: dblatex
# BuildRequires: doxygen
@@ -82,8 +81,7 @@ BuildRequires: pkgconfig(libpq)
Requires: lib%{name}%{soname} = %{version}
Recommends: bash-completion
Provides: pdal = %{version}
%if 0%{?sle_version} >= 150000 && 0%{?sle_version} <= 150300 && 0%{?is_opensuse}
%else
%if 0%{?suse_version} >= 1520 && 0%{?is_opensuse} == 1
BuildRequires: postgresql-server-devel
%endif
@@ -183,22 +181,22 @@ find ./doc/ -type f -iname "*.ai" -delete
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" \
-DLIB_INSTALL_DIR=%{_libdir} \
-DINCLUDE_INSTALL_DIR=%{_includedir} \
-DENABLE_CTEST=OFF \
-DENABLE_CTEST=ON \
-Dgtest_build_tests=OFF \
-DWITH_TESTS=OFF \
-DWITH_TESTS=ON \
-DWITH_COMPLETION=ON \
-DWITH_LASZIP=ON \
-DWITH_LZMA=ON \
-DLASZIP_INCLUDE_DIR=%{_includedir} \
-DGEOTIFF_INCLUDE_DIR=%{_includedir}/libgeotiff \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_PLUGIN_PYTHON=ON \
-DNUMPY_INCLUDE_DIR=%{_libdir}/python%{py3_ver}/site-packages/numpy \
-DBUILD_PLUGIN_PYTHON=ON \
-DBUILD_PLUGIN_SQLITE=ON \
-DBUILD_PLUGIN_HEXBIN=OFF \
-DBUILD_PLUGIN_ICEBRIDGE=OFF \
-DBUILD_PLUGIN_NITF=OFF \
-DBUILD_PLUGIN_PGPOINTCLOUD=ON \
-DBUILD_PLUGIN_SQLITE=ON \
-DBUILD_PLUGIN_GREYHOUND=OFF \
-DBUILD_PLUGIN_PCL=OFF \
..
@@ -218,12 +216,15 @@ find %{buildroot} -type f -name "*.la" -o -name "*.a" -delete -print
%fdupes doc
%endif
# Not finished yet too many syntax error with python3
# WIP with upstream
# Strange the @PDAL_CONFIG_LIBRARY_DIRS@ is wrongly expanded /usr//usr/lib64/ in PDALConfig.cmake
sed -i 's,/usr//usr/lib64,%{_libdir},g' %{buildroot}/%{_libdir}/cmake/PDAL/PDALConfig.cmake
# WIP pgpointcloud test need a complete running pg server
#%%check
#pushd build
#export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}:${LD_LIBRARY_PATH}
#export PDAL_DRIVER_PATH=%{buildroot}/%{_libdir}:${PDAL_DRIVER_PATH}
#export LD_LIBRARY_PATH=%%{buildroot}/%%{_libdir}:${LD_LIBRARY_PATH}
#export PDAL_DRIVER_PATH=%%{buildroot}/%%{_libdir}:${PDAL_DRIVER_PATH}
#export GDAL_DATA=/usr/share/gdal/
#ctest -V
#popd
@@ -246,11 +247,7 @@ find %{buildroot} -type f -name "*.la" -o -name "*.a" -delete -print
%doc AUTHORS.txt README.md RELEASENOTES.txt
%{_libdir}/libpdal_base.so.%{sovers}
# Plugins
%{_libdir}/libpdal_plugin_filter_python.so.%{sovers}
%{_libdir}/libpdal_plugin_kernel_fauxplugin.so.%{sovers}
%{_libdir}/libpdal_plugin_reader_numpy.so.%{sovers}
%{_libdir}/libpdal_plugin_reader_sqlite.so.%{sovers}
%{_libdir}/libpdal_plugin_writer_sqlite.so.%{sovers}
%{_libdir}/libpdal_plugin_reader_pgpointcloud.so.%{sovers}
%{_libdir}/libpdal_plugin_writer_pgpointcloud.so.%{sovers}
%{_libdir}/libpdal_util.so.%{sovers}
@@ -261,13 +258,9 @@ find %{buildroot} -type f -name "*.la" -o -name "*.a" -delete -print
%doc AUTHORS.txt README.md CONTRIBUTING.md
%{_includedir}/pdal
# old compatibility link
%exclude %{_libdir}/libpdal_*.so.9
%exclude %{_libdir}/libpdal_*.so.10
%{_libdir}/libpdal_base.so
%{_libdir}/libpdal_plugin_filter_python.so
%{_libdir}/libpdal_plugin_kernel_fauxplugin.so
%{_libdir}/libpdal_plugin_reader_numpy.so
%{_libdir}/libpdal_plugin_reader_sqlite.so
%{_libdir}/libpdal_plugin_writer_sqlite.so
%{_libdir}/libpdal_plugin_reader_pgpointcloud.so
%{_libdir}/libpdal_plugin_writer_pgpointcloud.so
%{_libdir}/libpdal_util.so