# Generated by go2rpm 1.14.0 %bcond check 1 %bcond bootstrap 0 %if %{with bootstrap} %global debug_package %{nil} %endif # https://github.com/hamba/avro %global goipath github.com/hamba/avro/v2 Version: 2.22.1 %gometa -L %global common_description %{expand: A fast Go Avro codec.} %global golicenses LICENCE %global godocs CODE_OF_CONDUCT.md README.md Name: golang-github-hamba-avro2 Release: %autorelease Summary: A fast Go Avro codec License: MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep -A %autopatch -p1 %if %{without bootstrap} %generate_buildrequires %go_generate_buildrequires %endif %if %{without bootstrap} %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %endif %install %gopkginstall %if %{without bootstrap} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %endif %if %{without bootstrap} %if %{with check} %check %gocheck %endif %endif %files %if %{without bootstrap} %license LICENCE %doc CODE_OF_CONDUCT.md README.md %{_bindir}/avrogen %{_bindir}/avrosv %endif %gopkgfiles %changelog %autochangelog