Name: raft Version: 0.11.3 Release: 4%{?dist} Summary: C implementation of the Raft consensus protocol License: LGPLv3 with exceptions URL: https://github.com/canonical/raft Source0: %{URL}/archive/v%{version}.tar.gz # https://github.com/canonical/raft/pull/259/ Patch0: 0.11.3-test_compress-Respect-32bit-architectures.patch # https://github.com/canonical/raft/pull/261 Patch1: 0.11.3-test-integration-uv-skip-init-oom-test-on-tmpfs.patch # https://github.com/canonical/raft/issues/263 Patch2: 0.11.3-Revert-test-runner-Define-order-of-constructors.patch BuildRequires: autoconf libtool BuildRequires: gcc BuildRequires: pkgconfig(liblz4) BuildRequires: pkgconfig(libuv) %description Fully asynchronous C implementation of the Raft consensus protocol. It consists of a core part that implements the core Raft algorithm logic and a pluggable interface defining the I/O implementation for networking and disk persistence. %package benchmark Summary: Benchmark operating system disk write performance BuildRequires: pkgconfig(liburing) %description benchmark Benchmark operating system disk write performance. %package devel Summary: Development libraries for raft Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development headers and library for raft. %package doc Summary: C-Raft documentation BuildArch: noarch BuildRequires: python-sphinx %description doc This package contains the C-Raft documentation in HTML format. %prep %setup -q -n %{name}-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 %build autoreconf -i %configure --disable-static --enable-benchmark %make_build sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html %install %make_install rm -f %{buildroot}%{_libdir}/libraft.la %check %make_build check %ldconfig_scriptlets %files %doc AUTHORS README.md %license LICENSE %{_libdir}/libraft.so.* %files benchmark %license LICENSE %{_bindir}/os-disk-write %files devel %{_libdir}/libraft.so %{_libdir}/pkgconfig/%{name}.pc %{_includedir}/raft.h %{_includedir}/raft/ %files doc %license LICENSE %doc docs/_build/html/ %changelog * Sat Jul 23 2022 Fedora Release Engineering - 0.11.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Feb 12 2022 Reto Gantenbein 0.11.3-3 - Fix tests on armv7hl architecture. * Mon Jan 24 2022 Reto Gantenbein 0.11.3-2 - Fix tests on i686 architecture. * Sat Jan 22 2022 Reto Gantenbein 0.11.3-1 - Update to 0.11.3 * Fri Jan 21 2022 Fedora Release Engineering 0.11.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Dec 05 2021 Reto Gantenbein 0.11.2-1 - Initial import (#2017459).