2 %define snapshot ss010803
3 Summary: Utility to control Networking behavior in 2.2.X kernels
4 Summary(pl): Narzêdzie do kontrolowania Sieci w kernelach 2.2
6 Version: %{mainver}.%{snapshot}
8 Vendor: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
10 Group: Networking/Admin
11 Group(de): Netzwerkwesen/Administration
12 Group(pl): Sieciowe/Administracyjne
13 Source0: ftp://ftp.inr.ac.ru/ip-routing/%{name}-%{mainver}-now-%{snapshot}.tar.gz
14 Patch0: %{name}-make.patch
15 Patch1: %{name}-uClibc.patch
16 Patch2: %{name}-fix-2_2.patch
17 Patch3: %{name}-label.patch
18 BuildRequires: tetex-dvips
19 BuildRequires: tetex-latex
20 BuildRequires: psutils
21 %{?BOOT:BuildRequires: uClibc-devel-BOOT}
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define _sbindir /sbin
26 %define _sysconfdir /etc/iproute2
29 This package contains the ip, tc and the rtmon tool that allow control
30 of routing and other aspects of networking.
33 Ten pakiet zawiera programy pozwalaj±ce na kontrolê routingu i innych
34 aspektów dotycz±cych sieci.
37 %if %{?BOOT:1}%{!?BOOT:0}
39 Summary: Utility to control Networking behavior in 2.2.X kernels
40 Summary(pl): Narzêdzie do kontrolowania Sieci w kernelach 2.2
41 Group: Networking/Admin
42 Group(de): Netzwerkwesen/Administration
43 Group(pl): Sieciowe/Administracyjne
59 %if %{?BOOT:1}%{!?BOOT:0}
61 OPT="-Os" GLIBCFIX="" \
62 KERNEL_INCLUDE="%{_kernelsrcdir}/include" \
63 OPT="-I%{_libdir}/bootdisk%{_includedir}" \
64 LDFLAGS="-nostdlib -static -s" \
65 LDLIBS="%{_libdir}/bootdisk%{_libdir}/crt0.o %{_libdir}/bootdisk%{_libdir}/libc.a -lgcc" \
66 ADDLIB="inet_ntop.o inet_pton.o dnet_ntop.o dnet_pton.o ipx_ntop.o ipx_pton.o" \
69 # there are some problems compiling with uClibc, falling back to simple glibc-static
73 LDFLAGS="-static -s" \
74 KERNEL_INCLUDE="%{_kernelsrcdir}/include"
76 mv -f ip/rtacct rtacct-BOOT
77 mv -f ip/rtmon rtmon-BOOT
83 KERNEL_INCLUDE="%{_kernelsrcdir}/include"
89 rm -rf $RPM_BUILD_ROOT
90 %if %{?BOOT:1}%{!?BOOT:0}
91 install -d $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin
92 # we need only 'ip' on bootdisk (don't we??)
93 install ip-BOOT $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin/ip
96 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}}
97 install ip/{ip,rtmon,rtacct,routel} tc/tc $RPM_BUILD_ROOT%{_sbindir}
98 install etc/iproute2/rt_protos \
99 etc/iproute2/rt_realms \
100 etc/iproute2/rt_scopes \
101 etc/iproute2/rt_tables \
102 $RPM_BUILD_ROOT%{_sysconfdir}
104 gzip -9nf READ* RELNOTES doc/*.ps
107 rm -rf $RPM_BUILD_ROOT
110 %defattr(644,root,root,755)
111 %doc {README,README.iproute2+tc,RELNOTES}.gz
113 %attr(755,root,root) %{_sbindir}/*
115 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/*
117 %if %{?BOOT:1}%{!?BOOT:0}
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_libdir}/bootdisk/sbin/*