## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Generated by go2rpm 1.6.0 %bcond_without check %global debug_package %{nil} # https://github.com/projectdiscovery/iputil %global goipath github.com/projectdiscovery/iputil %global commit 3a30fcde43f300a624937a618f0f89157a2fc601 %gometa %global common_description %{expand: Various helpers to interact with ips and cidrs.} %global golicenses LICENSE.md %global godocs README.md Name: %{goname} Version: 0 Release: %autorelease -p Summary: Various helpers to interact with ips and cidrs License: MIT URL: %{gourl} Source0: %{gosource} %description %{common_description} %gopkg %prep %goprep %generate_buildrequires %go_generate_buildrequires %install %gopkginstall %if %{with check} %check # TestWhatsMyIP requires network for test in "TestWhatsMyIP" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %gopkgfiles %changelog * Mon May 09 2022 Mikel Olasagasti Uranga 0-0.1 - Initial package - Closes rhbz#2081157