# Generated by go2rpm
%bcond_without check
# https://github.com/minio/sha256-simd
%global goipath github.com/minio/sha256-simd
Version: 1.0.0
%gometa
%global common_description %{expand:
This package is designed as a replacement for crypto/sha256. For Intel CPUs it
has two flavors for AVX512 and AVX2 (AVX/SSE are also supported). For ARM CPUs
with the Cryptography Extensions, advantage is taken of the SHA2 instructions
resulting in a massive performance improvement.
This package uses Golang assembly. The AVX512 version is based on the Intel's
"multi-buffer crypto library for IPSec" whereas the other Intel implementations
are described in "Fast SHA-256 Implementations on Intel Architecture Processors"
by J. Guilford et al.}
%global golicenses LICENSE
%global godocs README.md
Name: %{goname}
Release: %autorelease
Summary: Accelerate SHA256 computations in pure Go using simd
# Upstream license specification: Apache-2.0
License: ASL 2.0
URL: %{gourl}
Source0: %{gosource}
BuildRequires: golang(github.com/klauspost/cpuid)
%description
%{common_description}
%gopkg
%prep
%goprep
%install
%gopkginstall
%if %{with check}
%check
%gocheck
%endif
%gopkgfiles
%changelog
%autochangelog