6 %bcond_without doc # don't build documentation
7 %bcond_without tc # don't build tc program (it breaks static linkage)
8 %bcond_with uClibc # do some hacks to build with uClibc
9 %bcond_with iec_complaint # fix bitrate calculations
11 Summary: Utility to control Networking behavior in.X kernels
12 Summary(es): Herramientas para encaminamiento avanzado y configuración de interfaces de red
13 Summary(pl): Narzêdzie do kontrolowania Sieci w kernelach
14 Summary(pt_BR): Ferramentas para roteamento avançado e configuração de interfaces de rede
17 # do not use ,,2.6.X'' as version here, put whole number like 2.6.8
21 Vendor: Stephen Hemminger <shemminger@osdl.org>
22 Group: Networking/Admin
23 Source0: http://developer.osdl.org/dev/iproute2/download/%{name}-2.6.X-ss%{sdate}.tar.gz
24 # Source0-md5: cecf5ee39e8d9033ad0a6f6af274cdab
25 Patch0: %{name}-build.patch
26 Patch2: %{name}-arp.patch
27 Patch4: %{name}-ipaddress.patch
29 Patch10: %{name}-2.2.4-wrr.patch
30 Patch11: %{name}-2.2.4-esfq.patch
31 Patch13: %{name}-rates-1024-fix.patch
32 URL: http://developer.osdl.org/dev/iproute2/
34 BuildRequires: linux-libc-headers >= 7:2.6.7.0-7
36 BuildRequires: psutils
37 BuildRequires: sgml-tools
38 BuildRequires: tetex-dvips
39 BuildRequires: tetex-format-latex
40 BuildRequires: tetex-tex-babel
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 %define _sbindir /sbin
47 %define _sysconfdir /etc/iproute2
50 Linux maintains compatibility with the basic configuration
51 utilities of the network (ifconfig, route) but a new utility is
52 required to exploit the new characteristics and features of the
53 kernel. This package includes the new utilities.
56 Linux mantiene compatibilidad con los utilitarios estándares de
57 configuración de la red, pero se necesitan nuevos utilitarios para
58 usar los recursos y características del nuevo núcleo. Este paquete
59 incluye los nuevos utilitarios.
62 Ten pakiet zawiera programy pozwalaj±ce na kontrolê routingu i innych
63 aspektów dotycz±cych sieci.
66 O Linux mantém compatibilidade com os utilitários padrão de
67 configuração da rede, mas novos utilitários são necessários para fazer
68 uso das características e recursos da nova kernel. This package
69 includes the new utilities.
71 %package -n libnetlink-devel
72 Summary: Library for the netlink interface
73 Summary(pl): Biblioteka do interfejsu netlink
74 Group: Development/Libraries
76 %description -n libnetlink-devel
77 This library provides an interface for kernel-user netlink interface.
79 %description -n libnetlink-devel -l pl
80 Ta biblioteka udostêpnia interfejs do interfejsu netlink miêdzy j±drem
81 a przestrzeni± u¿ytkownika.
92 %{?with_iec_complaint:%patch13 -p1}
96 %{?with_uClibc:CC="%{_target_cpu}-uclibc-gcc"}%{!?with_uClibc:CC="%{__cc}"} \
98 %{!?with_tc:SUBDIRS="lib ip misc" LDFLAGS="%{rpmldflags}"}
100 %{?with_doc:%{__make} -C doc}
103 rm -rf $RPM_BUILD_ROOT
104 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir},%{_mandir}/man8,%{_libdir},%{_includedir}}
106 install ip/{ip,rtmon,routel} %{?with_tc:tc/tc} misc/{rtacct,rtstat,ss,ifstat} $RPM_BUILD_ROOT%{_sbindir}
107 install etc/iproute2/rt_protos \
108 etc/iproute2/rt_realms \
109 etc/iproute2/rt_scopes \
110 etc/iproute2/rt_tables \
111 $RPM_BUILD_ROOT%{_sysconfdir}
113 install man/man8/* $RPM_BUILD_ROOT%{_mandir}/man8
114 echo ".so tc-pbfifo.8" > $RPM_BUILD_ROOT%{_mandir}/man8/tc-bfifo.8
115 echo ".so tc-pbfifo.8" > $RPM_BUILD_ROOT%{_mandir}/man8/tc-pfifo.8
117 install lib/libnetlink.a $RPM_BUILD_ROOT%{_libdir}
118 install include/libnetlink.h $RPM_BUILD_ROOT%{_includedir}
121 rm -rf $RPM_BUILD_ROOT
124 %defattr(644,root,root,755)
125 %doc README README.iproute2+tc RELNOTES %{?with_doc:doc/*.ps}
126 %attr(755,root,root) %{_sbindir}/*
128 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/*
131 %files -n libnetlink-devel
132 %defattr(644,root,root,755)