3 # --without tc (don't build tc program, it break static linkage)
5 %define snapshot ss010803
6 Summary: Utility to control Networking behavior in 2.2.X kernels
7 Summary(pl): Narzêdzie do kontrolowania Sieci w kernelach 2.2
9 Version: %{mainver}.%{snapshot}
11 Vendor: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
13 Group: Networking/Admin
14 Source0: ftp://ftp.inr.ac.ru/ip-routing/%{name}-%{mainver}-now-%{snapshot}.tar.gz
15 Patch0: %{name}-make.patch
16 Patch1: %{name}-uClibc.patch
17 Patch2: %{name}-fix-2_2.patch
18 Patch3: %{name}-label.patch
19 Patch4: %{name}-latest.patch
20 Patch5: %{name}-htb2_tc.patch
21 %{!?_without_tetex:BuildRequires: tetex-dvips}
22 %{!?_without_tetex:BuildRequires: tetex-latex}
23 %{!?_without_tetex:BuildRequires: psutils}
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define _sbindir /sbin
28 %define _sysconfdir /etc/iproute2
31 This package contains the ip, tc and the rtmon tool that allow control
32 of routing and other aspects of networking.
35 Ten pakiet zawiera programy pozwalaj±ce na kontrolê routingu i innych
36 aspektów dotycz±cych sieci.
52 LDFLAGS="%{rpmldflags}" \
53 KERNEL_INCLUDE="%{_kernelsrcdir}/include" \
54 %{?_without_tc:SUBDIRS="lib ip"}
55 %{!?_without_tetex:%{__make} -C doc}
58 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}}
61 install ip/{ip,rtmon,rtacct,routel} %{!?_without_tc:tc/tc} $RPM_BUILD_ROOT%{_sbindir}
62 install etc/iproute2/rt_protos \
63 etc/iproute2/rt_realms \
64 etc/iproute2/rt_scopes \
65 etc/iproute2/rt_tables \
66 $RPM_BUILD_ROOT%{_sysconfdir}
68 gzip -9nf READ* RELNOTES %{!?_without_tetex:doc/*.ps}
71 rm -rf $RPM_BUILD_ROOT
74 %defattr(644,root,root,755)
75 %doc {README,README.iproute2+tc,RELNOTES}.gz
76 %{!?_without_tetex:d%doc doc/*.ps.gz}
77 %attr(755,root,root) %{_sbindir}/*
79 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/*