Accepting request 588645 from home:aaronpuchert
- Remove unused build dependencies. Some of them aren't maintained and don't build anymore. (libLAS, libght) - Google Test is "vendored" and is also not required as dependency. - FindLASzip-cmake.patch: Make sure LASzip is actually detected. - Change license descriptor to BSD-3-Clause matching the license in the repository. - Remove unused CMake variables. - Use standard macros for building and installing. OBS-URL: https://build.opensuse.org/request/show/588645 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/PDAL?expand=0&rev=7
This commit is contained in:
parent
ff6ebebe96
commit
5b5fd6d674
18
FindLASzip-cmake.patch
Normal file
18
FindLASzip-cmake.patch
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
diff -rup a/cmake/modules/FindLASzip.cmake b/cmake/modules/FindLASzip.cmake
|
||||||
|
--- a/cmake/modules/FindLASzip.cmake
|
||||||
|
+++ b/cmake/modules/FindLASzip.cmake
|
||||||
|
@@ -49,11 +49,13 @@ FIND_LIBRARY(LASZIP_LIBRARY
|
||||||
|
NAMES ${LASZIP_NAMES}
|
||||||
|
PATHS
|
||||||
|
/usr/lib
|
||||||
|
+ /usr/lib64
|
||||||
|
/usr/local/lib
|
||||||
|
+ /usr/local/lib64
|
||||||
|
${OSGEO4W_ROOT_DIR}/lib)
|
||||||
|
|
||||||
|
# Comment out laszip.hpp version info
|
||||||
|
-SET(LASZIP_VERSION_H "${LASZIP_INCLUDE_DIR}/laszip/laszip_api_version.h")
|
||||||
|
+SET(LASZIP_VERSION_H "${LASZIP_INCLUDE_DIR}/laszip_api_version.h")
|
||||||
|
IF(LASZIP_INCLUDE_DIR AND EXISTS ${LASZIP_VERSION_H})
|
||||||
|
SET(LASZIP_VERSION 0)
|
||||||
|
|
12
PDAL.changes
12
PDAL.changes
@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Mar 17 13:45:07 UTC 2018 - aaronpuchert@alice-dsl.net
|
||||||
|
|
||||||
|
- Remove unused build dependencies. Some of them aren't maintained
|
||||||
|
and don't build anymore. (libLAS, libght)
|
||||||
|
- Google Test is "vendored" and is also not required as dependency.
|
||||||
|
- FindLASzip-cmake.patch: Make sure LASzip is actually detected.
|
||||||
|
- Change license descriptor to BSD-3-Clause matching the license
|
||||||
|
in the repository.
|
||||||
|
- Remove unused CMake variables.
|
||||||
|
- Use standard macros for building and installing.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jan 15 13:00:20 UTC 2018 - bruno@ioda-net.ch
|
Mon Jan 15 13:00:20 UTC 2018 - bruno@ioda-net.ch
|
||||||
|
|
||||||
|
22
PDAL.spec
22
PDAL.spec
@ -32,8 +32,7 @@ Name: PDAL
|
|||||||
Version: 1.6.0
|
Version: 1.6.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Point Data Abstraction Library. GDAL for point cloud data
|
Summary: Point Data Abstraction Library. GDAL for point cloud data
|
||||||
#@TODO verify with upstream if not BSD-3
|
License: BSD-3-Clause
|
||||||
License: BSD-2-Clause
|
|
||||||
Group: Productivity/Graphics/CAD
|
Group: Productivity/Graphics/CAD
|
||||||
Url: http://www.pdal.io/
|
Url: http://www.pdal.io/
|
||||||
Source0: http://download.osgeo.org/pdal/%{name}-%{version}-src.tar.gz
|
Source0: http://download.osgeo.org/pdal/%{name}-%{version}-src.tar.gz
|
||||||
@ -41,6 +40,7 @@ Source1: http://download.osgeo.org/pdal/%{name}-%{version}-src.tar.gz.md5
|
|||||||
# Source2: https://www.pdal.io/PDAL.pdf
|
# Source2: https://www.pdal.io/PDAL.pdf
|
||||||
#Upstream issue#1789 fix for jsoncpp signature
|
#Upstream issue#1789 fix for jsoncpp signature
|
||||||
Patch0: https://github.com/PDAL/PDAL/commit/f717a4c.patch
|
Patch0: https://github.com/PDAL/PDAL/commit/f717a4c.patch
|
||||||
|
Patch1: FindLASzip-cmake.patch
|
||||||
# Override the problem of libpsl5 in tumbleweed
|
# Override the problem of libpsl5 in tumbleweed
|
||||||
%if 0%{?suse_version} >= 1330
|
%if 0%{?suse_version} >= 1330
|
||||||
BuildRequires: libpsl5
|
BuildRequires: libpsl5
|
||||||
@ -62,22 +62,16 @@ BuildRequires: freeglut-devel
|
|||||||
# Needed for tests
|
# Needed for tests
|
||||||
BuildRequires: gdal
|
BuildRequires: gdal
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: googletest-devel
|
|
||||||
BuildRequires: hdf5-devel
|
|
||||||
BuildRequires: libcgal-devel
|
|
||||||
BuildRequires: libgdal-devel
|
BuildRequires: libgdal-devel
|
||||||
BuildRequires: libgeos-devel
|
BuildRequires: libgeos-devel
|
||||||
BuildRequires: geotiff-devel
|
BuildRequires: geotiff-devel
|
||||||
BuildRequires: libght-devel
|
|
||||||
BuildRequires: jsoncpp-devel
|
BuildRequires: jsoncpp-devel
|
||||||
# We need 3.1.1+ for 1.6
|
# We need 3.1.1+ for 1.6
|
||||||
BuildRequires: laszip-devel
|
BuildRequires: laszip-devel
|
||||||
BuildRequires: liblas-devel
|
|
||||||
BuildRequires: libproj-devel
|
BuildRequires: libproj-devel
|
||||||
BuildRequires: libspatialindex-devel
|
BuildRequires: libspatialindex-devel
|
||||||
BuildRequires: libtiff-devel
|
BuildRequires: libtiff-devel
|
||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
BuildRequires: netcdf-devel
|
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRequires: pkgconfig(libpq)
|
BuildRequires: pkgconfig(libpq)
|
||||||
# We don't have it yet
|
# We don't have it yet
|
||||||
@ -100,8 +94,6 @@ BuildRequires: zlib-devel
|
|||||||
# For doc but only in TW
|
# For doc but only in TW
|
||||||
# BuildRequires: python-sphinxcontrib-breathe
|
# BuildRequires: python-sphinxcontrib-breathe
|
||||||
# Doesn't exist on obs BuildRequires: python3-breathe
|
# Doesn't exist on obs BuildRequires: python3-breathe
|
||||||
BuildRequires: libibumad-devel
|
|
||||||
BuildRequires: libibverbs-devel
|
|
||||||
Requires: lib%{name}%{soname} = %{version}
|
Requires: lib%{name}%{soname} = %{version}
|
||||||
Recommends: bash-completion
|
Recommends: bash-completion
|
||||||
|
|
||||||
@ -186,6 +178,7 @@ PDAL algorithms.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}-src
|
%setup -q -n %{name}-%{version}-src
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
# Fix all wrong shebang and move to python3 only
|
# Fix all wrong shebang and move to python3 only
|
||||||
find . -type f -iname "*.py" -exec sed 's,^#!/usr/bin/env python,#/usr/bin/python3,' {} \;
|
find . -type f -iname "*.py" -exec sed 's,^#!/usr/bin/env python,#/usr/bin/python3,' {} \;
|
||||||
|
|
||||||
@ -200,14 +193,12 @@ find ./doc/ -type f -iname "*.ai" -delete
|
|||||||
-DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" \
|
-DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" \
|
||||||
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" \
|
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" \
|
||||||
-DLIB_INSTALL_DIR=%{_libdir} \
|
-DLIB_INSTALL_DIR=%{_libdir} \
|
||||||
-DLIB_NAME=lib%{name} \
|
|
||||||
-DINCLUDE_INSTALL_DIR=%{_includedir} \
|
-DINCLUDE_INSTALL_DIR=%{_includedir} \
|
||||||
-DENABLE_CTEST=ON \
|
-DENABLE_CTEST=ON \
|
||||||
-DWITH_COMPLETION=ON \
|
-DWITH_COMPLETION=ON \
|
||||||
-DWITH_TESTS=ON \
|
-DWITH_TESTS=ON \
|
||||||
-DWITH_LASZIP=ON \
|
-DWITH_LASZIP=ON \
|
||||||
-DLASZIP_INCLUDE_DIR=%{_includedir} \
|
-DLASZIP_INCLUDE_DIR=%{_includedir} \
|
||||||
-DWITH_GEOTIFF=%{_includedir}/libgeotiff \
|
|
||||||
-DGEOTIFF_INCLUDE_DIR=%{_includedir}/libgeotiff \
|
-DGEOTIFF_INCLUDE_DIR=%{_includedir}/libgeotiff \
|
||||||
-DBUILD_SHARED_LIBS=ON \
|
-DBUILD_SHARED_LIBS=ON \
|
||||||
-DBUILD_PLUGIN_PYTHON=ON \
|
-DBUILD_PLUGIN_PYTHON=ON \
|
||||||
@ -217,21 +208,18 @@ find ./doc/ -type f -iname "*.ai" -delete
|
|||||||
-DBUILD_PLUGIN_HEXBIN=OFF \
|
-DBUILD_PLUGIN_HEXBIN=OFF \
|
||||||
-DBUILD_PLUGIN_ICEBRIDGE=OFF \
|
-DBUILD_PLUGIN_ICEBRIDGE=OFF \
|
||||||
-DBUILD_PLUGIN_NITF=OFF \
|
-DBUILD_PLUGIN_NITF=OFF \
|
||||||
-DBUILD_PLUGIN_P2G=OFF \
|
|
||||||
-DBUILD_PLUGIN_PGPOINTCLOUD=ON \
|
-DBUILD_PLUGIN_PGPOINTCLOUD=ON \
|
||||||
-DBUILD_PLUGIN_SQLITE=ON \
|
-DBUILD_PLUGIN_SQLITE=ON \
|
||||||
-DBUILD_PLUGIN_GREYHOUND=OFF \
|
-DBUILD_PLUGIN_GREYHOUND=OFF \
|
||||||
-DBUILD_PLUGIN_PCL=OFF \
|
-DBUILD_PLUGIN_PCL=OFF \
|
||||||
..
|
..
|
||||||
|
|
||||||
make VERBOSE=1 %{?_smp_mflags}
|
%make_jobs
|
||||||
# Make documentation once fixed upstream
|
# Make documentation once fixed upstream
|
||||||
# make doxygen html man pdf
|
# make doxygen html man pdf
|
||||||
|
|
||||||
%install
|
%install
|
||||||
pushd build
|
%cmake_install
|
||||||
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
||||||
popd
|
|
||||||
|
|
||||||
#No .la lib
|
#No .la lib
|
||||||
find %{buildroot} -type f -name "*.la" -o -name "*.a" -delete -print
|
find %{buildroot} -type f -name "*.la" -o -name "*.a" -delete -print
|
||||||
|
Loading…
Reference in New Issue
Block a user