diff --git a/README.md b/README.md index be2cfa4..e230533 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # pdal +PDAIL is the Point Data Abstraction Library, GDAL for point cloud data. + diff --git a/pdal.spec b/pdal.spec new file mode 100644 index 0000000..d3a5e82 --- /dev/null +++ b/pdal.spec @@ -0,0 +1,100 @@ +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 +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 2.7.1-1mamba +- package created using the webbuild interface