• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# This spec file is for _testing_.
3#
4
5%define ssdate 20121221
6Summary: The ping program for checking to see if network hosts are alive.
7Name: iputils
8Version: s%{ssdate}
9Release: 1local
10License: GPLv2+
11Group: System Environment/Daemons
12Source0: iputils-s%{ssdate}.tar.bz2
13Prefix: %{_prefix}
14BuildRoot: %{_tmppath}/%{name}-root
15#BuildPrereq: docbook-dtd31-sgml, perl
16Requires: kernel >= 2.4.7
17
18%description
19The iputils package contains ping, a basic networking tool.  The ping
20command sends a series of ICMP protocol ECHO_REQUEST packets to a
21specified network host and can tell you if that machine is alive and
22receiving network traffic.
23
24%prep
25%setup -q %{name}
26
27%build
28make
29make ninfod
30make man
31make html
32
33%install
34rm -fr ${RPM_BUILD_ROOT}
35mkdir -p ${RPM_BUILD_ROOT}%{_sbindir}
36mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
37mkdir -p $RPM_BUILD_ROOT/%{_unitdir}
38
39install -c clockdiff            ${RPM_BUILD_ROOT}%{_sbindir}/
40install -cp arping              ${RPM_BUILD_ROOT}%{_sbindir}/
41install -cp ping                ${RPM_BUILD_ROOT}%{_bindir}/
42install -cp rdisc               ${RPM_BUILD_ROOT}%{_sbindir}/
43install -cp ping6               ${RPM_BUILD_ROOT}%{_bindir}/
44install -cp tracepath           ${RPM_BUILD_ROOT}%{_bindir}/
45install -cp tracepath6          ${RPM_BUILD_ROOT}%{_bindir}/
46install -cp ninfod/ninfod       ${RPM_BUILD_ROOT}%{_sbindir}/
47
48mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
49ln -sf ../bin/ping6 ${RPM_BUILD_ROOT}%{_sbindir}
50ln -sf ../bin/tracepath ${RPM_BUILD_ROOT}%{_sbindir}
51ln -sf ../bin/tracepath6 ${RPM_BUILD_ROOT}%{_sbindir}
52
53mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man8
54install -cp doc/clockdiff.8     ${RPM_BUILD_ROOT}%{_mandir}/man8/
55install -cp doc/arping.8        ${RPM_BUILD_ROOT}%{_mandir}/man8/
56install -cp doc/ping.8          ${RPM_BUILD_ROOT}%{_mandir}/man8/
57install -cp doc/rdisc.8         ${RPM_BUILD_ROOT}%{_mandir}/man8/
58install -cp doc/tracepath.8     ${RPM_BUILD_ROOT}%{_mandir}/man8/
59install -cp doc/ninfod.8        ${RPM_BUILD_ROOT}%{_mandir}/man8/
60ln -s ping.8.gz ${RPM_BUILD_ROOT}%{_mandir}/man8/ping6.8.gz
61ln -s tracepath.8.gz ${RPM_BUILD_ROOT}%{_mandir}/man8/tracepath6.8.gz
62
63iconv -f ISO88591 -t UTF8 RELNOTES -o RELNOTES.tmp
64touch -r RELNOTES RELNOTES.tmp
65mv -f RELNOTES.tmp RELNOTES
66
67%clean
68rm -rf ${RPM_BUILD_ROOT}
69
70%files
71%doc RELNOTES
72%attr(0755,root,root) %caps(cap_net_raw=ep) %{_sbindir}/clockdiff
73#%attr(4755,root,root) %{_sbindir}/clockdiff
74%attr(0755,root,root) %caps(cap_net_raw=ep) %{_sbindir}/arping
75#%attr(4755,root,root) %{_sbindir}/arping
76%attr(0755,root,root) %caps(cap_net_raw=ep cap_net_admin=ep) %{_bindir}/ping
77#%attr(4755,root,root) %{_bindir}/ping
78%attr(0755,root,root) %caps(cap_net_raw=ep cap_net_admin=ep) %{_bindir}/ping6
79#%attr(4755,root,root) %{_bindir}/ping6
80%{_sbindir}/rdisc
81%{_bindir}/tracepath
82%{_bindir}/tracepath6
83%{_sbindir}/ping6
84%{_sbindir}/tracepath
85%{_sbindir}/tracepath6
86%{_sbindir}/ninfod
87%attr(644,root,root) %{_mandir}/man8/*
88
89%changelog
90* Fri Nov 30 2012 YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
91  Partically sync with current Fedora's specfile.
92* Sat Feb 23 2001 Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
93  Taken iputils rpm from ASPLinux-7.2 as pattern.
94