%global debug_package %{nil} Name: flatbush Version: 1.6.0 Release: 1%{?dist} Summary: Header-only C++ library implementing a packed Hilbert R-tree spatial index # LICENSE is MIT; it additionally embeds the Boost Software License 1.0 text # for the flatbush::detail::bit_cast snippet derived from Boost.Core bit.hpp. License: MIT AND BSL-1.0 URL: https://github.com/chusitoo/flatbush Source0: https://github.com/chusitoo/flatbush/archive/refs/tags/v%{version}.tar.gz BuildRequires: cmake BuildRequires: cmake-rpm-macros BuildRequires: gcc-c++ # Required for test suite. Not yet working, see %check section # BuildRequires: gtest %description %{summary} %package devel Provides: %{name}-static = %{version}-%{release} Summary: Header-only C++ library implementing a packed Hilbert R-tree spatial index %description devel Flatbush for C++ is a single-header library implementing a packed Hilbert R-tree algorithm for fast bounding-box and k-nearest-neighbor queries over 2D points and rectangles. It is a C++ adaptation of the Flatbush JS library. %prep %autosetup -p1 %{?date:-n %{name}-%{commit}} %build %cmake \ -DWITH_SPAN=OFF \ -DWITH_TESTS=OFF \ -DWITH_BENCHMARKS=OFF %cmake_build %install %cmake_install %check # Unfortunately, upstream fetches googletest instead of using system deps, so we cannot use tests here yet # (cmake -B build/tests -DWITH_TESTS=ON && cmake --build build/tests -j $(nproc) && ./build/tests/unit_test) # (cmake -B build/fuzz -DWITH_FUZZING=ON -DFUZZTEST_FUZZING_MODE=ON && cmake --build build/fuzz -j $(nproc) && ./build/fuzz/fuzz_test) %files devel %license LICENSE %doc README.md %{_includedir}/flatbush.h %{_datadir}/%{name}/ %changelog * Sat Oct 03 2026 Alexander Oberlaender - 1.6.0-1 - Initial Fedora spec for the flatbush header-only Hilbert R-tree library, a required dependency of valhalla.