# Generated by go2rpm %bcond_without check # https://github.com/j-keck/arping %global goipath github.com/j-keck/arping Version: 1.0.0 %gometa %global common_description %{expand: Arping is a native Go library to ping a host per arp datagram, or query a host mac address.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: 1%{?dist} Summary: Native Go library to ping a host per arp datagram, or query a host mac address License: MIT URL: %{gourl} Source0: %{gosource} %description %{common_description} %gopkg %prep %goprep %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 %doc README.md %{_bindir}/* %gopkgfiles %changelog * Sun May 05 00:46:05 CEST 2019 Robert-André Mauchin - 1.0.0-1 - Initial package