X-Git-Url: http://git.pld-linux.org/?p=packages%2Farping.git;a=blobdiff_plain;f=arping.spec;h=be5cfbf7a8186b19bdb7a42570e9e793292e9035;hp=c33aaf59094136dd600b27c29ce03adff0ecb6cb;hb=HEAD;hpb=8544febc17e29ad8930e82181e933e7360a4b788 diff --git a/arping.spec b/arping.spec index c33aaf5..1c4a0c9 100644 --- a/arping.spec +++ b/arping.spec @@ -1,52 +1,62 @@ - -Summary: ARPing -Summary(pl): ARPing +Summary: ARPing - ping an address by ARP packets +Summary(pl.UTF-8): ARPing - pingowanie adresów pakietami ARP Name: arping -Version: 2.04 -Release: 0.1 -License: GPL +Version: 2.24 +Release: 1 +License: GPL v2 Group: Networking/Admin -Source0: ftp://ftp.habets.pp.se/pub/synscan/%{name}-%{version}.tar.gz -# Source0-md5: 5fbf10272dcb5040cbfb4d540179fb99 -BuildRequires: linux-libc-headers -BuildRequires: libnet-devel +Source0: https://www.habets.pp.se/synscan/files/%{name}-%{version}.tar.gz +# Source0-md5: b4d49d2805fc7db1e7c981325b105be2 +Patch0: %{name}-nolibs.patch +URL: https://www.habets.pp.se/synscan/programs_arping.html +BuildRequires: autoconf >= 2.61 +BuildRequires: automake +BuildRequires: libcap-devel +BuildRequires: libnet-devel > 1.1 BuildRequires: libpcap-devel -Provides: arping -Obsoletes: arping +BuildRequires: libseccomp-devel +Requires: bc Obsoletes: iputils-arping +Conflicts: iputils <= 1:ss021109-2 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -- arping Ping
on device by ARP packets, using - source address , +arping pings given address on given device by ARP packets, using given +source address. -%description -l pl -- arping Pinguje na interfejsie wysy³aj±c pakiety - ARP, +%description -l pl.UTF-8 +arping pinguje podany adres na podanym interfejsie wysyłając pakiety +ARP. %prep %setup -q +%patch0 -p1 %build - +%{__aclocal} +%{__autoconf} +%{__automake} +%configure %{__make} %install rm -rf $RPM_BUILD_ROOT -install -d -m 755 $RPM_BUILD_ROOT%{_sbindir} -install -d -m 755 $RPM_BUILD_ROOT%{_usr}/doc -install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man8 -install -c arping $RPM_BUILD_ROOT%{_sbindir}/arping -install -c arping $RPM_BUILD_ROOT%{_sbindir}/arping-scan-net.sh -install -c README $RPM_BUILD_ROOT%{_usr}/doc/README -install -c arping.8 $RPM_BUILD_ROOT%{_mandir}/man8/arping.8 + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +cp -p extra/arping-scan-net.sh \ + $RPM_BUILD_ROOT%{_sbindir}/arping-scan-net.sh + +# interfaces not accessible in binary package +%{__rm} $RPM_BUILD_ROOT%{_includedir}/arping.h %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) +%doc README %attr(4754,root,adm) %{_sbindir}/arping %attr(754,root,adm) %{_sbindir}/arping-scan-net.sh %{_mandir}/man8/arping.8* -%doc %{_usr}/doc/*