File knowhere.spec of Package knowhere

#
# spec file for package knowhere
#
# Copyright (c) 2024 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:           knowhere
Version:        v2.3.7
Release:        0
Summary:        open-source vector search engine
License:        Apache-2.0
URL:            https://github.com/zilliztech/knowhere
Source0:        %{name}-%{version}.tar
Patch0:         make-knowhere-available-for-other-libraries.patch
BuildRequires:  cmake
BuildRequires:  double-conversion-devel
BuildRequires:  fmt-9-devel
BuildRequires:  folly-devel
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  gflags-devel
BuildRequires:  glog-devel = 0.5.0
BuildRequires:  libaio-devel
BuildRequires:  libboost_context-devel
BuildRequires:  libboost_filesystem-devel
BuildRequires:  libboost_program_options-devel
BuildRequires:  libboost_regex-devel
BuildRequires:  libboost_system-devel
BuildRequires:  libboost_thread-devel
BuildRequires:  libbz2-devel
BuildRequires:  libcurl-devel
BuildRequires:  libdwarf-devel
BuildRequires:  libdwarf-devel
BuildRequires:  libevent-devel
BuildRequires:  libfolly0
BuildRequires:  liblz4-devel
BuildRequires:  libsodium-devel
BuildRequires:  libunwind-devel
BuildRequires:  liburing-devel
BuildRequires:  ninja
BuildRequires:  nlohmann_json-devel
BuildRequires:  openblas-devel
BuildRequires:  openssl-devel
BuildRequires:  opentelemetry-cpp-devel
BuildRequires:  prometheus-cpp-devel
BuildRequires:  snappy-devel
BuildRequires:  xz-devel
BuildRequires:  zlib-devel

%description
Knowhere is an open-source vector search engine, integrating FAISS, HNSW, etc.

%package devel
Summary:        open-source vector search engine

%description devel
Knowhere is an open-source vector search engine, integrating FAISS, HNSW, etc.

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%cmake \
   -DWITH_LIGHT=ON \
   %{nil}

%cmake_build

%install
%cmake_install

%files
%license LICENSE
%doc README.md

%files devel
%{_includedir}/%{name}
%{_libdir}/libknowhere.so
%{_libdir}/cmake/knowhere

%changelog
openSUSE Build Service is sponsored by