]> git.pld-linux.org Git - packages/iproute2.git/blob - iproute2.spec
- added --without tc bcond
[packages/iproute2.git] / iproute2.spec
1 # conditional build
2 # --without tetex
3 # --without tc (don't build tc program, it break static linkage)
4 %define mainver         2.4.7
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
8 Name:           iproute2
9 Version:        %{mainver}.%{snapshot}
10 Release:        5
11 Vendor:         Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
12 License:        GPL
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}
24 Obsoletes:      iproute
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define _sbindir        /sbin
28 %define _sysconfdir     /etc/iproute2
29
30 %description
31 This package contains the ip, tc and the rtmon tool that allow control
32 of routing and other aspects of networking.
33
34 %description -l pl
35 Ten pakiet zawiera programy pozwalaj±ce na kontrolê routingu i innych
36 aspektów dotycz±cych sieci.
37
38 %prep
39 %setup -q -n %{name}
40 %patch0 -p1
41 %patch1 -p1
42 %patch2 -p1
43 %patch3 -p1
44 %patch4 -p1
45 %patch5 -p1
46
47 %build
48
49 %{__make} \
50         CC="%{__cc}" \
51         OPT="%{rpmcflags}" \
52         LDFLAGS="%{rpmldflags}" \
53         KERNEL_INCLUDE="%{_kernelsrcdir}/include" \
54         %{?_without_tc:SUBDIRS="lib ip"}
55 %{!?_without_tetex:%{__make} -C doc}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59
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}
67
68 gzip -9nf READ* RELNOTES %{!?_without_tetex:doc/*.ps}
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %files
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}/*
78 %dir %{_sysconfdir}
79 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/*
This page took 0.074214 seconds and 4 git commands to generate.