Summary: Quickly turns bulky LAS files into compant LAZ files Name: laszip Version: 3.4.3 Release: 1%{?dist} License: LGPLv2 Source0: https://github.com/LASzip/LASzip/releases/download/v%{version}/%{name}-src-%{version}.tar.gz URL: http://www.laszip.org/ BuildRequires: cmake BuildRequires: gcc-c++ %description LASzip - a free product of rapidlasso GmbH - quickly turns bulky LAS files into compact LAZ files without information loss. %package devel Summary: The development files for laszip Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development headers and libraries for laszip %prep %setup -q -n %{name}-src-%{version} %build %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" \ -DCMAKE_INSTALL_LIBDIR=lib64 \ -DCMAKE_BUILD_TYPE=Release %{__make} %{?_smp_mflags} %install %make_install # Remove .la files %{__rm} -f %{buildroot}%{_libdir}/liblaszip.la %postun -p /sbin/ldconfig %post -p /sbin/ldconfig %files %doc AUTHORS %license COPYING %{_libdir}/liblaszip*.so* %files devel %exclude %{_includedir}/laszip_api_version.h %exclude %{_includedir}/laszip_api.h %{_includedir}/laszip/laszip_api.h %{_includedir}/laszip/laszip_api_version.h %changelog * Wed Apr 01 2020 Markus Neteler 3.4.3-1 - New 3.4.3 upstream release * Mon Sep 16 2019 Markus Neteler 3.4.1-1 - New 3.4.1 upstream release * Sun Oct 28 2018 Markus Neteler - 3.2.2-2 - added BuildRequires gcc-c++ to address RHBZ #1551327 (removing gcc and gcc-c++ from default buildroot) * Sun Apr 22 2018 Markus Neteler - 3.2.2-1 - new upstream version 3.2.2 * Thu Mar 22 2018 Markus Neteler - 3.1.1 - new upstream version 3.1.1 - cmake line modified from https://software.opensuse.org/package/laszip * Wed Feb 07 2018 Fedora Release Engineering - 2.2.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 2.2.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 2.2.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 2.2.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 2.2.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 2.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Apr 17 2015 Devrim GUNDUZ 2.2.0-4 - More fixes per Fedora review: - Update license - omit liblaszip.a static library - fix liblaszip undefined symbols, by adding -lstdc++ CFLAG - omit INSTALL from %%doc - Own %%{_includedir}/laszip/ directory - devel subpkg now depends on main package - omit deprecated Group: tags and %%clean section - drop not needed dependency to cmake - move liblaszip.so symlink to -devel subpkg * Fri Apr 17 2015 Devrim GUNDUZ 2.2.0-3 - Various fixes per Fedora review #1199296 * Add devel subpackage * Use %%license macro * Use %%make_install macro * Get rid of BuildRoot definition * No need to cleanup buildroot during %%install * Remove %%defattr * Run ldconfig * Fix version numbers * Fri Mar 6 2015 Devrim GUNDUZ 2.2.0-2 - Rebuild with new liblas. * Fri Mar 6 2015 Devrim GUNDUZ 2.2.0-2 - Rebuild with new liblas. * Tue Jan 13 2015 Devrim GUNDUZ 2.2.0-1 - Initial packaging