# Generated by go2rpm 1 %bcond_without check # https://github.com/coocood/freecache %global goipath github.com/coocood/freecache Version: 1.1.1 %gometa %global common_description %{expand: A cache library for Go with zero GC overhead.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: 1%{?dist} Summary: Cache library with zero GC overhead License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/cespare/xxhash) %description %{common_description} %gopkg %prep %goprep %build for cmd in server; 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 %doc README.md %{_bindir}/* %gopkgfiles %changelog * Tue Sep 22 2020 Fabian Affolter - 1.1.1-1 - Initial package