# Generated by go2rpm # Need a zookeeper server %bcond_with check # https://github.com/wvanbergen/kazoo-go %global goipath github.com/wvanbergen/kazoo-go %global commit f72d8611297a7cf105da904c04198ad701a60101 %gometa %global common_description %{expand: Go library to access Kafka metadata in Zookeeper.} %global golicenses MIT-LICENSE %global godocs README.md Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: Go library to access Kafka metadata in Zookeeper License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/samuel/go-zookeeper/zk) %description %{common_description} %gopkg %prep %goprep %build for cmd in tools/kafka-topics; 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 MIT-LICENSE %doc README.md %{_bindir}/* %gopkgfiles %changelog * Wed Feb 05 2020 Xavier Bachelot - 0-0.1.20200205gitf72d861 - Initial package