File arping.spec of Package arping
# norootforbuild
Name: arping
Version: 2.09
Release: 1
License: GPLv2
Group: Productivity/Networking/Diagnostic
Summary: Sends ARP and/or IP pings to a given host.
Url: http://www.habets.pp.se/synscan/programs.php?prog=arping
Source: http://www.habets.pp.se/synscan/files/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libnet libpcap-devel
Requires: libnet >= 1.1
Requires: libpcap
%description
The arping utility sends ARP and/or ICMP requests to the specified host and
displays the replies. The host may be specified by its hostname, its IP
address, or its MAC address.
One request is sent each second.
When pinging an IP an ARP who-has query is sent. When pinging a MAC address a
directed broadcast ICMP Echo request is sent.
%prep
%setup
%build
%configure
%{__make} all
%install
%makeinstall
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%{_sbindir}/arping
%doc %{_mandir}/man8/arping.8%{ext_man}
%changelog