File LAStools.spec of Package LAStools

#
# spec file for package LAStools
#
# Copyright (c) 2021 SUSE LLC
#
# 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/
#


Name:           LAStools
Version:        0+git.1628883004.9ecb4e6
Release:        0
Summary:        LAStools - opensource tools only
License:        LGPL-2.1-or-later
Group:          Development/Libraries/C and C++
URL:            https://github.com/LAStools/LAStools
Source0:        LAStools-%{version}.tar.xz
BuildRequires:  gcc-c++
Provides:       lastools

%description
Only opensource tools are included:
* laszip        compresses the LAS files in a completely lossless manner
* lasinfo       prints out a quick overview of the contents of a LAS file
* lasindex      creates a spatial index LAX file for fast spatial queries
* las2las       extracts last returns, clips, subsamples, translates, etc ...
* lasmerge      merges several LAS or LAZ files into a single LAS or LAZ file
* txt2las       converts LIDAR data from ASCII text to binary LAS format
* las2txt       turns LAS into human-readable and easy-to-parse ASCII
* lasprecision  analyses the actual precision of the LIDAR points
* lasdiff       diffs LAS or LAZ files

Closed sources tools are not included.

See the REDAME.txt file or https://rapidlasso.com/lastools/ for more information.

%prep
%setup -q
rm -f bin/*.exe
rm -f bin/*.txt
rm -rf bin/serf/

%build
%if 0%{?sle_version} >= 150000
# Tumbleweed and Leap 15.x are fine but Leap 42.x and SLE12* break.
export COPTS="%{optflags}"
%endif
make %{?_smp_mflags}
rm -rf bin/unit

%install
mkdir -p %{buildroot}/%{_bindir}
cp bin/* %{buildroot}/%{_bindir}

%files
%defattr(-,root,root)
%{_bindir}/laszip
%{_bindir}/lasinfo
%{_bindir}/lasindex
%{_bindir}/las2las
%{_bindir}/lasmerge
%{_bindir}/txt2las
%{_bindir}/las2txt
%{_bindir}/lasprecision
%{_bindir}/lasdiff
%license LICENSE.txt COPYING.txt
%doc CHANGES.txt README.txt

%changelog
openSUSE Build Service is sponsored by