# Generated by go2rpm 1.8.2 %bcond_without check # https://github.com/projectdiscovery/chaos-client %global goipath github.com/projectdiscovery/chaos-client Version: 0.4.0 %gometa -f %global common_description %{expand: Go client to communicate with Chaos DNS API.} %global golicenses LICENSE.md %global godocs README.md Name: %{goname} Release: %autorelease Summary: Go client to communicate with Chaos DNS API License: MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep # https://github.com/projectdiscovery/chaos-client/pull/148 sed -e 's/int64(rlMax)/uint(rlMax)/' -i pkg/chaos/chaos.go %generate_buildrequires %go_generate_buildrequires %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.md %doc README.md %{_bindir}/* %gopkgfiles %changelog %autochangelog