Package b3sum

Download b3sum.spec
%def_without benchmark

Name:     b3sum
Version:  1.2.0
Release:  alt1

Summary:  A command line utility for calculating BLAKE3 hashes
License:  Apache-2.0
Group:    Development/Tools

Packager: Mikhail Gordeev <>

Source:   %name-%version.tar
Patch: %name-%version-%release.patch

BuildRequires(pre): rpm-build-rust
BuildRequires: /proc
%if_with benchmark
BuildRequires: hyperfine

A command line utility for calculating BLAKE3 hashes, similar to Coreutils
tools like b2sum or md5sum.

%patch -p1

cd b3sum
%ifarch %arm
cargo build --release %{?_smp_mflags} --offline --features neon
cargo build --release %{?_smp_mflags} --offline

cd b3sum
install -Dm 755 target/release/%name %buildroot%_bindir/%name

cd b3sum
cargo test --release --no-fail-fast
%if_with benchmark
SIZE="$(numfmt --from=iec 10G)"
head -"$SIZE"c /dev/zero > /tmp/zero
hyperfine --style basic --warmup 3 \
    "sh -c 'head -c $SIZE /dev/zero | %buildroot%_bindir/b3sum'" \
    "sh -c 'head -c $SIZE /dev/zero | b2sum'" \
    "sh -c 'head -c $SIZE /dev/zero | md5sum'" \
    "sh -c 'head -c $SIZE /dev/zero | sha256sum'" \

%doc *.md

* Mon Nov 08 2021 Mikhail Gordeev <> 1.2.0-alt1
- new version 1.2.0

* Wed Oct 27 2021 Mikhail Gordeev <> 1.1.0-alt1
- new version 1.1.0

* Tue Aug 03 2021 Mikhail Gordeev <> 1.0.0-alt2
- Remove ExclusiveArch

* Mon Aug 02 2021 Mikhail Gordeev <> 1.0.0-alt1
- Initial build for Sisyphus
Back to Top