2020-04-14 12:51:42 +00:00
|
|
|
%global commit d76a061f33a69a36ab116cd939c5d444b301efd8
|
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
|
|
|
|
Name: liblas
|
|
|
|
Version: 1.8.1
|
2022-05-04 09:39:46 +00:00
|
|
|
Release: 20%{?shortcommit:.git%shortcommit}%{?dist}
|
2020-04-14 12:51:42 +00:00
|
|
|
Summary: Library for reading and writing the very common LAS LiDAR format
|
|
|
|
|
|
|
|
License: BSD and Boost
|
|
|
|
URL: https://www.liblas.org
|
|
|
|
%if 0%{?commit:1}
|
|
|
|
Source0: https://github.com/libLAS/libLAS/archive/%{commit}/libLAS-%{shortcommit}.tar.gz
|
|
|
|
%else
|
|
|
|
Source0: https://download.osgeo.org/%{name}/libLAS-%{version}.tar.bz2
|
|
|
|
%endif
|
|
|
|
|
2020-03-03 16:42:46 +00:00
|
|
|
# Fix build against recent gdal3+
|
|
|
|
# https://github.com/libLAS/libLAS/issues/164
|
|
|
|
# From https://github.com/OSGeo/gdal/blob/master/gdal/MIGRATION_GUIDE.TXT:
|
|
|
|
# removal of OSRFixup() and OSRFixupOrdering(): no longer needed since objects constructed are always valid
|
2020-04-14 12:51:42 +00:00
|
|
|
Patch1: liblas_gdal3.patch
|
2016-03-15 11:50:58 +00:00
|
|
|
|
2020-04-14 18:14:25 +00:00
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1652609
|
|
|
|
# https://github.com/libLAS/libLAS/issues/159
|
|
|
|
Patch2: liblas_CVE-2018-20539.patch
|
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1652611
|
|
|
|
# https://github.com/libLAS/libLAS/issues/160
|
|
|
|
Patch3: liblas_CVE-2018-20537.patch
|
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1652610
|
|
|
|
# https://github.com/libLAS/libLAS/issues/161
|
|
|
|
Patch4: liblas_CVE-2018-20536.patch
|
|
|
|
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1652612
|
|
|
|
# https://github.com/libLAS/libLAS/issues/181
|
|
|
|
Patch5: liblas_CVE-2018-20540.patch
|
|
|
|
|
2020-05-06 11:43:26 +00:00
|
|
|
# Fix incorrect libgeotiff pkgconfig require resulting in broken dependencies
|
2020-06-08 09:46:29 +00:00
|
|
|
# Fix incorrect includedir and libdir paths
|
2020-05-06 11:43:26 +00:00
|
|
|
Patch6: liblas_pkgconfig.patch
|
|
|
|
|
2020-06-08 09:46:29 +00:00
|
|
|
# Fix FTBFS with boost 1.73
|
|
|
|
Patch7: liblas_boost173.patch
|
|
|
|
|
2018-07-09 17:06:47 +00:00
|
|
|
BuildRequires: gcc-c++
|
2020-04-14 12:51:42 +00:00
|
|
|
BuildRequires: boost-devel >= 1.53
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gdal-devel
|
2020-04-14 13:01:29 +00:00
|
|
|
BuildRequires: libjpeg-turbo-devel
|
2020-04-14 12:51:42 +00:00
|
|
|
BuildRequires: laszip-devel
|
|
|
|
BuildRequires: libgeotiff-devel
|
2020-04-14 13:01:29 +00:00
|
|
|
BuildRequires: zlib-devel
|
2015-04-19 21:37:54 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
libLAS is a C/C++ library for reading and writing the very common LAS LiDAR
|
2016-03-15 11:56:12 +00:00
|
|
|
format. The ASPRS LAS format is a sequential binary format used to store
|
|
|
|
data from LiDAR sensors and by LiDAR processing software for data
|
|
|
|
interchange and archival.
|
2015-04-19 21:37:54 +00:00
|
|
|
|
2016-03-15 11:50:58 +00:00
|
|
|
%package devel
|
2016-03-15 11:56:12 +00:00
|
|
|
Summary: libLAS development files
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2016-03-15 11:50:58 +00:00
|
|
|
|
|
|
|
Requires: boost-devel >= 1.53
|
|
|
|
Requires: gdal-devel
|
|
|
|
Requires: laszip-devel
|
|
|
|
Requires: libgeotiff-devel
|
|
|
|
|
|
|
|
%description devel
|
2016-03-15 11:56:12 +00:00
|
|
|
libLAS deveolpment files.
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: libLAS utility applications
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
libLAS utility applications.
|
2016-03-15 11:50:58 +00:00
|
|
|
|
2020-04-14 12:51:42 +00:00
|
|
|
|
2015-04-19 21:37:54 +00:00
|
|
|
%prep
|
2020-04-14 12:51:42 +00:00
|
|
|
%if 0%{?commit:1}
|
|
|
|
%autosetup -p1 -n libLAS-%{commit}
|
|
|
|
%else
|
|
|
|
%autosetup -p1 -n libLAS-%{version}
|
|
|
|
%endif
|
|
|
|
|
2015-04-19 21:37:54 +00:00
|
|
|
|
|
|
|
%build
|
2016-03-15 11:56:12 +00:00
|
|
|
%cmake \
|
2020-04-14 12:51:42 +00:00
|
|
|
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
|
|
|
-DLIBLAS_LIB_SUBDIR:PATH="%{_lib}" \
|
|
|
|
-DWITH_GDAL:BOOL=ON \
|
|
|
|
-DWITH_LASZIP:BOOL=ON \
|
|
|
|
-DWITH_TESTS:BOOL=ON .
|
2020-07-29 14:22:26 +00:00
|
|
|
%cmake_build
|
2020-04-14 12:51:42 +00:00
|
|
|
|
2015-04-19 21:37:54 +00:00
|
|
|
|
|
|
|
%install
|
2020-07-29 14:22:26 +00:00
|
|
|
%cmake_install
|
2015-04-19 21:37:54 +00:00
|
|
|
|
2020-04-14 12:51:42 +00:00
|
|
|
|
2019-01-22 17:39:51 +00:00
|
|
|
%ldconfig_scriptlets
|
2015-04-19 21:37:54 +00:00
|
|
|
|
2020-04-14 12:51:42 +00:00
|
|
|
|
2015-04-19 21:37:54 +00:00
|
|
|
%files
|
2016-03-15 11:50:58 +00:00
|
|
|
%exclude %{_datadir}/%{name}/
|
2019-02-04 07:59:51 +00:00
|
|
|
%{_libdir}/*.so.3
|
|
|
|
%{_libdir}/*.so.2.*
|
2015-04-19 21:37:54 +00:00
|
|
|
|
|
|
|
%files devel
|
2016-03-15 12:38:37 +00:00
|
|
|
%license LICENSE.txt
|
2016-03-15 11:50:58 +00:00
|
|
|
%{_includedir}/%{name}/
|
2020-04-14 12:51:42 +00:00
|
|
|
%{_libdir}/cmake/libLAS/
|
|
|
|
%{_libdir}/pkgconfig/liblas.pc
|
2016-03-15 11:50:58 +00:00
|
|
|
%{_libdir}/*.so
|
2015-04-19 21:37:54 +00:00
|
|
|
|
2016-03-15 11:56:12 +00:00
|
|
|
%files tools
|
|
|
|
%doc AUTHORS README.txt
|
|
|
|
%{_bindir}/*
|
|
|
|
|
2020-04-14 12:51:42 +00:00
|
|
|
|
2015-04-19 21:37:54 +00:00
|
|
|
%changelog
|
2022-05-04 09:39:46 +00:00
|
|
|
* Wed May 04 2022 Thomas Rodgers <trodgers@redhat.com> - 1.8.1-20.gitd76a061
|
|
|
|
- Rebuilt for Boost 1.78
|
|
|
|
|
2022-01-20 16:35:09 +00:00
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-19.gitd76a061
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
2021-11-11 11:07:10 +00:00
|
|
|
* Thu Nov 11 2021 Sandro Mani <manisandro@gmail.com> - 1.8.1-18.gitd76a061
|
|
|
|
- Rebuild (gdal)
|
|
|
|
|
2021-08-06 23:39:42 +00:00
|
|
|
* Fri Aug 06 2021 Jonathan Wakely <jwakely@redhat.com> - 1.8.1-17.gitd76a061
|
|
|
|
- Rebuilt for Boost 1.76
|
|
|
|
|
2021-07-22 11:43:54 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-16.gitd76a061
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-05-07 10:12:23 +00:00
|
|
|
* Fri May 07 2021 Sandro Mani <manisandro@gmail.com> - 1.8.1-15.gitd76a061
|
|
|
|
- Rebuild (gdal)
|
|
|
|
|
2021-01-26 17:24:12 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-14.gitd76a061
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2021-01-22 20:53:22 +00:00
|
|
|
* Fri Jan 22 2021 Jonathan Wakely <jwakely@redhat.com> - 1.8.1-13.gitd76a061
|
|
|
|
- Rebuilt for Boost 1.75
|
|
|
|
|
2020-11-12 09:33:27 +00:00
|
|
|
* Fri Nov 6 22:01:04 CET 2020 Sandro Mani <manisandro@gmail.com> - 1.8.1-12.gitd76a061
|
|
|
|
- Rebuild (proj, gdal)
|
|
|
|
|
2020-07-28 04:59:25 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-11.gitd76a061
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-06-08 11:51:18 +00:00
|
|
|
* Mon Jun 08 2020 Sandro Mani <manisandro@gmail.com> - 1.8.1-10.gitd76a061
|
|
|
|
- Fix liblas_pkgconfig.patch
|
|
|
|
|
2020-06-08 08:05:47 +00:00
|
|
|
* Mon Jun 08 2020 Sandro Mani <manisandro@gmail.com> - 1.8.1-9.gitd76a061
|
|
|
|
- Rebuild (boost)
|
|
|
|
|
2020-05-21 09:52:52 +00:00
|
|
|
* Thu May 21 2020 Sandro Mani <manisandro@gmail.com> - 1.8.1-8.gitd76a061
|
|
|
|
- Rebuild (gdal)
|
|
|
|
|
2020-05-06 11:43:26 +00:00
|
|
|
* Wed May 06 2020 Sandro Mani <manisandro@gmail.com> - 1.8.1-7.gitd76a061
|
|
|
|
- Add liblas_pkgconfig.patch
|
|
|
|
|
2020-04-14 18:14:25 +00:00
|
|
|
* Tue Apr 14 2020 Sandro Mani <manisandro@gmail.com> - 1.8.1-6.gitd76a061
|
|
|
|
- Add patches for CVE-2018-20539, CVE-2018-20537, CVE-2018-20536, CVE-2018-20540
|
|
|
|
|
2020-04-14 12:51:42 +00:00
|
|
|
* Tue Apr 14 2020 Sandro Mani <manisandro@gmail.com> - 1.8.1-5.gitd76a061
|
|
|
|
- Update to latest git
|
|
|
|
|
2020-03-03 16:18:07 +00:00
|
|
|
* Tue Mar 03 2020 Sandro Mani <manisandro@gmail.com> - 1.8.1-4
|
|
|
|
- Rebuild (gdal)
|
|
|
|
|
2020-01-29 09:34:31 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-07-25 13:39:55 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-02-01 07:30:52 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-25
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2019-01-25 09:46:10 +00:00
|
|
|
* Fri Jan 25 2019 Jonathan Wakely <jwakely@redhat.com> - 1.8.0-24
|
|
|
|
- Rebuilt for Boost 1.69
|
|
|
|
|
2018-07-13 08:21:21 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-23
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-07 22:28:59 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-22
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-23 14:20:33 +00:00
|
|
|
* Tue Jan 23 2018 Jonathan Wakely <jwakely@redhat.com> - 1.8.0-21
|
|
|
|
- Rebuilt for Boost 1.66
|
|
|
|
|
2017-08-03 01:46:06 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-20
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 19:10:51 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-19
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-07-19 16:36:52 +00:00
|
|
|
* Wed Jul 19 2017 Jonathan Wakely <jwakely@redhat.com> - 1.8.0-18
|
|
|
|
- Rebuilt for s390x binutils bug
|
|
|
|
|
2017-07-03 21:20:03 +00:00
|
|
|
* Mon Jul 03 2017 Jonathan Wakely <jwakely@redhat.com> - 1.8.0-17
|
|
|
|
- Rebuilt for Boost 1.64
|
|
|
|
|
2017-02-10 18:58:04 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-16
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-01-27 16:46:29 +00:00
|
|
|
* Fri Jan 27 2017 Jonathan Wakely <jwakely@redhat.com> - 1.8.0-15
|
|
|
|
- Rebuilt for Boost 1.63
|
|
|
|
|
2017-01-27 06:33:11 +00:00
|
|
|
* Fri Jan 27 2017 Jonathan Wakely <jwakely@redhat.com> - 1.8.0-14
|
|
|
|
- Rebuilt for Boost 1.63
|
|
|
|
|
2016-05-17 10:02:08 +00:00
|
|
|
* Tue May 17 2016 Jonathan Wakely <jwakely@redhat.com> - 1.8.0-13
|
|
|
|
- Rebuilt for linker errors in boost (#1331983)
|
|
|
|
|
2016-03-15 12:38:37 +00:00
|
|
|
* Tue Mar 15 2016 Thomas Kreuzer <thomas.kreuzer@uni-vechta.de> - 1.8.0-12
|
|
|
|
- Put licence file into correct place.
|
|
|
|
|
2016-03-15 11:56:12 +00:00
|
|
|
* Thu Mar 10 2016 Thomas Kreuzer <thomas.kreuzer@uni-vechta.de> - 1.8.0-11
|
2016-03-15 11:50:58 +00:00
|
|
|
- Fix bug #1311953
|
|
|
|
|
2016-02-04 03:27:27 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-15 10:27:12 +00:00
|
|
|
* Fri Jan 15 2016 Jonathan Wakely <jwakely@redhat.com> - 1.8.0-9
|
|
|
|
- Rebuilt for Boost 1.60
|
|
|
|
|
2015-08-27 19:58:24 +00:00
|
|
|
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 1.8.0-8
|
|
|
|
- Rebuilt for Boost 1.59
|
|
|
|
|
2015-07-29 17:38:27 +00:00
|
|
|
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
|
|
|
|
|
2015-07-27 13:37:16 +00:00
|
|
|
* Mon Jul 27 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.8.0-6
|
|
|
|
- Rebuilt for libgdal
|
|
|
|
|
2015-07-22 16:53:16 +00:00
|
|
|
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 1.8.0-5
|
|
|
|
- rebuild for Boost 1.58
|
|
|
|
|
2015-06-17 15:59:33 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-04-19 21:37:54 +00:00
|
|
|
* Fri Apr 17 2015 Devrim GUNDUZ <devrim@gunduz.org> 1.8.0-3
|
|
|
|
- Various updates, per Fedora review from Rex:
|
|
|
|
- Update license
|
|
|
|
- omit INSTALL from %%doc
|
|
|
|
- Own directories in -devel subpackage
|
|
|
|
- omit deprecated Group: tags and %%clean section
|
|
|
|
- Use better macros for make and cmake
|
2016-03-15 11:50:58 +00:00
|
|
|
- use %%%{?_isa} macro in subpkg dependencies
|
|
|
|
- have %%build section envoke 'make'
|
2015-04-19 21:37:54 +00:00
|
|
|
- Update %%install section
|
|
|
|
- Improve cmake build parameters, also fix rpath
|
|
|
|
- move liblaszip.so symlink to -devel subpkg
|
|
|
|
- move liblas-config to -devel subpackage
|
|
|
|
- Split -devel and -libs subpackages
|
|
|
|
|
|
|
|
* Fri Apr 17 2015 Devrim GUNDUZ <devrim@gunduz.org> 1.8.0-2
|
|
|
|
- Various updates:
|
|
|
|
* Split -devel and -libs subpackages
|
|
|
|
* 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 in spec file
|
|
|
|
* BR laszip-devel, and require laszip, per recent laszip changes.
|
|
|
|
|
|
|
|
* Tue Jan 13 2015 Devrim GUNDUZ <devrim@gunduz.org> 1.8.0-1
|
|
|
|
- Initial packaging
|