#global __cmake_in_source_build 1 # BZ 1996330 #ifarch ppc64le #global _lto_cflags %nil #endif %bcond_with docs Summary: Point Data Abstraction Library Name: PDAL # NOTE: Re-verifiy test exclusions in %%check when updating Version: 2.8.1 Release: 2%{?dist} # The code is licensed BSD except for: # - filters/private/csf/* and plugins/i3s/lepcc/* are ASL 2.0 # - vendor/arbiter/*, plugins/nitf/io/nitflib.h and plugins/oci/io/OciWrapper.* are Expat/MIT # - plugins/e57/libE57Format/{src,include}/* is Boost License: BSD-3-Clause AND Apache-2.0 AND MIT AND BSL-1.0 URL: https://www.pdal.io Source: https://github.com/%{name}/%{name}/releases/download/%{version}/%{name}-%{version}-src.tar.bz2 # commented out due to size (320 MB larger) #Source1: http://download.osgeo.org/proj/vdatum/%%{name}-vdatums.zip # originals #Source1: http://download.osgeo.org/proj/vdatum/egm08_25/egm08_25.gtx #Source2: http://download.osgeo.org/proj/vdatum/egm08_25/egm08_25.txt #Source3: http://download.osgeo.org/proj/vdatum/egm96_15/egm96_15.gtx #Source4: http://download.osgeo.org/proj/vdatum/egm96_15/WW15MGH.TXT #Source5: http://download.osgeo.org/proj/vdatum/vertcon/README.TXT #Source6: http://download.osgeo.org/proj/vdatum/vertcon/vertconc.gtx #Source7: http://download.osgeo.org/proj/vdatum/vertcon/vertcone.gtx #Source8: http://download.osgeo.org/proj/vdatum/vertcon/vertconw.gtx #Source9: http://download.osgeo.org/proj/vdatum/usa_geoid1999.zip #Source10: http://download.osgeo.org/proj/vdatum/usa_geoid2003.zip #Source11: http://download.osgeo.org/proj/vdatum/usa_geoid2009.zip #Source12: http://download.osgeo.org/proj/vdatum/usa_geoid2012.zip #Source13: http://download.osgeo.org/proj/vdatum/usa_geoid2012b.zip # Unbundle some bundled libraries Patch0: PDAL_unbundle.patch BuildRequires: boost-devel BuildRequires: cmake BuildRequires: eigen3-devel BuildRequires: gcc-c++ BuildRequires: gdal BuildRequires: gdal-devel BuildRequires: geos-devel BuildRequires: gtest-devel BuildRequires: hdf5-devel BuildRequires: jsoncpp-devel BuildRequires: libgeotiff-devel BuildRequires: libpq-devel BuildRequires: libxml2-devel BuildRequires: libzstd-devel BuildRequires: make BuildRequires: netcdf-cxx-devel BuildRequires: postgresql-devel BuildRequires: postgresql-server BuildRequires: proj-devel BuildRequires: python3-devel BuildRequires: python3-numpy BuildRequires: qhull-devel BuildRequires: sqlite-devel BuildRequires: zlib-devel %if %{with docs} BuildRequires: python3-breathe BuildRequires: python3-sphinx BuildRequires: python3-sphinx-notfound-page BuildRequires: python3-sphinxcontrib-bibtex BuildRequires: python3-sphinxcontrib-spelling BuildRequires: python3-sphinx_rtd_theme %endif Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: bash-completion # https://github.com/connormanning/arbiter bundled in vendor/arbiter Provides: bundled(arbiter) # https://github.com/mkazhdan/PoissonRecon bundled in vendor/kazhdan Provides: bundled(PoissonRecon) # https://github.com/jlblancoc/nanoflann bundled in vendor/nanoflann Provides: bundled(nanoflann) # https://github.com/nlohmann/json bundled in vendor/nlohmann Provides: bundled(nlohmann) %description PDAL is a BSD licensed library for translating and manipulating point cloud data of various formats. It is a library that is analogous to the GDAL raster library. PDAL is focused on reading, writing, and translating point cloud data from the ever-growing constellation of data formats. While PDAL is not explicitly limited to working with LiDAR data formats, its wide format coverage is in that domain. PDAL is related to Point Cloud Library (PCL) in the sense that both work with point data, but PDAL’s niche is data translation and processing pipelines, and PCL’s is more in the algorithmic exploitation domain. There is cross over of both niches, however, and PDAL provides a user the ability to exploit data using PCL’s techniques. %package devel Summary: PDAL development header files and libraries Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel The pdal-devel package contains the header files and libraries needed to compile C or C++ applications which will directly interact with PDAL. %package libs Summary: The shared libraries required for PDAL %description libs The pdal-libs package provides the essential shared libraries for any PDAL client program or interface. You will need to install this package to use PDAL # commented out due to size #%%package vdatums #Summary: Vertical datum and geoid files for PDAL #Requires: %%{name} = %%{version}-%%{release} # #%%description vdatums #This package contains vertical datum and geoid files for PDAL. %if %{with docs} %package doc Summary: Documentation for PDAL BuildArch: noarch %description doc This package contains documentation for PDAL. %endif # We don't want to provide private PDAL extension libs (to be verified) %global __provides_exclude_from ^%{_libdir}/libpdal_plugin.*\.so.*$ %prep %autosetup -p1 -n %{name}-%{version}-src # Wrong perms on some source files chmod 0644 pdal/DynamicLibrary.cpp pdal/private/DynamicLibrary.hpp # Remove some bundled libraries rm -rf vendor/{eigen,gtest,pdalboost} %build %cmake -D PDAL_LIB_INSTALL_DIR:PATH=%{_lib} \ -D CMAKE_INSTALL_LIBDIR:PATH=%{_lib} \ -D CMAKE_VERBOSE_MAKEFILE=ON \ -D GEOTIFF_INCLUDE_DIR=%{_includedir}/libgeotiff \ -D BUILD_PGPOINTCLOUD_TESTS:BOOL=OFF \ -D WITH_COMPLETION=ON \ -D WITH_LAZPERF=ON \ -D WITH_TESTS=ON \ -D PDAL_HAVE_LIBGEOTIFF=ON \ -D PDAL_HAVE_LIBXML2=ON \ -D POSTGRESQL_INCLUDE_DIR=%{_includedir}/pgsql \ -D POSTGRESQL_LIBRARIES=%{_libdir}/libpq.so . %cmake_build # Build documentation %if %{with docs} # dependencies yet missing for EPEL8 BZ#1808766 ( cd doc export PYTHONPATH=$PWD/doc/_ext sphinx-build -b html . build/html ) %endif %install %cmake_install # commented out due to size ## unpack vertical datums #mkdir -p %%{buildroot}%%{_datadir}/proj #mkdir vdatum #pushd vdatum #unzip -o %%{SOURCE1} #mv *.gtx %%{buildroot}%%{_datadir}/proj/ #popd #rm -rf vdatum %check #ctest %files %{_bindir}/pdal %{_datadir}/bash-completion/completions/pdal %files libs %license LICENSE.txt %license vendor/arbiter/LICENSE %license plugins/e57/libE57Format/LICENSE.md %{_libdir}/libpdalcpp.so.18* %{_libdir}/libpdal_plugin_kernel_fauxplugin.so.18* %{_libdir}/libpdal_plugin_reader_pgpointcloud.so.18* %{_libdir}/libpdal_plugin_writer_pgpointcloud.so.18* %files devel %{_bindir}/pdal-config %{_includedir}/pdal/ # drop unversioned symbolic links (BZ#1841616) %exclude %{_libdir}/libpdal_plugin_kernel_fauxplugin.so %exclude %{_libdir}/libpdal_plugin_reader_pgpointcloud.so %exclude %{_libdir}/libpdal_plugin_writer_pgpointcloud.so %{_libdir}/libpdalcpp.so %{_libdir}/cmake/PDAL/ %{_libdir}/pkgconfig/*.pc # commented out due to size #%%files vdatums #%%attr(0644,root,root) %%{_datadir}/proj/*.gtx %if %{with docs} %files doc %doc doc/build/html %license LICENSE.txt %endif %changelog * Fri Nov 08 2024 Sandro Mani - 2.8.1-2 - Rebuild (gdal) * Sat Oct 26 2024 Sandro Mani - 2.8.1-1 - Update to 2.8.1 * Fri Oct 25 2024 Orion Poplawski - 2.8.0-2 - Rebuild for hdf5 1.14.5 * Fri Sep 06 2024 Sandro Mani - 2.8.0-1 - Update to 2.8.0 * Wed Jul 17 2024 Fedora Release Engineering - 2.7.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue Jul 02 2024 Sandro Mani - 2.7.2-1 - Update to 2.7.2 * Mon May 13 2024 Sandro Mani - 2.7.1-2 - Rebuild (gdal) * Wed Mar 27 2024 Sandro Mani - 2.7.1-1 - Update to 2.7.1 * Wed Mar 13 2024 Sandro Mani - 2.7.0-1 - Update to 2.7.0 * Tue Feb 06 2024 Sandro Mani - 2.6.3-1 - Update to 2.6.3 * Mon Jan 22 2024 Fedora Release Engineering - 2.6.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 2.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Dec 12 2023 Sandro Mani - 2.6.2-1 - Update to 2.6.2 * Tue Nov 28 2023 Sandro Mani - 2.6.1-1 - Update to 2.6.1 * Wed Nov 15 2023 Sandro Mani - 2.6.0-5 - Rebuild (gdal) * Wed Oct 25 2023 Terje Rosten - 2.6.0-4 - Fix perms on some source and installed files and dirs * Sun Oct 15 2023 Sandro Mani - 2.6.0-3 - Drop pdalcpp oddity * Sat Oct 14 2023 Sandro Mani - 2.6.0-2 - Drop unversioned symbolic links * Sat Oct 14 2023 Sandro Mani - 2.6.0-1 - Update to 2.6.0 * Sat Aug 19 2023 Sandro Mani - 2.5.6-1 - Update to 2.5.6 * Wed Jul 19 2023 Fedora Release Engineering - 2.5.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 15 2023 Sandro Mani - 2.5.5-1 - Update to 2.5.5 * Tue May 30 2023 Sandro Mani - 2.5.4-1 - Update to 2.5.4 * Thu May 11 2023 Sandro Mani - 2.5.3-3 - Add patch for gdal-3.7.0 compatibility * Thu May 11 2023 Sandro Mani - 2.5.3-2 - Rebuild (gdal) * Sat Apr 15 2023 Sandro Mani - 2.5.3-1 - Update to 2.5.3 * Wed Mar 01 2023 Markus Neteler 2.5.2-1 - Update to 2.5.2 * Sat Feb 11 2023 Markus Neteler 2.5.1-1 - Update to 2.5.1 * Mon Feb 06 2023 Markus Neteler 2.5.0-3 - patch to guard against bad return numbers (from upstream #3966), to be removed with PDAL 2.5.1 * Wed Jan 18 2023 Fedora Release Engineering - 2.5.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jan 14 2023 Sandro Mani - 2.5.0-1 - Update to 2.5.0 * Sat Nov 12 2022 Sandro Mani - 2.4.3-3 - Rebuild (gdal) * Wed Nov 09 2022 Markus Neteler 2.4.3-2 - SPDX license tag update * Sat Aug 06 2022 Sandro Mani - 2.4.3-1 - Update to 2.4.3 * Wed Jul 20 2022 Fedora Release Engineering - 2.4.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 07 2022 Sandro Mani - 2.4.2-1 - Update to 2.4.2 * Sat May 21 2022 Sandro Mani - 2.4.1-1 - Update to 2.4.1 * Fri May 20 2022 Sandro Mani - 2.4.0-2 - Rebuild for gdal-3.5.0 and/or openjpeg-2.5.0 * Mon Mar 28 2022 Markus Neteler 2.4.0-1 - new upstream version - removed laszip requirement as lasperf is now used - deactivated unbundling of some bundled libraries, see https://github.com/PDAL/PDAL/issues/3719 - fix https://github.com/PDAL/PDAL/pull/3720 - ppc64le: workaround for BZ #1996330 * Wed Jan 19 2022 Fedora Release Engineering - 2.3.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Nov 22 2021 Orion Poplawski - 2.3.0-5 - Rebuild for hdf5 1.12.1 * Thu Nov 11 2021 Sandro Mani - 2.3.0-4 - Rebuild (gdal) * Fri Aug 06 2021 Jonathan Wakely - 2.3.0-3 - Rebuilt for Boost 1.76 * Wed Jul 21 2021 Fedora Release Engineering - 2.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Sun May 30 2021 Markus Neteler 2.3.0-1 - new upstream version - removed broken tests patch * Fri May 07 2021 Sandro Mani - 2.2.0-8 - Rebuild (gdal) * Tue Mar 30 2021 Jonathan Wakely - 2.2.0-7 - Rebuilt for removed libstdc++ symbol (#1937698) * Mon Feb 08 2021 Pavel Raiskup - 2.2.0-6 - rebuild for libpq ABI fix rhbz#1908268 * Thu Jan 28 2021 Markus Neteler 2.2.0-6 - fix build with sphinxcontrib-bibtex 2.0 (RHBZ #1921498) * Mon Jan 25 2021 Fedora Release Engineering - 2.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jan 22 2021 Jonathan Wakely - 2.2.0-4 - Rebuilt for Boost 1.75 * Fri Nov 6 22:41:05 CET 2020 Sandro Mani - 2.2.0-3 - Rebuild (proj, gdal) * Sat Oct 24 2020 Markus Neteler 2.2.0-2 - add laszip-devel requirement to PDAL-devel (fixes BZ #1891154) - activated bash completion * Sat Oct 17 2020 Markus Neteler 2.2.0-1 - new upstream version * Mon Jul 27 2020 Fedora Release Engineering - 2.1.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jun 03 2020 Markus Neteler 2.1.0-8 - enable EPEL8 compilation by dropping sphinx docs for now * Wed Jun 03 2020 Jonathan Wakely - 2.1.0-7 - Rebuilt for Boost 1.73 * Sat May 30 2020 Markus Neteler 2.1.0-6 - drop unversioned symbolic links of libpdal_plugin_* in PDAL-devel (BZ#1841616) * Wed May 27 2020 Sandro Mani 2.1.0-5 - license statements updates * Sat May 23 2020 Sandro Mani 2.1.0-4 - major cleanup, see BZ#1838686 * Fri May 22 2020 Markus Neteler 2.1.0-3 - commented out vertical datums due to size for initial Fedora upload - cleanup upon review by Sandro Mani, BZ#1838686 * Thu May 14 2020 Markus Neteler 2.1.0-2 - fix qhull package name for EPEL 8 * Wed Apr 01 2020 Markus Neteler 2.1.0-1 - New 2.1.0 upstream release * Wed Sep 18 2019 Markus Neteler 2.0.1-2 - removed unused points2grid dependency * Mon Sep 16 2019 Markus Neteler 2.0.1-1 - New 2.0.1 upstream release - PCL support dropped as per release notes - added BuildRequires gcc-c++ as per RHBZ #1551327 (removing gcc and gcc-c++ from default buildroot) - further dependency cleanup * Mon Apr 01 2019 Markus Neteler 1.8.0-2 - fix for "nothing provides pkgconfig(geos) needed by PDAL-devel..." * Wed Nov 07 2018 Markus Neteler 1.8.0-1 - New 1.8.0 upstream release * Mon May 14 2018 Markus Neteler 1.7.2-2 - New 1.7.2 upstream release - hexer no longer required * Thu May 10 2018 Markus Neteler 1.7.2-1 - New 1.7.2RC2 upstream release - enforce python3 - set -DBUILD_PLUGIN_PYTHON:BOOL=FALSE to avoid numpy detection error * Fri Apr 20 2018 Markus Neteler 1.7.0-1 - New 1.7.0 upstream release - patch for https://github.com/PDAL/PDAL/issues/1899 - patch using https://github.com/PDAL/PDAL/pull/1900 * Thu Dec 14 2017 Markus Neteler 1.6.0-3 - fix pkgconfig (must be in -devel) * Sat Oct 28 2017 Markus Neteler 1.6.0 - New 1.6.0 upstream release * Tue Oct 24 2017 Markus Neteler 1.5.0 - New 1.5.0 upstream release - vertical datums added * Sun Jan 8 2017 Markus Neteler 1.4.0 - New upstream release - configure tweaks * Sat Jun 20 2015 Devrim GUNDUZ 0.9.9-4 - Change build type from Debug to Release * Mon Apr 20 2015 Devrim GUNDUZ 0.9.9-3 - Various updates: - Build with hexer support - Own directories in devel subpackage - omit deprecated Group: tags and %%clean section - Use better macros for make and cmake - use %%{?_isa} macro in subpkg dependencies - have %%build section envoke 'make' - Update %%install section - Improve cmake build parameters - Use %%license macro - Add %%doc - Get rid of BuildRoot definition - No need to cleanup buildroot during %%install - Remove %%defattr - Run ldconfig - Add PostgreSQL and PointCloud support - Add Python and PCL plugins - Build with GEOS and OPENNI2 support - Update BR and Requires - Add -libs subpackage, and move related files there * Fri Apr 10 2015 Devrim GUNDUZ 0.9.9-2 - Add -devel subpackage, and move related files there. * Fri Apr 10 2015 Devrim GUNDUZ 0.9.9-1 - Update to 0.9.9 * Tue Mar 10 2015 Devrim GUNDUZ 0.9.8-3 - Add support for more stuff. * Sun Mar 8 2015 Devrim GUNDUZ 0.9.8-2 - Rebuild with new GDAL and the new build points2grid. * Tue Jan 13 2015 Devrim GUNDUZ 0.9.8-1 - Initial packaging