ALT repositories
Last updated at Thu, 28 Oct 2021 08:51:43 +0000 | SRPMs: 26192
en ru
SRPMs in branches
hide window
Group :: Development/Tools
Source RPM: b3sum
Raw spec file

%def_without benchmark

Name: b3sum
Version: 1.1.0
Release: alt1

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

Packager: Mikhail Gordeev <obirvalger at>

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

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

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

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

* Mon Aug 02 2021 Mikhail Gordeev <obirvalger at> 1.0.0-alt1
- Initial build for Sisyphus
The Geyser project is based on code from Prometheus2.0, which had been made available under the MIT License.