]>
Commit | Line | Data |
---|---|---|
db50481d JB |
1 | # TODO: package libcuckoo-gdb-printers |
2 | Summary: High-performance, compact hash table | |
3 | Summary(pl.UTF-8): Wydajna, zwarta tablica asocjacyjna | |
4 | Name: libcuckoo | |
e8d7f1f9 JB |
5 | Version: 0.3.1 |
6 | Release: 1 | |
db50481d JB |
7 | License: Apache v2.0 |
8 | Group: Libraries | |
9 | #Source0Download: https://github.com/efficient/libcuckoo/releases | |
10 | Source0: https://github.com/efficient/libcuckoo/archive/v%{version}/%{name}-%{version}.tar.gz | |
e8d7f1f9 | 11 | # Source0-md5: 9652ec37186cb95ff253178b26f444c5 |
db50481d JB |
12 | URL: https://github.com/efficient/libcuckoo |
13 | BuildRequires: cmake >= 3.1.0 | |
14 | BuildRequires: libstdc++-devel >= 6:4.7 | |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | libcuckoo provides a high-performance, compact hash table that allows | |
20 | multiple concurrent reader and writer threads. | |
21 | ||
22 | %description -l pl.UTF-8 | |
23 | libcuckoo dostarcza wydajną, zwartą tablicę asocjacyjną, pozwalającą | |
24 | na wiele wątków czytających i piszących. | |
25 | ||
26 | %package devel | |
27 | Summary: High-performance, compact hash table | |
28 | Summary(pl.UTF-8): Wydajna, zwarta tablica asocjacyjna | |
29 | Group: Development/Libraries | |
db50481d JB |
30 | |
31 | %description devel | |
32 | libcuckoo provides a high-performance, compact hash table that allows | |
33 | multiple concurrent reader and writer threads. | |
34 | ||
35 | %description devel -l pl.UTF-8 | |
36 | libcuckoo dostarcza wydajną, zwartą tablicę asocjacyjną, pozwalającą | |
37 | na wiele wątków czytających i piszących. | |
38 | ||
39 | %prep | |
40 | %setup -q | |
41 | ||
42 | %build | |
43 | install -d build | |
44 | cd build | |
45 | %cmake .. | |
46 | ||
47 | %{__make} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} -C build install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
56 | cp -pr examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files devel | |
62 | %defattr(644,root,root,755) | |
63 | %doc LICENSE README.md | |
64 | %{_includedir}/libcuckoo | |
65 | %{_includedir}/libcuckoo-c | |
66 | %{_datadir}/cmake/libcuckoo | |
67 | %{_examplesdir}/%{name}-%{version} |