# Generated by go2rpm 1.3 %bcond_without check # https://github.com/boltdb/bolt %global goipath github.com/boltdb/bolt Version: 1.3.1 %gometa %global common_description %{expand: An embedded key/value database for Go.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: 1%{?dist} Summary: An embedded key/value database for Go License: MIT URL: %{gourl} Source0: %{gosource} %description %{common_description} %gopkg %prep %goprep for test_file in $(find . -name "*_test.go") do rm $test_file done %build for cmd in cmd/* ; 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 * Mon Dec 28 15:23:53 CST 2020 proletarius101 - 1.3.1-1 - Initial package