File pgvector.spec of Package failed_pgvector_postgresql14

#
# 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 Software Foundation.
#
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

Name:           pgvector
Version:        0.8.0
Release:        0
Summary:        Vector extension for PostgreSQL
License:        PostgreSQL
Group:          Productivity/Databases/Servers
URL:            https://github.com/pgvector/pgvector
Source:         %{name}-%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRequires:  postgresql14-devel
%if 0%{?suse_version}
BuildRequires:  pkgconfig(systemd)
%endif
%description
Adds vector data type support to PostgreSQL.

%prep
%setup -q

%build
export CFLAGS="%{optflags} -march=rv64"
make USE_PGXS=1 %{?_smp_mflags}

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

%files
%doc README.md
%license LICENSE
%{_libdir}/postgresql/bitcode/pgvector.index.bc
%{_libdir}/postgresql/bitcode/pgvector/*.bc
%{_libdir}/postgresql/pgvector.so

%changelog
* Thu Mar 30 2023 Your Name <youremail@example.com> - 0.8.0-0
- Initial package
openSUSE Build Service is sponsored by