%global debug_package %{nil} %define _build_id_links none %if 0%{?rhel} && 0%{?rhel} < 10 %global gcc_toolset_enable source /opt/rh/gcc-toolset-15/enable %else %global gcc_toolset_enable source /usr/lib/gcc-toolset/15-env.source %endif Name: valkey-search Version: 1.2.0 Release: 1%{?dist} Summary: Vector Similarity Search engine License: BSD-3-Clause AND MIT URL: https://github.com/valkey-io/%{name}/ Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Source1: makedeps.sh Source2: %{name}-deps-%{version}.tgz # fix check for cached sources Patch0: %{name}-offline.patch BuildRequires: valkey-devel >= 9.0 BuildRequires: cmake >= 3.17 BuildRequires: gcc-toolset-15-gcc BuildRequires: gcc-toolset-15-gcc-c++ BuildRequires: gcc-toolset-15-gcc-plugin-annobin BuildRequires: openssl-devel BuildRequires: systemd-devel Requires: valkey >= 9.0 Supplements: valkey Provides: bundled(highwayhash) Provides: bundled(googletest) Provides: bundled(google-benchmark) Provides: bundled(grpc) = 1.70.1 Provides: bundled(hdrhistogram_c) Provides: bundled(hnswlib) Provides: bundled(simsimd) Provides: bundled(snowball) Provides: bundled(icu) %description valkey-search is a high-performance Vector Similarity Search engine optimized for AI-driven workloads. It delivers single-digit millisecond latency and high QPS, capable of handling billions of vectors with over 99% recall. %prep %setup -q -n %{name}-%{version} -a2 %patch -P0 -p1 -b .offline : Configuration file cat << EOF | tee search.conf loadmodule %{_libdir}/valkey/modules/search.so EOF : submodules list grep -E '(github.com|"v)' submodules/CMakeLists.txt %build %{gcc_toolset_enable} ./build.sh --verbose %install install -Dpm755 .build-release/search.so %{buildroot}%{_libdir}/valkey/modules/search.so install -Dpm640 search.conf %{buildroot}%{_sysconfdir}/valkey/search.conf %files %attr(0640, valkey, root) %config(noreplace) %{_sysconfdir}/valkey/search.conf %{_libdir}/valkey/modules/search.so %changelog %autochangelog