# Generated by go2rpm # FIXME: tests fail %bcond_with check # https://github.com/bsm/sarama-cluster %global goipath github.com/bsm/sarama-cluster Version: 2.1.15 %gometa %global common_description %{expand: Cluster extensions for Sarama, the Go client library for Apache Kafka 0.9 [DEPRECATED].} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: 1%{?dist} Summary: Cluster extensions for Sarama, the Go client library for Apache Kafka 0.9 [DEPRECATED] License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/Shopify/sarama) %if %{with check} # Tests BuildRequires: golang(github.com/onsi/ginkgo) BuildRequires: golang(github.com/onsi/ginkgo/extensions/table) BuildRequires: golang(github.com/onsi/gomega) %endif %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 %doc README.md %{_bindir}/* %gopkgfiles %changelog * Wed Feb 05 2020 Xavier Bachelot - 2.1.15-1 - Initial package