]> git.pld-linux.org Git - packages/iproute2.git/blob - iproute2.spec
- release 9,
[packages/iproute2.git] / iproute2.spec
1 # conditional build
2 # --without tetex
3 # --without tc (don't build tc program, it break static linkage)
4 # --without dist_kernel
5 %define mainver         2.4.7
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
11 Name:           iproute2
12 Version:        %{mainver}.%{snapshot}
13 Release:        9
14 License:        GPL
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}
29 Obsoletes:      iproute
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %define         _sbindir        /sbin
33 %define         _sysconfdir     /etc/iproute2
34
35 %description
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.
40
41 %description -l es
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.
46
47 %description -l pl
48 Ten pakiet zawiera programy pozwalaj±ce na kontrolê routingu i innych
49 aspektów dotycz±cych sieci.
50
51 %description -l pt_BR
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.
56
57 %prep
58 %setup -q -n %{name} -a1
59 %patch0 -p1
60 %patch1 -p1
61 %patch2 -p1
62 %patch3 -p1
63 %patch4 -p1
64 %patch5 -p1
65 %{!?_without_dist_kernel:%patch6 -p1}
66
67 %build
68
69 %{__make} \
70         CC="%{__cc}" \
71         OPT="%{rpmcflags}" \
72         KERNEL_INCLUDE="%{_kernelsrcdir}/include" \
73         %{?_without_tc:SUBDIRS="lib ip" LDFLAGS="%{rpmldflags}"}
74 %{!?_without_tetex:%{__make} -C doc}
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir},%{_mandir}/man8}
79
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
87
88 gzip -9nf READ* RELNOTES %{!?_without_tetex:doc/*.ps}
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %files
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}/*
98 %dir %{_sysconfdir}
99 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/*
100 %{_mandir}/man8/*
This page took 0.084319 seconds and 4 git commands to generate.