pdal/pdal.spec

101 lines
2.7 KiB
RPMSpec
Raw Normal View History

Name: pdal
Version: 2.7.1
Release: 1mamba
Summary: Point Data Abstraction Library, GDAL for point cloud data
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pdal.io/
Source: https://github.com/PDAL/PDAL.git/%{version}/PDAL-%{version}.tar.bz2
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libcurl-devel
BuildRequires: libgcc
BuildRequires: libgdal-devel
BuildRequires: libgeotiff-devel
BuildRequires: libopenssl-devel
BuildRequires: libpostgresql-devel
BuildRequires: libproj-devel
BuildRequires: libstdc++6-devel
BuildRequires: libunwind-devel
BuildRequires: libxml2-devel
BuildRequires: libz-devel
BuildRequires: libzstd-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
PDAIL is the Point Data Abstraction Library, GDAL for point cloud data.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q -n PDAL-%{version}
%build
%cmake \
-DBUILD_PLUGIN_PGPOINTCLOUD=ON \
-DWITH_COMPLETION=ON
%cmake_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%cmake_install
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/pdal
%{_bindir}/pdal-config
%{_datadir}/bash-completion/completions/pdal
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libpdalcpp.so.*
%{_libdir}/libpdal_plugin_kernel_fauxplugin.so.*
%{_libdir}/libpdal_plugin_reader_pgpointcloud.so.*
%{_libdir}/libpdal_plugin_writer_pgpointcloud.so.*
%doc LICENSE.txt
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/pdal
%{_includedir}/pdal/*
%{_libdir}/libpdal_plugin_kernel_fauxplugin.so
%{_libdir}/libpdal_plugin_reader_pgpointcloud.so
%{_libdir}/libpdal_plugin_writer_pgpointcloud.so
%{_libdir}/libpdalcpp.so
%{_libdir}/pkgconfig/pdal.pc
%dir %{_libdir}/cmake/PDAL
%{_libdir}/cmake/PDAL/PDAL*.cmake
%{_libdir}/cmake/PDAL/pluginmacros.cmake
%doc README.md
%changelog
* Mon May 06 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.1-1mamba
- package created using the webbuild interface