3 # --without tc (don't build tc program, it break static linkage)
4 # --without dist_kernel
6 %define _kernel24 %(echo %{_kernel_ver} | grep -q '2\.[012]\.' ; echo $?)
8 %define snapshot ss010803
9 Summary: Utility to control Networking behavior in 2.2.X kernels
10 Summary(es): Herramientas para encaminamiento avanzado y configuración de interfaces de red
11 Summary(pl): Narzêdzie do kontrolowania Sieci w kernelach 2.2
12 Summary(pt_BR): Ferramentas para roteamento avançado e configuração de interfaces de rede
14 Version: %{mainver}.%{snapshot}
15 Release: 10@%{_kernel_ver_str}
17 Vendor: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
18 Group: Networking/Admin
19 Source0: ftp://ftp.inr.ac.ru/ip-routing/%{name}-%{mainver}-now-%{snapshot}.tar.gz
20 Source1: %{name}-owl-man.tar.bz2
21 Patch0: %{name}-make.patch
22 Patch1: %{name}-uClibc.patch
23 Patch2: %{name}-fix-2_2.patch
24 Patch3: %{name}-label.patch
25 Patch4: %{name}-latest.patch
26 Patch5: %{name}-htb2_tc.patch
27 Patch6: wrr-iproute2-2.2.4.patch
28 Patch7: htb3.6_tc.patch
29 Patch8: %{name}-no_libresolv.patch
30 %{!?_without_tetex:BuildRequires: tetex-dvips}
31 %{!?_without_tetex:BuildRequires: tetex-latex}
32 %{!?_without_tetex:BuildRequires: psutils}
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 %define _sbindir /sbin
37 %define _sysconfdir /etc/iproute2
40 Linux 2.2 maintains compatibility with the basic configuration
41 utilities of the network (ifconfig, route) but a new utility is
42 required to exploit the new characteristics and features of the
43 kernel. This package includes the new utilities.
46 Linux mantiene compatibilidad con los utilitarios estándares de
47 configuración de la red, pero se necesitan nuevos utilitarios para
48 usar los recursos y características del nuevo núcleo. Este paquete
49 incluye los nuevos utilitarios.
52 Ten pakiet zawiera programy pozwalaj±ce na kontrolê routingu i innych
53 aspektów dotycz±cych sieci.
56 O Linux mantém compatibilidade com os utilitários padrão de
57 configuração da rede, mas novos utilitários são necessários para fazer
58 uso das características e recursos da nova kernel. This package
59 includes the new utilities.
62 %setup -q -n %{name} -a1
78 grep -q tc_wrr_class_weight /usr/include/linux/pkt_sched.h || WRRDEF="-DNEED_WRR_DEFS"
82 OPT="%{rpmcflags} ${WRRDEF}" \
83 KERNEL_INCLUDE="%{_kernelsrcdir}/include" \
84 %{?_without_tc:SUBDIRS="lib ip" LDFLAGS="%{rpmldflags}"}
85 %{!?_without_tetex:%{__make} -C doc}
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir},%{_mandir}/man8}
91 install ip/{ip,rtmon,rtacct,routel} %{!?_without_tc:tc/tc} $RPM_BUILD_ROOT%{_sbindir}
92 install etc/iproute2/rt_protos \
93 etc/iproute2/rt_realms \
94 etc/iproute2/rt_scopes \
95 etc/iproute2/rt_tables \
96 $RPM_BUILD_ROOT%{_sysconfdir}
97 install man/* $RPM_BUILD_ROOT%{_mandir}/man8
100 rm -rf $RPM_BUILD_ROOT
103 %defattr(644,root,root,755)
104 %doc README README.iproute2+tc RELNOTES
105 %{!?_without_tetex:%doc doc/*.ps}
106 %attr(755,root,root) %{_sbindir}/*
108 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/*