]>
Commit | Line | Data |
---|---|---|
fc0870e2 | 1 | Summary: Raft consensus protocol library |
ffa54267 | 2 | Summary(pl.UTF-8): Biblioteka protokołu consensusu Raft |
fc0870e2 | 3 | Name: raft |
0daeb542 | 4 | Version: 0.9.25 |
ffa54267 JB |
5 | Release: 2 |
6 | License: LGPL v3 with exception | |
fc0870e2 | 7 | Group: Libraries |
ffa54267 | 8 | #Source0Download: https://github.com/canonical/raft/releases |
0daeb542 JR |
9 | Source0: https://github.com/canonical/raft/archive/v%{version}/%{name}-%{version}.tar.gz |
10 | # Source0-md5: 2da527e4d935d94b84a7e6c0487c7f00 | |
fc0870e2 | 11 | URL: https://github.com/canonical/raft |
ffa54267 | 12 | BuildRequires: autoconf >= 2.60 |
fc0870e2 | 13 | BuildRequires: automake |
ffa54267 JB |
14 | BuildRequires: libtool >= 2:2 |
15 | BuildRequires: libuv-devel >= 1.8.0 | |
16 | BuildRequires: pkgconfig | |
17 | BuildRequires: rpmbuild(macros) >= 1.752 | |
18 | Requires: libuv >= 1.8.0 | |
fc0870e2 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | Fully asynchronous C implementation of the Raft consensus protocol. | |
23 | ||
24 | The library has modular design: its core part implements only the core | |
25 | Raft algorithm logic, in a fully platform independent way. On top of | |
26 | that, a pluggable interface defines the I/O implementation for | |
27 | networking (send/receive RPC messages) and disk persistence (store log | |
28 | entries and snapshots). | |
29 | ||
ffa54267 JB |
30 | %description -l pl.UTF-8 |
31 | W pełni asynchroniczna implementacja w C protokołu consensusu Raft. | |
32 | ||
33 | Biblioteka jest zaprojektowana modułowo: główna część implementuje | |
34 | tylko podstawową logikę algorytmu Raft w sposób w pełni niezależny od | |
35 | platformy. Powyżej niej rozszerzalny interfejs definiuje implementację | |
36 | we/wy warstwy sieciowej (wysyłanie/odbiór komunikatów RPC) oraz | |
37 | przechowywanie na dysku (zapisywanie wpisów logu oraz migawek). | |
38 | ||
fc0870e2 | 39 | %package devel |
ffa54267 JB |
40 | Summary: Header files for Raft library |
41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Raft | |
fc0870e2 | 42 | Group: Development/Libraries |
43 | Requires: %{name} = %{version}-%{release} | |
fc0870e2 | 44 | |
45 | %description devel | |
ffa54267 JB |
46 | This package contains development files for the Raft library. |
47 | ||
48 | %description devel -l pl.UTF-8 | |
49 | Ten pakiet zawiera biblioteki nagłówkowe biblioteki Raft. | |
fc0870e2 | 50 | |
51 | %package static | |
ffa54267 JB |
52 | Summary: Static libraries for Raft library |
53 | Summary(pl.UTF-8): Statyczne biblioteki Raft | |
fc0870e2 | 54 | Group: Development/Libraries |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
ffa54267 JB |
58 | This package contains static Raft library. |
59 | ||
60 | %description static -l pl.UTF-8 | |
61 | Ten pakiet zawiera statyczną bibliotekę Raft. | |
62 | ||
63 | %package apidocs | |
64 | Summary: API documentation for Raft library | |
65 | Summary(pl.UTF-8): Dokumentacja API biblioteki Raft | |
66 | Group: Documentation | |
67 | %{?noarchpackage} | |
68 | ||
69 | %description apidocs | |
70 | API documentation for Raft library. | |
71 | ||
72 | %description apidocs -l pl.UTF-8 | |
73 | Dokumentacja API biblioteki Raft. | |
fc0870e2 | 74 | |
75 | %prep | |
76 | %setup -q | |
77 | ||
78 | %build | |
79 | %{__libtoolize} | |
80 | %{__aclocal} | |
81 | %{__autoconf} | |
82 | %{__automake} | |
fc0870e2 | 83 | %configure \ |
84 | --disable-silent-rules | |
ffa54267 | 85 | |
fc0870e2 | 86 | %{__make} |
87 | ||
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %{__make} install \ | |
92 | DESTDIR=$RPM_BUILD_ROOT | |
93 | ||
ffa54267 JB |
94 | # obsoleted by pkg-config |
95 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libraft.la | |
96 | ||
fc0870e2 | 97 | %clean |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post -p /sbin/ldconfig | |
101 | %postun -p /sbin/ldconfig | |
102 | ||
103 | %files | |
104 | %defattr(644,root,root,755) | |
ffa54267 | 105 | %doc AUTHORS LICENSE README.md |
fc0870e2 | 106 | %attr(755,root,root) %{_libdir}/libraft.so.*.*.* |
107 | %attr(755,root,root) %ghost %{_libdir}/libraft.so.0 | |
108 | ||
109 | %files devel | |
110 | %defattr(644,root,root,755) | |
111 | %attr(755,root,root) %{_libdir}/libraft.so | |
fc0870e2 | 112 | %{_includedir}/raft.h |
ffa54267 | 113 | %{_includedir}/raft |
fc0870e2 | 114 | %{_pkgconfigdir}/raft.pc |
115 | ||
116 | %files static | |
117 | %defattr(644,root,root,755) | |
118 | %{_libdir}/libraft.a | |
ffa54267 JB |
119 | |
120 | %files apidocs | |
121 | %defattr(644,root,root,755) | |
122 | %doc docs/build/{_static,*.html,*.js} |