# Generated by go2rpm 1 %bcond_without check # https://github.com/cespare/xxhash %global goipath github.com/cespare/xxhash Version: 2.1.2 %global goaltipaths github.com/cespare/xxhash/v2 %gometa %global common_description %{expand: A Go implementation of the 64-bit xxHash algorithm (XXH64).} %global golicenses LICENSE.txt %global godocs README.md Name: %{goname} Release: %mkrel 2 Summary: A Go implementation of the 64-bit xxHash algorithm (XXH64) Group: Development/Golang License: MIT URL: %{gourl} Source0: %{gosource} %description %{common_description} %gopkg %prep %goprep %build for cmd in xxhsum; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE.txt %doc README.md %{_bindir}/* %gopkgfiles