summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-03-26 13:52:58 +0000
committerCoprDistGit <infra@openeuler.org>2026-03-26 13:52:58 +0000
commit606ef8b6e7095f91b0bfe9a28e4cc2e6443c0fdd (patch)
treed8901d59fee9b2e05c364daeb6fc3a71480e8503
parent1bb13054474f0ffc427adf84ff298e413d6f539a (diff)
automatic import of nanoflann
-rw-r--r--.gitignore1
-rw-r--r--nanoflann.spec55
-rw-r--r--sources1
3 files changed, 57 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..539df60 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/nanoflann-1.9.0.tar.gz
diff --git a/nanoflann.spec b/nanoflann.spec
new file mode 100644
index 0000000..27ab44b
--- /dev/null
+++ b/nanoflann.spec
@@ -0,0 +1,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
diff --git a/sources b/sources
new file mode 100644
index 0000000..1c716e4
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+ffd8a26b95520011340b8bb696e78194 nanoflann-1.9.0.tar.gz