Files
golang-lukechampine-blake3-rpm/golang-lukechampine-blake3.spec
2025-01-15 13:19:37 +01:00

72 lines
1.3 KiB
RPMSpec

# Generated by go2rpm 1.15.0
%bcond check 1
%bcond bootstrap 0
%global debug_package %{nil}
%if %{with bootstrap}
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
%endif
# https://github.com/lukechampine/blake3
%global goipath lukechampine.com/blake3
%global forgeurl https://github.com/lukechampine/blake3
Version: 1.1.6
%global tag v1.1.6
%gometa -L -f
%global common_description %{expand:
An AVX-512 accelerated implementation of the BLAKE3 cryptographic hash
function.}
%global golicenses LICENSE
%global godocs README.md
Name: golang-lukechampine-blake3
Release: %autorelease
Summary: An AVX-512 accelerated implementation of the BLAKE3 cryptographic hash function
License: MIT
URL: %{gourl}
Source: %{gosource}
%description %{common_description}
%godevelpkg
%prep
%goprep -A
%autopatch -p1 -q
%if %{without bootstrap}
%generate_buildrequires
%go_generate_buildrequires
%endif
%build
%install
%gopkginstall
%if %{without bootstrap}
install -m 0755 -vd %{buildroot}%{_bindir}
%endif
%if %{without bootstrap}
%if %{with check}
%check
%gocheck
%endif
%endif
%if %{without bootstrap}
%files
%license LICENSE
%doc README.md
%endif
%gopkgfiles
%changelog
%autochangelog