# Generated by go2rpm 1.8.2 %bcond_without check %global debug_package %{nil} # https://github.com/projectdiscovery/utils %global goipath github.com/projectdiscovery/utils Version: 0.0.4 %gometa -f %global common_description %{expand: Helper Libraries.} %global golicenses LICENSE.md %global godocs README.md Name: %{goname} Release: %autorelease Summary: Helper Libraries License: MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %generate_buildrequires %go_generate_buildrequires %install %gopkginstall %if %{with check} %check for test in "TestDownloadFile" "TestWhatsMyIP" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %gopkgfiles %changelog %autochangelog