# 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 %autochangelog