# Generated by go2rpm %bcond_without check # https://github.com/cespare/xxhash %global goipath github.com/cespare/xxhash Version: 2.0.0 %gometa %global common_description %{expand: xxhash is a Go implementation of the 64-bit xxHash algorithm, XXH64. This is a high-quality hashing algorithm that is much faster than anything in the Go standard library.} %global golicenses LICENSE.txt %global godocs README.md Name: %{goname} Release: 1%{?dist} Summary: Go implementation of the 64-bit xxhash algorithm (xxh64) License: MIT URL: %{gourl} Source0: %{gosource} %if %{with check} # Tests BuildRequires: golang(github.com/OneOfOne/xxhash) BuildRequires: golang(github.com/spaolacci/murmur3) %endif %description %{common_description} %gopkg %prep %goprep %build export GO111MODULE=off 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 %{golicenses} %doc %{godocs} %{_bindir}/* %gopkgfiles %changelog * Wed Apr 24 21:45:39 CEST 2019 Robert-André Mauchin - 2.0.0-1 - Release 2.0.0 * Thu Jan 31 2019 Fedora Release Engineering - 1.1.0-0.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Nov 10 2018 Robert-André Mauchin - 1.1.0-1 - Release 1.1.0 - Update to new Go packaging * Fri Jul 13 2018 Fedora Release Engineering - 1.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Feb 13 2018 Kaushal - 1.0.0-1 - First package for Fedora