]> git.pld-linux.org Git - packages/raft.git/blame - raft.spec
- pl, updated dependencies, drop .la file
[packages/raft.git] / raft.spec
CommitLineData
fc0870e2 1Summary: Raft consensus protocol library
ffa54267 2Summary(pl.UTF-8): Biblioteka protokołu consensusu Raft
fc0870e2 3Name: raft
0daeb542 4Version: 0.9.25
ffa54267
JB
5Release: 2
6License: LGPL v3 with exception
fc0870e2 7Group: Libraries
ffa54267 8#Source0Download: https://github.com/canonical/raft/releases
0daeb542
JR
9Source0: https://github.com/canonical/raft/archive/v%{version}/%{name}-%{version}.tar.gz
10# Source0-md5: 2da527e4d935d94b84a7e6c0487c7f00
fc0870e2 11URL: https://github.com/canonical/raft
ffa54267 12BuildRequires: autoconf >= 2.60
fc0870e2 13BuildRequires: automake
ffa54267
JB
14BuildRequires: libtool >= 2:2
15BuildRequires: libuv-devel >= 1.8.0
16BuildRequires: pkgconfig
17BuildRequires: rpmbuild(macros) >= 1.752
18Requires: libuv >= 1.8.0
fc0870e2 19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22Fully asynchronous C implementation of the Raft consensus protocol.
23
24The library has modular design: its core part implements only the core
25Raft algorithm logic, in a fully platform independent way. On top of
26that, a pluggable interface defines the I/O implementation for
27networking (send/receive RPC messages) and disk persistence (store log
28entries and snapshots).
29
ffa54267
JB
30%description -l pl.UTF-8
31W pełni asynchroniczna implementacja w C protokołu consensusu Raft.
32
33Biblioteka jest zaprojektowana modułowo: główna część implementuje
34tylko podstawową logikę algorytmu Raft w sposób w pełni niezależny od
35platformy. Powyżej niej rozszerzalny interfejs definiuje implementację
36we/wy warstwy sieciowej (wysyłanie/odbiór komunikatów RPC) oraz
37przechowywanie na dysku (zapisywanie wpisów logu oraz migawek).
38
fc0870e2 39%package devel
ffa54267
JB
40Summary: Header files for Raft library
41Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Raft
fc0870e2 42Group: Development/Libraries
43Requires: %{name} = %{version}-%{release}
fc0870e2 44
45%description devel
ffa54267
JB
46This package contains development files for the Raft library.
47
48%description devel -l pl.UTF-8
49Ten pakiet zawiera biblioteki nagłówkowe biblioteki Raft.
fc0870e2 50
51%package static
ffa54267
JB
52Summary: Static libraries for Raft library
53Summary(pl.UTF-8): Statyczne biblioteki Raft
fc0870e2 54Group: Development/Libraries
55Requires: %{name}-devel = %{version}-%{release}
56
57%description static
ffa54267
JB
58This package contains static Raft library.
59
60%description static -l pl.UTF-8
61Ten pakiet zawiera statyczną bibliotekę Raft.
62
63%package apidocs
64Summary: API documentation for Raft library
65Summary(pl.UTF-8): Dokumentacja API biblioteki Raft
66Group: Documentation
67%{?noarchpackage}
68
69%description apidocs
70API documentation for Raft library.
71
72%description apidocs -l pl.UTF-8
73Dokumentacja 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
89rm -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
98rm -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}
This page took 0.073758 seconds and 4 git commands to generate.