-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathlibmilvus.spec.rpkg
60 lines (48 loc) · 1.01 KB
/
libmilvus.spec.rpkg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Name: libmilvus
Version: 2.0.0
Release: 1%{?dist}
Summary: C++ client for milvus 2.0
Requires: openssl
BuildRequires: openssl-devel
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: which
BuildRequires: git
BuildRequires: wget
BuildRequires: gpg
%if "%{dist}" == ".el7"
BuildRequires: cmake3
%else
BuildRequires: cmake
%endif
License: Apache
URL: https://github.com/milvus-io/milvus-sdk-cpp
VCS: {{{ git_dir_vcs }}}
Source: {{{ git_dir_pack }}}
%description
C++ client for milvus 2.0
%prep
{{{ git_dir_setup_macro }}}
%build
mkdir -p build
cd build
cmake_command=cmake
if [ -x /usr/bin/cmake3 ] ; then
cmake_command=cmake3
fi
${cmake_command} -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=%{buildroot}%{_prefix} ..
make -j $(nproc)
%install
cd build
make install
%files
%{_libdir}/libmilvus_sdk.so
%package devel
Summary: C++ client headers for milvus 2.0
Requires: libmilvus
%description devel
C++ client headers for milvus 2.0
%files devel
%{_includedir}/milvus
%changelog
{{{ git_dir_changelog }}}