import CS pgvector-0.6.2-1.module_el9+1109+d821d6e7

This commit is contained in:
eabdullin 2024-10-04 14:39:40 +00:00
commit eb25652a1c
3 changed files with 43 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
SOURCES/v0.6.2.tar.gz

1
.pgvector.metadata Normal file
View File

@ -0,0 +1 @@
ebcc191bc52367e3d7b2bfd97d00b58127c26662 SOURCES/v0.6.2.tar.gz

41
SPECS/pgvector.spec Executable file
View File

@ -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 <fjanus@redhat.com> - 0.6.2-1
- Initial packaging