From ac044d672b917c29ec19abf47dc8709ed2778ea6d9e9e59c36abd1451915aca8 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 24 Mar 2020 07:52:43 +0000 Subject: [PATCH] Accepting request 787676 from home:mlin7442:fix_rpath_leap disable RPATH for building, the bit has been removed from macros.cmake OBS-URL: https://build.opensuse.org/request/show/787676 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/laszip?expand=0&rev=14 --- laszip.changes | 5 +++++ laszip.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/laszip.changes b/laszip.changes index f7e0f42..2fea917 100644 --- a/laszip.changes +++ b/laszip.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 24 07:01:31 UTC 2020 - Max Lin + +- Disable RPATH for building + ------------------------------------------------------------------- Wed Jul 10 18:51:45 UTC 2019 - Dirk Stoecker diff --git a/laszip.spec b/laszip.spec index 549f077..ea183ba 100644 --- a/laszip.spec +++ b/laszip.spec @@ -1,7 +1,7 @@ # # spec file for package laszip # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # Copyright (c) 2019 Bruno Friedmann, Ioda-Net Sàrl, Charmoille, Switzerland. # # All modifications and additions to the file contributed by third parties @@ -26,7 +26,7 @@ Release: 0 Summary: Compression library supporting ASPRS LAS format data License: LGPL-2.1-or-later Group: Development/Libraries/C and C++ -Url: https://laszip.org/ +URL: https://laszip.org/ Source0: https://github.com/LASzip/LASzip/releases/download/%{version}/laszip-src-%{version}.tar.gz Source1: https://github.com/LASzip/LASzip/releases/download/%{version}/laszip-src-%{version}.tar.gz.sha256sum BuildRequires: cmake @@ -84,13 +84,14 @@ data. %build # laszip need dlopen,dlsym,dlclose %cmake \ + -DCMAKE_SKIP_RPATH:BOOL=ON \ -DCMAKE_C_FLAGS="%{optflags} -fno-strict-aliasing -fPIC" \ -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -fno-strict-aliasing -fPIC" \ -DCMAKE_CXX_FLAGS="%{optflags} -fno-strict-aliasing -fPIC" \ -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -fno-strict-aliasing -fPIC" \ -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,--no-undefined -Wl,-z,now -Wl,--no-as-needed -ldl" -make V=1 %{?_smp_mflags} +%cmake_build %install %cmake_install @@ -110,7 +111,8 @@ rm -rf %{buildroot}/usr/lib/debug/ %files devel %defattr(-,root,root) -%doc ChangeLog AUTHORS COPYING +%license COPYING +%doc ChangeLog AUTHORS %dir %{_includedir}/%{name} %{_includedir}/%{name}/%{name}_api_version.h %{_includedir}/%{name}/%{name}_api.h