blob: 27ab44bff371f98214bb387165bc9dc6302ad493 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
Name: nanoflann
Version: 1.9.0
Release: 1
Summary: C++ header-only library for KD-Trees
License: BSD-3-Clause
URL: https://github.com/jlblancoc/nanoflann
%global github https://github.com/jlblancoc/nanoflann
Source: %{github}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
# Header-only library - no debug package needed
%global debug_package %{nil}
%description
nanoflann is a C++11 header-only library for building KD-Trees of
datasets with different topologies: R2, R3 (point clouds), SO(2)
and SO(3) (2D and 3D rotation groups).
Key features:
- Fast query times and low memory usage
- Support for different distance metrics (L1, L2)
- No dependencies beyond standard library
%package devel
Summary: %{summary}
Provides: %{name} = %{version}-%{release}
Provides: %{name}-static = %{version}-%{release}
BuildArch: noarch
%description devel
Development files for nanoflann library. This is a header-only library.
%prep
%autosetup -n %{name}-%{version}
%build
%cmake -DNANOFLANN_BUILD_EXAMPLES=OFF \
-DNANOFLANN_BUILD_TESTS=OFF
%install
%cmake_install
%files devel
%doc README.md CHANGELOG.md
%license COPYING
%{_includedir}/%{name}.hpp
%{_datadir}/cmake/%{name}/
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Tue Mar 25 2025 Claude Code <noreply@anthropic.com> - 1.9.0-1
- Initial package for openEuler 24.03
- Based on skill_compile_third_party_libs.md compilation experience
|