# Generated by go2rpm 1 %bcond_without check # https://github.com/couchbase/vellum %global goipath github.com/couchbase/vellum %global commit ef2e028c01fdb60c46da4067d2e83745b8d54120 %gometa %global common_description %{expand: A Go library implementing an FST (finite state transducer).} %global golicenses LICENSE levenshtein/LICENSE %global godocs docs README.md CONTRIBUTING.md levenshtein/README.md\\\ data/words-1000.txt Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: A Go library implementing an FST (finite state transducer) # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/edsrzf/mmap-go) BuildRequires: golang(github.com/spf13/cobra) BuildRequires: golang(github.com/willf/bitset) %description %{common_description} %gopkg %prep %goprep %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 levenshtein/LICENSE %doc docs README.md CONTRIBUTING.md levenshtein/README.md data/words-1000.txt %{_bindir}/* %gopkgfiles %changelog * Tue Nov 05 14:27:11 +03 2019 ElXreno - 0-0.1.20191105gitef2e028 - Initial package