forked from io-sea/libiosea-hash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibiosea-hash.spec-in.cmake
68 lines (50 loc) · 1.81 KB
/
libiosea-hash.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
%define sourcename @CPACK_SOURCE_PACKAGE_FILE_NAME@
%global dev_version %{lua: extraver = string.gsub('@LIBIOSEA-HASH_EXTRA_VERSION@', '%-', '.'); print(extraver) }
Name: libiosea-hash
Version: @LIBIOSEA-HASH_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/libiosea-hash
Source: %{sourcename}.tar.gz
BuildRequires: gcc cmake
Provides: %{name} = %{version}-%{release}
%description
The libiosea-hashi contains hashing functions. It is intended to be
used inside the IO-SEA namespace related tools and libs.
%package devel
Summary: Development file for the library libiosea-hash
Group: Development/Libraries
Requires: %{name} = %{version}-%{release} pkgconfig
Provides: %{name}-devel = %{version}-%{release}
%description devel
The libiosea-hashi contains hashing functions. It is intended to be
used inside the IO-SEA namespace related tools and libs.
%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
mkdir -p %{buildroot}%{_sysconfdir}/iosea.d
install -m 644 include/iosea/hashlib.h %{buildroot}%{_includedir}/iosea
install -m 644 libiosea-hash.pc %{buildroot}%{_libdir}/pkgconfig
install -m 644 hash/libhashkvs.so %{buildroot}%{_libdir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_libdir}/libhashkvs.so*
%files devel
%defattr(-,root,root)
%{_includedir}/iosea/hashlib.h
%{_libdir}/pkgconfig/libiosea-hash.pc
%changelog
* Wed Nov 3 2021 Philippe DENIEL <philippe.deniel@cea.fr> 1.3.0
- Better layering between kvsns, kvsal aand extstore.