-# TODO: optflags
Summary: ARPing - ping an address by ARP packets
-Summary(pl): ARPing - pingowanie adresów pakietami ARP
+Summary(pl.UTF-8): ARPing - pingowanie adresów pakietami ARP
Name: arping
-Version: 2.05
-Release: 1
-License: GPL
+Version: 2.08
+Release: 3
+License: GPL v2
Group: Networking/Admin
Source0: ftp://ftp.habets.pp.se/pub/synscan/%{name}-%{version}.tar.gz
-# Source0-md5: 96e7c2ce8ae09046e264a314eeaac4dd
+# Source0-md5: 36dba82f8a6084b634aa6f4aac6225c6
+URL: http://www.habets.pp.se/synscan/programs.php?prog=arping
BuildRequires: libnet-devel
BuildRequires: libpcap-devel
+BuildRequires: sed >= 4.0
+Requires: bc
Provides: arping
Obsoletes: arping
Obsoletes: iputils-arping
arping pings given address on given device by ARP packets, using given
source address.
-%description -l pl
-arping pinguje podany adres na podanym interfejsie wysy³aj±c pakiety
+%description -l pl.UTF-8
+arping pinguje podany adres na podanym interfejsie wysyłając pakiety
ARP.
%prep
%setup -q
+sed '/CC.*arping-2/s/-g/$(CFLAGS)/' \
+ -i Makefile
%build
-%{__make}
+%{__make} \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcflags}"
%install
rm -rf $RPM_BUILD_ROOT