forked from pool/laszip
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
This commit is contained in:
parent
fb17ca71fa
commit
ac044d672b
@ -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>
|
||||
|
||||
|
10
laszip.spec
10
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
|
||||
|
Loading…
Reference in New Issue
Block a user