Initial import

Resolves: RHEL-34669
This commit is contained in:
Filip Janus 2024-04-29 11:09:22 +02:00
parent 4402cfeda1
commit bd12d4dba2
3 changed files with 43 additions and 0 deletions

1
.gitignore vendored Normal file → Executable file
View File

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

41
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

1
sources Executable file
View File

@ -0,0 +1 @@
SHA512 (v0.6.2.tar.gz) = 745ec77d6540a01a867e0b44964c583ff17b78749ea2b2c8555d7f5605d4f0956d68b921e99a03317e1c30fb4ba5f1b4426a8a06fa7e28f1b6ae365d8a41a661