%global Archivename LAStools Name: lastools Version: 2.0.4 Release: K01%{?dist} Summary: Opensource tools for processing LiDAR data License: LGPL-2.1-or-later Group: Science, GIS URL: https://github.com/LAStools/LAStools Source0: %{Archivename}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ %description Open source tools developed by rapidlasso GmbH: * las2las64 extracts last returns, clips, subsamples, translates, etc. ... * las2txt64 turns LAS into human-readable and easy-to-parse ASCII * lascopcindex64 creates a COPC *.laz file for a given set of *.las or *.laz files * lasdiff64 compares LIDAR data and reports whether they are identical or different * lasindex64 creates a spatial index LAX file for fast spatial queries * lasinfo64 prints out a quick overview of the contents of a LAS file * lasmerge64 merges several LAS or LAZ files into a single LAS or LAZ file * lasprecision64 analyses the actual precision of the LIDAR points * lasvalidate64 determines if LAS filesnconform to the ASPRS LAS 1.0 to 1.4 specifications. * laszip64 powerful, lossless LiDAR compressor that turns large LAS files into much smaller LAZ files * txt2las64 converts LIDAR data from ASCII text to binary LAS format Closed sources tools are not included. %prep %autosetup -p1 -n %{Archivename}-%{version} %build cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt cmake --build . %install mkdir -p %{buildroot}/%{_docdir}/%{name} # Documentaion only for the intalled tools. for FIND in bin64/* ; do NAME=${FIND%64} NAME=${NAME#*/} cp "bin/$NAME"_README.md %{buildroot}/%{_docdir}/%{name}/ done mkdir -p %{buildroot}/%{_bindir} cp bin64/* %{buildroot}/%{_bindir} cp -r bin/serf %{buildroot}/%{_bindir} %files %defattr(-,root,root) %{_bindir}/* %{_docdir}/* %license LICENSE.txt COPYING.txt %doc CHANGES.txt README.md %changelog * Tue Apr 28 2026 Karlis Kalvskis 2.0.4-K01 - Initial release 2.0.4