laszip/laszip.spec
Martin Pluskal f0a8786fbc Accepting request 677636 from home:bruno_friedmann:branches:Application:Geo
- Update to 3.2.9 version
  + Decompression bug for PRDF 8 or 10 when the scanner channel
    and the NIR field are populated.
  + 3.2.8 **NOTE: The version number is 3.2.8 to be brought in line
    with the patch version number present in LAStools, which had
    been incremented without being kept in sync with the laszip.org
    version. We regret the error.
    bug fixes since 3.2.2:
    + 7 November 2018 upped to 3.2 r8 for identical legacy and
      extended flags check
    + 20 October 2018 upped to 3.2 r7 for rare bug in
      LASinterval::merge_intervals()
    + 5 October 2018 upped to 3.2 r6 for corrected 'is_empty'
      return value
    + 28 September 2018 upped to 3.2 r5 for fix in extended
      classification writing
  + 3.2.2
    + A version number was not properly incremented to 3.2.1,
    necessitating a new release to eliminate confusion.
  + 3.2.1
    + Library SOVERSIONing for libtool to 8.0.0 #36
    + Update NEWS and ChangeLog
    + Library version inadvertently had major version in name
     (only relevant on windows)
    + Now building on AppVeyor and Travis
  + 3.2.0
    + Fix install of laszip_api_version.h #30
    + Add V4 read methods
- Packaging
  + minimal spec-cleaner (date/url) + trailing space in changes

OBS-URL: https://build.opensuse.org/request/show/677636
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/laszip?expand=0&rev=8
2019-02-21 08:58:28 +00:00

141 lines
4.9 KiB
RPMSpec

#
# spec file for package laszip
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 Bruno Friedmann, Ioda-Net Sàrl, Charmoille, Switzerland.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
#
%define sover 8
Name: laszip
Version: 3.2.9
Release: 0
Summary: Compression library supporting ASPRS LAS format data
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
Url: http://www.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.md5
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A free product of rapidlasso GmbH - quickly turns bulky LAS files into
compact LAZ files without information loss. LASzip is a compression library that
was developed by Martin Isenburg for compressing ASPRS LAS format data in his
LAStools. It has been provided as an LGPL-licensed stand-alone software library
to allow other softwares that handle LAS data to read and write LASzip-compressed
data. The BSD-licensed libLAS and the LGPL-licensed LASlib can take advantage of
LASzip to read and write compressed data.
%package -n lib%{name}%{sover}
Summary: Library files for %{name}
Group: System/Libraries
%description -n lib%{name}%{sover}
A free product of rapidlasso GmbH - quickly turns bulky LAS files into
compact LAZ files without information loss. LASzip is a compression library that
was developed by Martin Isenburg for compressing ASPRS LAS format data in his
LAStools. It has been provided as an LGPL-licensed stand-alone software library
to allow other softwares that handle LAS data to read and write LASzip-compressed
data. The BSD-licensed libLAS and the LGPL-licensed LASlib can take advantage of
LASzip to read and write compressed data.
This package contain only the dynamic build.
%package -n lib%{name}_api%{sover}
Summary: API library files for lib%{name}
# Packager comment are we sure this api can live alone ?
#Requires: lib%%{name}%%{sover} = %%{version}
Group: System/Libraries
%description -n lib%{name}_api%{sover}
API library for %{name}
This package contain only the dynamic build.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: lib%{name}%{sover} = %{version}
Requires: lib%{name}_api%{sover} = %{version}
%description devel
Headers and development files for %{name} needed to develop
softwares that handle LAS data to read and write LASzip-compressed
data.
%prep
%setup -q -n laszip-src-%{version}
%build
# laszip need dlopen,dlsym,dlclose
%cmake \
-DCMAKE_C_FLAGS="%{optflags} -fno-strict-aliasing -fPIE -pie" \
-DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -fno-strict-aliasing -fPIE -pie" \
-DCMAKE_CXX_FLAGS="%{optflags} -fno-strict-aliasing -fPIE -pie" \
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -fno-strict-aliasing -fPIE -pie" \
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,--no-undefined -Wl,-z,now -Wl,--no-as-needed -ldl"
make V=1 %{?_smp_mflags}
%install
%cmake_install
# Do not ship any static libraries or .la files
find %{buildroot} -type f \( -name '*.a' -o -name '*.la' \) -delete -print
rm -rf %{buildroot}/usr/lib/debug/
# No more available in 3?
#%%check
#make %%{?_smp_mflags} check
%post -n lib%{name}%{sover} -p /sbin/ldconfig
%postun -n lib%{name}%{sover} -p /sbin/ldconfig
%post -n lib%{name}_api%{sover} -p /sbin/ldconfig
%postun -n lib%{name}_api%{sover} -p /sbin/ldconfig
%files devel
%defattr(-,root,root)
%doc ChangeLog AUTHORS COPYING
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/%{name}_api_version.h
%{_includedir}/%{name}/%{name}_api.h
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}_api.so
%files -n lib%{name}%{sover}
%defattr(-,root,root)
%doc ChangeLog AUTHORS
%if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320
%license COPYING
%else
%doc COPYING
%endif
%{_libdir}/lib%{name}.so.*
%files -n lib%{name}_api%{sover}
%defattr(-,root,root)
%doc ChangeLog AUTHORS
%if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320
%license COPYING
%else
%doc COPYING
%endif
%{_libdir}/lib%{name}_api.so.*
%changelog