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