Name: vectorchord Version: 1.0.0 Release: 1 License: AGPLv3 Summary: Scalable, fast, and disk-friendly vector search in Postgres, the successor of pgvecto.rs URL: https://github.com/tensorchord/VectorChord %global debug_package %{nil} %define clang_version 16 %define rust_min_version 1.90 %if 0%{?rhel} != 9 BuildRequires: cargo >= %{rust_min_version} BuildRequires: rustfmt >= %{rust_min_version} %else # will curl in rustup BuildRequires: curl %endif BuildRequires: make BuildRequires: clang >= %{clang_version} BuildRequires: clang-devel >= %{clang_version} Source0: https://github.com/tensorchord/VectorChord/archive/refs/tags/%version.tar.gz %bcond pg13 0 %bcond pg14 0 %bcond pg15 0 %bcond pg16 0 %bcond pg17 0 %bcond pg18 0 %if %{with pg13} %package pg13 Summary: Scalable, fast, and disk-friendly vector search in Postgres, the successor of pgvecto.rs for PostgreSQL 13 BuildRequires: postgresql-server-devel >= 13, postgresql-server-devel < 14 %description pg13 VectorChord (vchord) is a PostgreSQL extension designed for scalable, high-performance, and disk-efficient vector similarity search. For PostgreSQL 13 %endif %if %{with pg14} %package pg14 Summary: Scalable, fast, and disk-friendly vector search in Postgres, the successor of pgvecto.rs for PostgreSQL 14 BuildRequires: postgresql-server-devel >= 14, postgresql-server-devel < 15 %description pg14 VectorChord (vchord) is a PostgreSQL extension designed for scalable, high-performance, and disk-efficient vector similarity search. For PostgreSQL 14 %endif %if %{with pg15} %package pg15 Summary: Scalable, fast, and disk-friendly vector search in Postgres, the successor of pgvecto.rs for PostgreSQL 15 BuildRequires: postgresql-server-devel >= 15, postgresql-server-devel < 16 %description pg15 VectorChord (vchord) is a PostgreSQL extension designed for scalable, high-performance, and disk-efficient vector similarity search. For PostgreSQL 15 %endif %if %{with pg16} %package pg16 Summary: Scalable, fast, and disk-friendly vector search in Postgres, the successor of pgvecto.rs for PostgreSQL 16 BuildRequires: postgresql-server-devel >= 16, postgresql-server-devel < 17 %description pg16 VectorChord (vchord) is a PostgreSQL extension designed for scalable, high-performance, and disk-efficient vector similarity search. For PostgreSQL 16 %endif %if %{with pg17} %package pg17 Summary: Scalable, fast, and disk-friendly vector search in Postgres, the successor of pgvecto.rs for PostgreSQL 17 BuildRequires: postgresql-server-devel >= 17, postgresql-server-devel < 18 %description pg17 VectorChord (vchord) is a PostgreSQL extension designed for scalable, high-performance, and disk-efficient vector similarity search. For PostgreSQL 17 %endif %if %{with pg18} %package pg18 Summary: Scalable, fast, and disk-friendly vector search in Postgres, the successor of pgvecto.rs for PostgreSQL 18 BuildRequires: postgresql-server-devel >= 18, postgresql-server-devel < 19 %description pg18 VectorChord (vchord) is a PostgreSQL extension designed for scalable, high-performance, and disk-efficient vector similarity search. For PostgreSQL 18 %endif %description VectorChord (vchord) is a PostgreSQL extension designed for scalable, high-performance, and disk-efficient vector similarity search. %prep %if 0%{?rhel} == 9 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.90.0 %endif %setup -n VectorChord-%{version} %build export PG_CONFIG=pg_config %if 0%{?rhel} == 9 source $HOME/.cargo/env export PATH="$HOME/.cargo/bin:$PATH" %endif cargo run -p xtask -- build %install %make_install %if %{with pg13} %files pg13 /usr/lib64/pgsql/vchord.so /usr/share/pgsql/extension/vchord.control /usr/share/pgsql/extension/vchord--0.1.0--0.2.0.sql /usr/share/pgsql/extension/vchord--0.2.0--0.2.1.sql /usr/share/pgsql/extension/vchord--0.2.1--0.2.2.sql /usr/share/pgsql/extension/vchord--0.2.2--0.3.0.sql /usr/share/pgsql/extension/vchord--0.3.0--0.4.0.sql /usr/share/pgsql/extension/vchord--0.4.0--0.4.1.sql /usr/share/pgsql/extension/vchord--0.4.1--0.4.2.sql /usr/share/pgsql/extension/vchord--0.4.2--0.4.3.sql /usr/share/pgsql/extension/vchord--0.4.3--0.5.0.sql /usr/share/pgsql/extension/vchord--0.5.0--0.5.1.sql /usr/share/pgsql/extension/vchord--0.5.1--0.5.2.sql /usr/share/pgsql/extension/vchord--0.5.2--0.5.3.sql /usr/share/pgsql/extension/vchord--0.5.3--1.0.0.sql /usr/share/pgsql/extension/vchord--1.0.0.sql %endif %if %{with pg14} %files pg14 /usr/lib64/pgsql/vchord.so /usr/share/pgsql/extension/vchord.control /usr/share/pgsql/extension/vchord--0.1.0--0.2.0.sql /usr/share/pgsql/extension/vchord--0.2.0--0.2.1.sql /usr/share/pgsql/extension/vchord--0.2.1--0.2.2.sql /usr/share/pgsql/extension/vchord--0.2.2--0.3.0.sql /usr/share/pgsql/extension/vchord--0.3.0--0.4.0.sql /usr/share/pgsql/extension/vchord--0.4.0--0.4.1.sql /usr/share/pgsql/extension/vchord--0.4.1--0.4.2.sql /usr/share/pgsql/extension/vchord--0.4.2--0.4.3.sql /usr/share/pgsql/extension/vchord--0.4.3--0.5.0.sql /usr/share/pgsql/extension/vchord--0.5.0--0.5.1.sql /usr/share/pgsql/extension/vchord--0.5.1--0.5.2.sql /usr/share/pgsql/extension/vchord--0.5.2--0.5.3.sql /usr/share/pgsql/extension/vchord--0.5.3--1.0.0.sql /usr/share/pgsql/extension/vchord--1.0.0.sql %endif %if %{with pg15} %files pg15 /usr/lib64/pgsql/vchord.so /usr/share/pgsql/extension/vchord.control /usr/share/pgsql/extension/vchord--0.1.0--0.2.0.sql /usr/share/pgsql/extension/vchord--0.2.0--0.2.1.sql /usr/share/pgsql/extension/vchord--0.2.1--0.2.2.sql /usr/share/pgsql/extension/vchord--0.2.2--0.3.0.sql /usr/share/pgsql/extension/vchord--0.3.0--0.4.0.sql /usr/share/pgsql/extension/vchord--0.4.0--0.4.1.sql /usr/share/pgsql/extension/vchord--0.4.1--0.4.2.sql /usr/share/pgsql/extension/vchord--0.4.2--0.4.3.sql /usr/share/pgsql/extension/vchord--0.4.3--0.5.0.sql /usr/share/pgsql/extension/vchord--0.5.0--0.5.1.sql /usr/share/pgsql/extension/vchord--0.5.1--0.5.2.sql /usr/share/pgsql/extension/vchord--0.5.2--0.5.3.sql /usr/share/pgsql/extension/vchord--0.5.3--1.0.0.sql /usr/share/pgsql/extension/vchord--1.0.0.sql %endif %if %{with pg16} %files pg16 /usr/lib64/pgsql/vchord.so /usr/share/pgsql/extension/vchord.control /usr/share/pgsql/extension/vchord--0.1.0--0.2.0.sql /usr/share/pgsql/extension/vchord--0.2.0--0.2.1.sql /usr/share/pgsql/extension/vchord--0.2.1--0.2.2.sql /usr/share/pgsql/extension/vchord--0.2.2--0.3.0.sql /usr/share/pgsql/extension/vchord--0.3.0--0.4.0.sql /usr/share/pgsql/extension/vchord--0.4.0--0.4.1.sql /usr/share/pgsql/extension/vchord--0.4.1--0.4.2.sql /usr/share/pgsql/extension/vchord--0.4.2--0.4.3.sql /usr/share/pgsql/extension/vchord--0.4.3--0.5.0.sql /usr/share/pgsql/extension/vchord--0.5.0--0.5.1.sql /usr/share/pgsql/extension/vchord--0.5.1--0.5.2.sql /usr/share/pgsql/extension/vchord--0.5.2--0.5.3.sql /usr/share/pgsql/extension/vchord--0.5.3--1.0.0.sql /usr/share/pgsql/extension/vchord--1.0.0.sql %endif %if %{with pg17} %files pg17 /usr/lib64/pgsql/vchord.so /usr/share/pgsql/extension/vchord.control /usr/share/pgsql/extension/vchord--0.1.0--0.2.0.sql /usr/share/pgsql/extension/vchord--0.2.0--0.2.1.sql /usr/share/pgsql/extension/vchord--0.2.1--0.2.2.sql /usr/share/pgsql/extension/vchord--0.2.2--0.3.0.sql /usr/share/pgsql/extension/vchord--0.3.0--0.4.0.sql /usr/share/pgsql/extension/vchord--0.4.0--0.4.1.sql /usr/share/pgsql/extension/vchord--0.4.1--0.4.2.sql /usr/share/pgsql/extension/vchord--0.4.2--0.4.3.sql /usr/share/pgsql/extension/vchord--0.4.3--0.5.0.sql /usr/share/pgsql/extension/vchord--0.5.0--0.5.1.sql /usr/share/pgsql/extension/vchord--0.5.1--0.5.2.sql /usr/share/pgsql/extension/vchord--0.5.2--0.5.3.sql /usr/share/pgsql/extension/vchord--0.5.3--1.0.0.sql /usr/share/pgsql/extension/vchord--1.0.0.sql %endif %if %{with pg18} %files pg18 /usr/lib64/pgsql/vchord.so /usr/share/pgsql/extension/vchord.control /usr/share/pgsql/extension/vchord--0.1.0--0.2.0.sql /usr/share/pgsql/extension/vchord--0.2.0--0.2.1.sql /usr/share/pgsql/extension/vchord--0.2.1--0.2.2.sql /usr/share/pgsql/extension/vchord--0.2.2--0.3.0.sql /usr/share/pgsql/extension/vchord--0.3.0--0.4.0.sql /usr/share/pgsql/extension/vchord--0.4.0--0.4.1.sql /usr/share/pgsql/extension/vchord--0.4.1--0.4.2.sql /usr/share/pgsql/extension/vchord--0.4.2--0.4.3.sql /usr/share/pgsql/extension/vchord--0.4.3--0.5.0.sql /usr/share/pgsql/extension/vchord--0.5.0--0.5.1.sql /usr/share/pgsql/extension/vchord--0.5.1--0.5.2.sql /usr/share/pgsql/extension/vchord--0.5.2--0.5.3.sql /usr/share/pgsql/extension/vchord--0.5.3--1.0.0.sql /usr/share/pgsql/extension/vchord--1.0.0.sql %endif %changelog * Sat Dec 20 2025 Keith Valin - 1.0.0-1 - Initial workings