Accepting request 501446 from home:bruno_friedmann:branches:Application:Geo
- Update to version 1.5.0 Visit https://github.com/PDAL/PDAL/releases/tag/1.5.0 for all improvements done since 1.4 - Remove patch c2cf2d.patch merged upstream - Adjust sofull_version to 5.1.0 soname to 5 and sovers to 4 - Use the lastest patch c2cf2d.patch in place of cfb888a04897f9704d5bdfaf4d2979e9ff303aab.patch with use of short commit tag. OBS-URL: https://build.opensuse.org/request/show/501446 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/PDAL?expand=0&rev=5
This commit is contained in:
parent
bd51cc8485
commit
5251935e31
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d563792c26eed83750259e474f52146bc6fdaaa9ac6e2269c05f023b57d89563
|
||||
size 62749292
|
@ -1 +0,0 @@
|
||||
8e767028e41a9da25561dfe25e60a542 PDAL-1.4.0-src.tar.bz2
|
3
PDAL-1.5.0-src.tar.bz2
Normal file
3
PDAL-1.5.0-src.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d86c83aa87669c0a084833449b294db3a32a15aab6d7f8215e7eac7695a0518c
|
||||
size 58884629
|
1
PDAL-1.5.0-src.tar.bz2.md5
Normal file
1
PDAL-1.5.0-src.tar.bz2.md5
Normal file
@ -0,0 +1 @@
|
||||
bda90d15e84e36684836212ebbca09f2 PDAL-1.5.0-src.tar.bz2
|
16
PDAL.changes
16
PDAL.changes
@ -1,3 +1,19 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 31 06:24:07 UTC 2017 - bruno@ioda-net.ch
|
||||
|
||||
- Update to version 1.5.0
|
||||
Visit https://github.com/PDAL/PDAL/releases/tag/1.5.0 for all
|
||||
improvements done since 1.4
|
||||
- Remove patch c2cf2d.patch merged upstream
|
||||
- Adjust sofull_version to 5.1.0 soname to 5 and sovers to 4
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 10 12:51:53 UTC 2017 - bruno@ioda-net.ch
|
||||
|
||||
- Use the lastest patch c2cf2d.patch in place of
|
||||
cfb888a04897f9704d5bdfaf4d2979e9ff303aab.patch
|
||||
with use of short commit tag.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 8 14:51:03 UTC 2017 - bruno@ioda-net.ch
|
||||
|
||||
|
31
PDAL.spec
31
PDAL.spec
@ -23,24 +23,22 @@
|
||||
# Mandatory : build -doc appart (too much texlive used otherwise)
|
||||
|
||||
# Ask upstream to clarify seems sofull_version is build version
|
||||
%define soname 4
|
||||
%define soname 5
|
||||
%define sovers 4
|
||||
%define sofull_version 5.0.0
|
||||
%define sofull_version 5.1.0
|
||||
%define lname pdal
|
||||
|
||||
Name: PDAL
|
||||
Version: 1.4.0
|
||||
Version: 1.5.0
|
||||
Release: 0
|
||||
Summary: Point Data Abstraction Library. GDAL for point cloud data
|
||||
#@todo verify with upstream if not BSD-3
|
||||
#@TODO verify with upstream if not BSD-3
|
||||
License: BSD-2-Clause
|
||||
Group: Productivity/Graphics/CAD
|
||||
Url: http://www.pdal.io/
|
||||
Source0: http://download.osgeo.org/pdal/%{name}-%{version}-src.tar.bz2
|
||||
Source1: http://download.osgeo.org/pdal/%{name}-%{version}-src.tar.bz2.md5
|
||||
# Source2: https://www.pdal.io/PDAL.pdf
|
||||
# Upstream issue#1503 has hardcoded /usr/include/laszip/laszip.hpp
|
||||
Patch0: https://github.com/PDAL/PDAL/commit/cfb888a04897f9704d5bdfaf4d2979e9ff303aab.patch
|
||||
# Override the problem of libpsl5 in tumbleweed
|
||||
%if 0%{?suse_version} >= 1330
|
||||
BuildRequires: libpsl5
|
||||
@ -100,6 +98,8 @@ BuildRequires: zlib-devel
|
||||
# For doc but only in TW
|
||||
# BuildRequires: python-sphinxcontrib-breathe
|
||||
# Doesn't exist on obs BuildRequires: python3-breathe
|
||||
BuildRequires: libibumad-devel
|
||||
BuildRequires: libibverbs-devel
|
||||
Requires: lib%{name}%{soname} = %{version}
|
||||
Recommends: bash-completion
|
||||
|
||||
@ -183,7 +183,6 @@ PDAL algorithms.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}-src
|
||||
%patch0 -p1
|
||||
|
||||
#Cleanup spurious perms in documentation
|
||||
find ./doc/ -type f -exec chmod -v 0644 {} \;
|
||||
@ -191,13 +190,6 @@ find ./doc/ -type f -iname "*.orig" -o -iname ".gitignore" -delete
|
||||
find ./doc/ -type f -iname "*.ai" -delete
|
||||
|
||||
%build
|
||||
%if 0%{?suse_version} == 1310
|
||||
# Make things more secure, but only on 13.1 (by default on 13.2+)
|
||||
export LDFLAGS="-Wl,-z,relro,-z,now -pie"
|
||||
export CFLAGS="%{optflags} -fPIE -pie"
|
||||
export CXXFLAGS="%{optflags} -fPIE -pie"
|
||||
%endif
|
||||
|
||||
%cmake \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
||||
-DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" \
|
||||
@ -224,27 +216,18 @@ export CXXFLAGS="%{optflags} -fPIE -pie"
|
||||
-DBUILD_PLUGIN_PCL=OFF \
|
||||
..
|
||||
|
||||
|
||||
make VERBOSE=1 %{?_smp_mflags}
|
||||
|
||||
# Make documentation once fixed upstream
|
||||
# make doxygen html man pdf
|
||||
|
||||
# Make the python part should be build in a dedicated .spec
|
||||
# It need pdal-config to work
|
||||
# pushd ../python
|
||||
# python setup.py build
|
||||
# popd
|
||||
# Python part should be build from pypi in own .spec
|
||||
|
||||
%install
|
||||
pushd build
|
||||
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||
popd
|
||||
|
||||
# pushd ../python
|
||||
# python setup.py install
|
||||
# popd
|
||||
|
||||
#No .la lib
|
||||
find %{buildroot} -type f -name "*.la" -o -name "*.a" -delete -print
|
||||
|
||||
|
@ -1,101 +0,0 @@
|
||||
From cfb888a04897f9704d5bdfaf4d2979e9ff303aab Mon Sep 17 00:00:00 2001
|
||||
From: Andrew Bell <andrew.bell.ia@gmail.com>
|
||||
Date: Mon, 6 Mar 2017 15:41:20 -0600
|
||||
Subject: [PATCH] Allow laszip to be found in laszip subdirectory or not. Close
|
||||
#1503
|
||||
|
||||
---
|
||||
cmake/modules/FindLASzip.cmake | 24 ++++++++++++++++++------
|
||||
io/LasZipPoint.hpp | 6 +++---
|
||||
pdal/pdal_config.cpp | 2 +-
|
||||
tools/lasdump/Dumper.cpp | 4 ++--
|
||||
4 files changed, 24 insertions(+), 12 deletions(-)
|
||||
|
||||
diff --git a/cmake/modules/FindLASzip.cmake b/cmake/modules/FindLASzip.cmake
|
||||
index 38d32c1..27c8352 100644
|
||||
--- a/cmake/modules/FindLASzip.cmake
|
||||
+++ b/cmake/modules/FindLASzip.cmake
|
||||
@@ -37,12 +37,23 @@ ENDIF()
|
||||
|
||||
|
||||
FIND_PATH(LASZIP_INCLUDE_DIR
|
||||
- laszip/laszip.hpp
|
||||
+ laszip.hpp
|
||||
PATHS
|
||||
- /usr/include
|
||||
- /usr/local/include
|
||||
- /tmp/lasjunk/include
|
||||
- ${OSGEO4W_ROOT_DIR}/include)
|
||||
+ /usr/include/laszip
|
||||
+ /usr/local/include/laszip
|
||||
+ ${OSGEO4W_ROOT_DIR}/include/laszip)
|
||||
+
|
||||
+if (NOT LASZIP_INCLUDE_DIR)
|
||||
+ FIND_PATH(LASZIP_INCLUDE_DIR
|
||||
+ laszip/laszip.hpp
|
||||
+ PATHS
|
||||
+ /usr/include
|
||||
+ /usr/local/include
|
||||
+ ${OSGEO4W_ROOT_DIR}/include)
|
||||
+ if (LASZIP_INCLUDE_DIR)
|
||||
+ set(LASZIP_INCLUDE_DIR ${LASZIP_INCLUDE_DIR}/laszip)
|
||||
+ endif()
|
||||
+endif()
|
||||
|
||||
SET(LASZIP_NAMES ${OSGEO4W_IMPORT_LIBRARY} laszip)
|
||||
|
||||
@@ -57,7 +68,8 @@ FIND_LIBRARY(LASZIP_LIBRARY
|
||||
IF(LASZIP_INCLUDE_DIR)
|
||||
SET(LASZIP_VERSION 0)
|
||||
|
||||
- SET(LASZIP_VERSION_H "${LASZIP_INCLUDE_DIR}/laszip/laszip.hpp")
|
||||
+ message(STATUS "*** ${LASZIP_INCLUDE_DIR} ***")
|
||||
+ SET(LASZIP_VERSION_H "${LASZIP_INCLUDE_DIR}/laszip.hpp")
|
||||
FILE(READ ${LASZIP_VERSION_H} LASZIP_VERSION_H_CONTENTS)
|
||||
|
||||
IF (DEFINED LASZIP_VERSION_H_CONTENTS)
|
||||
diff --git a/io/LasZipPoint.hpp b/io/LasZipPoint.hpp
|
||||
index abe6eea..57c049b 100644
|
||||
--- a/io/LasZipPoint.hpp
|
||||
+++ b/io/LasZipPoint.hpp
|
||||
@@ -37,9 +37,9 @@
|
||||
#include <vector>
|
||||
|
||||
#ifdef PDAL_HAVE_LASZIP
|
||||
-#include <laszip/laszip.hpp>
|
||||
-#include <laszip/lasunzipper.hpp>
|
||||
-#include <laszip/laszipper.hpp>
|
||||
+#include <laszip.hpp>
|
||||
+#include <lasunzipper.hpp>
|
||||
+#include <laszipper.hpp>
|
||||
#endif
|
||||
|
||||
namespace pdal
|
||||
diff --git a/pdal/pdal_config.cpp b/pdal/pdal_config.cpp
|
||||
index ca45025..2703ebc 100644
|
||||
--- a/pdal/pdal_config.cpp
|
||||
+++ b/pdal/pdal_config.cpp
|
||||
@@ -61,7 +61,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef PDAL_HAVE_LASZIP
|
||||
-#include <laszip/laszip.hpp>
|
||||
+#include <laszip.hpp>
|
||||
#endif
|
||||
|
||||
#include <geos_c.h>
|
||||
diff --git a/tools/lasdump/Dumper.cpp b/tools/lasdump/Dumper.cpp
|
||||
index b4ccb33..d126c2f 100644
|
||||
--- a/tools/lasdump/Dumper.cpp
|
||||
+++ b/tools/lasdump/Dumper.cpp
|
||||
@@ -32,8 +32,8 @@
|
||||
* OF SUCH DAMAGE.
|
||||
****************************************************************************/
|
||||
|
||||
-#include <laszip/laszip.hpp>
|
||||
-#include <laszip/lasunzipper.hpp>
|
||||
+#include <laszip.hpp>
|
||||
+#include <lasunzipper.hpp>
|
||||
|
||||
#include <pdal/util/IStream.hpp>
|
||||
|
Loading…
Reference in New Issue
Block a user