commit eb25652a1cba6b45d29f0a935d875c9ecd53d903 Author: eabdullin Date: Fri Oct 4 14:39:40 2024 +0000 import CS pgvector-0.6.2-1.module_el9+1109+d821d6e7 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f2cc094 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/v0.6.2.tar.gz diff --git a/.pgvector.metadata b/.pgvector.metadata new file mode 100644 index 0000000..e221f84 --- /dev/null +++ b/.pgvector.metadata @@ -0,0 +1 @@ +ebcc191bc52367e3d7b2bfd97d00b58127c26662 SOURCES/v0.6.2.tar.gz diff --git a/SPECS/pgvector.spec b/SPECS/pgvector.spec new file mode 100755 index 0000000..72ccdcf --- /dev/null +++ b/SPECS/pgvector.spec @@ -0,0 +1,41 @@ +%global pname vector + +Name: pgvector +Version: 0.6.2 +Release: 1%{?dist} +Summary: Open-source vector similarity search for Postgres +License: PostgreSQL +URL: https://github.com/%{name}/%{name}/ +Source0: https://github.com/%{name}/%{name}/archive/refs/tags/v%{version}.tar.gz + +BuildRequires: make gcc +BuildRequires: postgresql-server-devel >= 16, postgresql-server-devel < 17 +%{?postgresql_module_requires} + +%description +Open-source vector similarity search for Postgres. Supports L2 distance, +inner product, and cosine distance + +%prep +%setup -q -n %{name}-%{version} + +%build +%make_build %{?_smp_mflags} + +%install +%make_install + +#Remove header file, we don't need it right now: +%{__rm} %{buildroot}/%{_includedir}/pgsql/server/extension/%{pname}/%{pname}.h + +%files +%doc README.md +%license LICENSE +%{_libdir}/pgsql/%{pname}.so +%{_datadir}/pgsql/extension//%{pname}.control +%{_datadir}/pgsql/extension/%{pname}*sql + +%changelog +* Mon Mar 25 2024 Filip Janus - 0.6.2-1 +- Initial packaging +