2 %define snapshot ss010803
3 Summary: Utility to control Networking behavior in 2.2.X kernels
4 Summary(pl): Narzêdzie do kontrolowania Sieci w kernelach 2.2
6 Version: %{mainver}.%{snapshot}
8 Vendor: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
10 Group: Networking/Admin
11 Group(de): Netzwerkwesen/Administration
12 Group(pl): Sieciowe/Administracyjne
13 Source0: ftp://ftp.inr.ac.ru/ip-routing/%{name}-%{mainver}-now-%{snapshot}.tar.gz
14 Patch0: %{name}-make.patch
15 %{?BOOT:Patch1: %{name}-uClibc.patch}
16 BuildRequires: tetex-dvips
17 BuildRequires: tetex-latex
18 BuildRequires: psutils
19 %{?BOOT:BuildRequires: uClibc-devel-BOOT}
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define _sbindir /sbin
24 %define _sysconfdir /etc/iproute2
27 This package contains the ip, tc and the rtmon tool that allow control
28 of routing and other aspects of networking.
31 Ten pakiet zawiera programy pozwalaj±ce na kontrolê routingu i innych
32 aspektów dotycz±cych sieci.
35 %if %{?BOOT:1}%{!?BOOT:0}
37 Summary: Utility to control Networking behavior in 2.2.X kernels
38 Summary(pl): Narzêdzie do kontrolowania Sieci w kernelach 2.2
39 Group: Networking/Admin
40 Group(de): Netzwerkwesen/Administration
41 Group(pl): Sieciowe/Administracyjne
55 %if %{?BOOT:1}%{!?BOOT:0}
57 OPT="-m386 -Os" GLIBCFIX="" \
58 KERNEL_INCLUDE="/usr/src/linux/include -I%{_libdir}/bootdisk%{_includedir}" \
59 LDFLAGS="-nostdlib -static -s" \
60 LDLIBS="%{_libdir}/bootdisk%{_libdir}/crt0.o %{_libdir}/bootdisk%{_libdir}/libc.a -lgcc" \
61 ADDLIB="inet_ntop.o inet_pton.o dnet_ntop.o dnet_pton.o ipx_ntop.o ipx_pton.o" \
64 # there are some problems compiling with uClibc, falling back to simple glibc-static
65 %{__make} SUBDIRS="lib ip" OPT="-Os" LDFLAGS="-static -s"
67 mv -f ip/rtacct rtacct-BOOT
68 mv -f ip/rtmon rtmon-BOOT
72 %{__make} OPT="%{rpmcflags}"
78 rm -rf $RPM_BUILD_ROOT
79 %if %{?BOOT:1}%{!?BOOT:0}
80 install -d $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin
81 # we need only 'ip' on bootdisk (don't we??)
82 install -s ip-BOOT $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin/ip
85 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}}
86 install ip/{ip,rtmon,rtacct,routel} tc/tc $RPM_BUILD_ROOT%{_sbindir}
87 install etc/iproute2/rt_protos \
88 etc/iproute2/rt_realms \
89 etc/iproute2/rt_scopes \
90 etc/iproute2/rt_tables \
91 $RPM_BUILD_ROOT%{_sysconfdir}
93 gzip -9nf READ* RELNOTES doc/*.ps
96 rm -rf $RPM_BUILD_ROOT
99 %defattr(644,root,root,755)
100 %doc {README,README.iproute2+tc,RELNOTES}.gz
102 %attr(755,root,root) %{_sbindir}/*
104 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/*
106 %if %{?BOOT:1}%{!?BOOT:0}
108 %defattr(644,root,root,755)
109 %attr(755,root,root) %{_libdir}/bootdisk/sbin/*