4 # - fix iface_descr patch
7 %bcond_without doc # don't build documentation
8 %bcond_without tc # don't build tc program (it breaks static linkage)
9 %bcond_without atm # don't required ATM.
10 %bcond_with uClibc # do some hacks to build with uClibc
11 #%bcond_with iface_descr # build with interface description support
13 Summary: Utility to control Networking behavior in.X kernels
14 Summary(es.UTF-8): Herramientas para encaminamiento avanzado y configuración de interfaces de red
15 Summary(pl.UTF-8): Narzędzie do kontrolowania Sieci w kernelach
16 Summary(pt_BR.UTF-8): Ferramentas para roteamento avançado e configuração de interfaces de rede
18 # do not use ,,2.6.X'' as version here, put whole number like 2.6.8
22 Group: Networking/Admin
23 Source0: http://developer.osdl.org/dev/iproute2/download/%{name}-%{version}.tar.bz2
24 # Source0-md5: 2e59da739ef19990408cf0a5cb0cae3e
25 Patch0: %{name}-build.patch
26 Patch1: %{name}-arp.patch
27 Patch3: %{name}-iptables.patch
28 Patch4: %{name}-iptables64.patch
29 Patch5: %{name}-LDFLAGS.patch
30 Patch6: %{name}-nl-detect.patch
32 Patch10: %{name}-2.2.4-wrr.patch
33 Patch11: esfq-%{name}.patch
34 Patch12: 001-net-dev-iface-descr-0.1.diff
35 Patch13: %{name}-q_atm_c.patch
36 Patch14: %{name}-q_srr.v0.4.patch
37 URL: http://linux-net.osdl.org/index.php/Iproute2
39 BuildRequires: db-devel
42 BuildRequires: linux-atm-devel
44 BuildRequires: linux-libc-headers >= 7:2.6.12.0-15
46 BuildRequires: psutils
47 BuildRequires: sgml-tools
48 BuildRequires: tetex-dvips
49 BuildRequires: tetex-fonts-jknappen
50 BuildRequires: tetex-format-latex
51 BuildRequires: tetex-metafont
52 BuildRequires: tetex-tex-babel
56 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58 %define _sbindir /sbin
59 %define _sysconfdir /etc/iproute2
62 Linux maintains compatibility with the basic configuration utilities
63 of the network (ifconfig, route) but a new utility is required to
64 exploit the new characteristics and features of the kernel. This
65 package includes the new utilities.
67 %description -l es.UTF-8
68 Linux mantiene compatibilidad con los utilitarios estándares de
69 configuración de la red, pero se necesitan nuevos utilitarios para
70 usar los recursos y características del nuevo núcleo. Este paquete
71 incluye los nuevos utilitarios.
73 %description -l pl.UTF-8
74 Ten pakiet zawiera programy pozwalające na kontrolę routingu i innych
75 aspektów dotyczących sieci.
77 %description -l pt_BR.UTF-8
78 O Linux mantém compatibilidade com os utilitários padrão de
79 configuração da rede, mas novos utilitários são necessários para fazer
80 uso das características e recursos da nova kernel. This package
81 includes the new utilities.
83 %package -n libnetlink-devel
84 Summary: Library for the netlink interface
85 Summary(pl.UTF-8): Biblioteka do interfejsu netlink
86 Group: Development/Libraries
88 %description -n libnetlink-devel
89 This library provides an interface for kernel-user netlink interface.
91 %description -n libnetlink-devel -l pl.UTF-8
92 Ta biblioteka udostępnia interfejs do interfejsu netlink między jądrem
93 a przestrzenią użytkownika.
101 %if "%{_lib}" == "lib64"
112 #%{?with_iface_descr:%patch12 -p1}
119 CC="%{_target_cpu}-uclibc-gcc" \
120 LD="%{_target_cpu}-uclibc-gcc" \
127 LDFLAGS="%{rpmldflags}" \
128 %{!?with_tc:SUBDIRS="lib ip misc"}
130 %{?with_doc:%{__make} -C doc}
133 rm -rf $RPM_BUILD_ROOT
134 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir},%{_mandir}/man8,%{_libdir},%{_includedir},%{?with_tc:%{_libdir}/tc}}
136 install ip/{ip,rtmon,routel} %{?with_tc:tc/tc} misc/{ifstat,lnstat,nstat,rtacct,ss} $RPM_BUILD_ROOT%{_sbindir}
137 install etc/iproute2/rt_protos \
138 etc/iproute2/rt_realms \
139 etc/iproute2/rt_scopes \
140 etc/iproute2/rt_tables \
141 $RPM_BUILD_ROOT%{_sysconfdir}
143 install man/man8/* $RPM_BUILD_ROOT%{_mandir}/man8
144 echo ".so tc-pbfifo.8" > $RPM_BUILD_ROOT%{_mandir}/man8/tc-bfifo.8
145 echo ".so tc-pbfifo.8" > $RPM_BUILD_ROOT%{_mandir}/man8/tc-pfifo.8
147 install lib/libnetlink.a $RPM_BUILD_ROOT%{_libdir}
148 install include/libnetlink.h $RPM_BUILD_ROOT%{_includedir}
149 %{?with_tc:install tc/*.so $RPM_BUILD_ROOT%{_libdir}/tc}
152 rm -rf $RPM_BUILD_ROOT
155 %defattr(644,root,root,755)
156 %doc README README.decnet README.iproute2+tc README.lnstat RELNOTES
157 %doc ChangeLog %{?with_doc:doc/*.ps}
158 %attr(755,root,root) %{_sbindir}/*
160 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
162 %{?with_tc:%dir %{_libdir}/tc}
163 %{?with_tc:%attr(755,root,root) %{_libdir}/tc/*.so}
165 %files -n libnetlink-devel
166 %defattr(644,root,root,755)