-
Notifications
You must be signed in to change notification settings - Fork 1
/
libm0common.spec-in.cmake
72 lines (54 loc) · 1.95 KB
/
libm0common.spec-in.cmake
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
61
62
63
64
65
66
67
68
69
70
71
72
%define sourcename @CPACK_SOURCE_PACKAGE_FILE_NAME@
%global dev_version %{lua: extraver = string.gsub('@LIBM0COMMON_EXTRA_VERSION@', '%-', '.'); print(extraver) }
Name: libm0common
Version: @LIBM0COMMON_BASE_VERSION@
Release: 0%{dev_version}%{?dist}
Summary: Library to access to a namespace inside a KVS
License: LGPLv3
Group: Development/Libraries
Url: http://github.com/phdeniel/libm0common
Source: %{sourcename}.tar.gz
BuildRequires: cmake libini_config-devel
BuildRequires: gcc
Provides: %{name} = %{version}-%{release}
Requires: %{name} = %{version}-%{release} cortx-motr
Provides: %{name} = %{version}-%{release}
%description
the libm0common provides a few functions that wraps some calls
from the MOTR API. It is used by KVSAL/MOTR and EXTSTORE/MOTR inside
the IO-SEA namespace tools.
%package devel
Summary: Development file for the library libextstore
Group: Development/Libraries
Requires: %{name} = %{version}-%{release} pkgconfig
Provides: %{name}-devel = %{version}-%{release}
%description devel
the libm0common provides a few functions that wraps some calls
from the MOTR API. It is used by KVSAL/MOTR and EXTSTORE/MOTR inside
the IO-SEA namespace tools.
%global debug_package %{nil}
%prep
%setup -q -n %{sourcename}
%build
cmake .
make %{?_smp_mflags} || make %{?_smp_mflags} || make
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_libdir}/pkgconfig
mkdir -p %{buildroot}%{_includedir}/iosea
install -m 644 motr/libm0common.so %{buildroot}%{_libdir}
install -m 644 libm0common.pc %{buildroot}%{_libdir}/pkgconfig
install -m 644 include/iosea/m0common.h %{buildroot}%{_includedir}/iosea
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_libdir}/libm0common.so*
%files devel
%defattr(-,root,root)
%{_libdir}/pkgconfig/libm0common.pc
%{_includedir}/iosea/m0common.h
%changelog
* Wed Nov 3 2021 Philippe DENIEL <[email protected]> 1.3.0
- Better layering between kvsns, kvsal aand extstore.