# Generated by go2rpm # Need kafka and zookeeper %bcond_with check # https://github.com/wvanbergen/kafka %global goipath github.com/wvanbergen/kafka %global commit e2edea948ddfee841ea9a263b32ccca15f7d6c2f %gometa %global common_description %{expand: Load-balancing, resuming Kafka consumer for go, backed by Zookeeper.} %global golicenses LICENSE %global godocs examples README.md Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: Load-balancing, resuming Kafka consumer for go, backed by Zookeeper License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/Shopify/sarama) # No matching package to install: 'golang(github.com/wvanbergen/kazoo-go)' BuildRequires: golang(github.com/wvanbergen/kazoo-go) %description %{common_description} %gopkg %prep %goprep %build for cmd in tools/transferoffsets tools/verifier tools/stressproducer tools/consoleconsumer tools/consoleproducer; do %gobuild -o %{gobuilddir}/bin/kafka-$(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 examples README.md %{_bindir}/* %gopkgfiles %changelog * Wed Feb 05 2020 Xavier Bachelot - 0-0.1.20200205gite2edea9 - Initial package