File pointcloud.spec of Package pointcloud
#
# spec file for package pointcloud
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define pg_name @BUILD_FLAVOR@%{nil}
%define ext_name pointcloud
Name: %{pg_name}-%{ext_name}
Version: 1.2.5
Release: 0
Summary: A PostgreSQL extension for storing point cloud (LIDAR) data
License: BSD-2-Clause
Group: Productivity/Databases/Servers
URL: https://github.com/pgpointcloud/pointcloud/
Source: https://github.com/pgpointcloud/pointcloud/archive/v%{version}.tar.gz
BuildRequires: %{pg_name}-llvmjit-devel
BuildRequires: %{pg_name}-server-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: cunit-devel
BuildRequires: fdupes
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: laszip-devel
BuildRequires: libght-devel
BuildRequires: libxml2-devel
BuildRequires: pkgconfig
%{pg_version_from_name}
%{pg_server_requires}
%if "%{pg_name}" == ""
ExclusiveArch: do_not_build
%endif
%description
pointcloud is an extension for storing point cloud data (LIDAR) into postgresql
Activate the pointcloud extension: CREATE EXTENSION pointcloud
The pointcloud_postgis extension adds functions that allow you to use PostgreSQL
Pointcloud with PostGIS, converting PcPoint and PcPatch to Geometry and doing
spatial filtering on point cloud data. The pointcloud_postgis extension depends
on both the postgis and pointcloud extensions, so they must be installed first:
CREATE EXTENSION postgis;
CREATE EXTENSION pointcloud;
CREATE EXTENSION pointcloud_postgis;
See https://github.com/pgpointcloud/pointcloud for example and howtos.
%prep
%autosetup -p1 -n %{ext_name}-%{version}
%build
autoreconf -fiv
%configure --without-lazperf
%make_build
%install
%make_install
%fdupes -s %{buildroot}/%{pg_config_sharedir}/extension/
%fdupes -s %{buildroot}/%{pg_config_sharedir}/contrib/
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license COPYRIGHT
%doc NEWS README.md
%{pg_config_pkglibdir}/*
%{pg_config_sharedir}/extension/%{ext_name}*
%changelog