]> git.pld-linux.org Git - packages/arping.git/blob - arping.spec
- conflicts should be rather on rc-scripts
[packages/arping.git] / arping.spec
1 Summary:        ARPing - ping an address by ARP packets
2 Summary(pl.UTF-8):      ARPing - pingowanie adresów pakietami ARP
3 Name:           arping
4 Version:        2.05
5 Release:        2
6 License:        GPL
7 Group:          Networking/Admin
8 Source0:        ftp://ftp.habets.pp.se/pub/synscan/%{name}-%{version}.tar.gz
9 # Source0-md5:  96e7c2ce8ae09046e264a314eeaac4dd
10 URL:            http://www.habets.pp.se/synscan/programs.php?prog=arping
11 BuildRequires:  libnet-devel
12 BuildRequires:  libpcap-devel
13 BuildRequires:  sed >= 4.0
14 Provides:       arping
15 Obsoletes:      arping
16 Obsoletes:      iputils-arping
17 Conflicts:      iputils <= 1:ss021109-2
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 arping pings given address on given device by ARP packets, using given
22 source address.
23
24 %description -l pl.UTF-8
25 arping pinguje podany adres na podanym interfejsie wysyłając pakiety
26 ARP.
27
28 %prep
29 %setup -q
30 sed '/CC.*arping-2/s/-g/$(CFLAGS)/' \
31         -i Makefile
32
33 %build
34 %{__make} \
35         CC="%{__cc}" \
36         CFLAGS="%{rpmcflags}"
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
41
42 install arping $RPM_BUILD_ROOT%{_sbindir}/arping
43 install arping-scan-net.sh \
44         $RPM_BUILD_ROOT%{_sbindir}/arping-scan-net.sh
45 install arping.8 $RPM_BUILD_ROOT%{_mandir}/man8/arping.8
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(644,root,root,755)
52 %attr(4754,root,adm) %{_sbindir}/arping
53 %attr(754,root,adm) %{_sbindir}/arping-scan-net.sh
54 %{_mandir}/man8/arping.8*
This page took 0.097618 seconds and 3 git commands to generate.