# # spec file for package raft # # Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 Andreas Stieger = 0.9.0 BuildRequires: pkgconfig(liblz4) >= 1.7.1 BuildRequires: pkgconfig(libuv) >= 1.18.0 %description This library is a asynchronous C implementation of the Raft consensus protocol. It implements the core Raft algorithm logic, and various drivers are provided that implement actual network communication and persistent data storage. The library supports asynchronous or non-blocking I/O engines (such as libuv and io_uring), although it can be used in threaded or blocking contexts as well. %package -n libraft%{raft_sover} Summary: Asynchronous C implementation of the Raft consensus protocol %description -n libraft%{raft_sover} This library is a asynchronous C implementation of the Raft consensus protocol. It implements the core Raft algorithm logic, and various drivers are provided that implement actual network communication and persistent data storage. The library supports asynchronous or non-blocking I/O engines (such as libuv and io_uring), although it can be used in threaded or blocking contexts as well. This package contains the shared library. %package devel Summary: Development files for %{name} Requires: libraft%{raft_sover} = %{version} %description devel This library is a asynchronous C implementation of the Raft consensus protocol. It implements the core Raft algorithm logic, and various drivers are provided that implement actual network communication and persistent data storage. The library supports asynchronous or non-blocking I/O engines (such as libuv and io_uring), although it can be used in threaded or blocking contexts as well. This library is a fully asynchronous C implementation of the Raft consensus protocol. This package contains the files necessary for developing and building applications using the library. %prep %autosetup -p1 %build autoreconf -fiv %configure \ --disable-static %make_build %install %make_install find %{buildroot} -type f -name "*.la" -delete -print %check %make_build check %ldconfig_scriptlets -n libraft%{raft_sover} %files devel %license LICENSE %doc AUTHORS README.md %{_includedir}/raft.h %dir %{_includedir}/raft %{_includedir}/raft/fixture.h %{_includedir}/raft/uv.h %{_libdir}/libraft.so %{_libdir}/pkgconfig/raft.pc %files -n libraft%{raft_sover} %license LICENSE %{_libdir}/libraft.so.%{raft_sover} %{_libdir}/libraft.so.%{raft_sover}.* %changelog