## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 2; 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.5.0 %bcond_without check # https://github.com/fortio/dnsping %global goipath fortio.org/dnsping %global forgeurl https://github.com/fortio/dnsping Version: 1.1.5 %gometa %global common_description %{expand: DNS Ping: to check packet loss and latency issues with DNS servers.} %global golicenses LICENSE %global godocs README.md Name: dnsping Release: %autorelease Summary: DNS Ping: to check packet loss and latency issues with DNS servers # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(fortio.org/fortio/log) BuildRequires: golang(fortio.org/fortio/stats) BuildRequires: golang(github.com/miekg/dns) %description %{common_description} %gopkg %prep %goprep %build %gobuild -o %{gobuilddir}/bin/dnsping %{goipath} %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 %doc README.md %{_bindir}/* %gopkgfiles %changelog * So srp 28 2021 Petr Menšík 1.1.5-2 - Switch to autorelease * So srp 28 2021 Petr Menšík 1.1.5-1 - Initial conversion