File pgvector.spec of Package failed_pgvector_postgresql17

#
# spec file for package pgvector
#
# Copyright (c) 2025 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           pgvector
Version:        0.8.0
Release:        0
Summary:        Open-source vector similarity search for Postgres
License:        PostgreSQL
Group:          Productivity/Databases/Servers
URL:            https://github.com/pgvector/pgvector
Source0:        %{name}-%{version}.tar.gz
BuildRequires:  postgresql17-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Open-source vector similarity search for Postgres

%prep
%setup -q

%build
make USE_PGXS=1 %{?_smp_mflags}

%install
make USE_PGXS=1 DESTDIR=%{buildroot} install

%files
%defattr(-,root,root)
%doc README.md
%{_libdir}/postgresql17/bitcode/%{name}.bc.gz
%{_libdir}/postgresql17/bitcode/%{name}_int.bc.gz
%{_libdir}/postgresql17/bitcode/%{name}_float4.bc.gz
%{_libdir}/postgresql17/bitcode/%{name}_float8.bc.gz
%{_libdir}/postgresql17/%{name}.so

%changelog
* Tue Aug 20 2025 - opensuse-packaging@opensuse.org
- initial package of pgvector 0.8.0
openSUSE Build Service is sponsored by