SHA256
1
0
forked from pool/laszip

Accepting request 787694 from Application:Geo

OBS-URL: https://build.opensuse.org/request/show/787694
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/laszip?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2020-03-24 21:35:28 +00:00 committed by Git OBS Bridge
commit 96dcc36d78
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Mar 24 07:01:31 UTC 2020 - Max Lin <mlin@suse.com>
- Disable RPATH for building
-------------------------------------------------------------------
Wed Jul 10 18:51:45 UTC 2019 - Dirk Stoecker <opensuse@dstoecker.de>

View File

@ -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