]> git.pld-linux.org Git - packages/iproute2.git/blob - iproute2.spec
Massive attack. We use -O0 instead -O flags while debug enabled.
[packages/iproute2.git] / iproute2.spec
1 %define mainver  2.2.4
2 %define snapshot ss001007
3 Summary:        Utility to control Networking behavior in 2.2.X kernels
4 Summary(pl):    Narzêdzie do kontrolowania Sieci w kernelach 2.2
5 Name:           iproute2
6 Version:        %{mainver}.%{snapshot}
7 Release:        2
8 Vendor:         Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
9 License:        GPL
10 Group:          Networking/Admin
11 Group(pl):      Sieciowe/Administracyjne
12 Source0:        ftp://ftp.inr.ac.ru/ip-routing/%{name}-%{mainver}-now-%{snapshot}.tar.gz
13 Patch0:         iproute2-make.patch
14 Patch1:         iproute2-ll_types.patch
15 BuildRequires:  tetex-dvips
16 BuildRequires:  tetex-latex
17 BuildRequires:  psutils
18 Obsoletes:      iproute
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         _sbindir        /sbin
22 %define         _sysconfdir     /etc/iproute2
23
24 %description
25 This package contains the ip, tc and the rtmon tool that allow control
26 of routing and other aspects of networking.
27
28 %description -l pl
29 Ten pakiet zawiera programy pozwalaj±ce na kontrolê routingu i innych
30 aspektów dotycz±cych sieci.
31
32 %prep
33 %setup -q -n %{name}
34 %patch0 -p1
35 %patch1 -p1
36
37 %build
38 %{__make} OPT="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-g -O0}"
39 %{__make} -C doc
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}}
44
45 install ip/{ip,rtmon,rtacct,routel} tc/tc $RPM_BUILD_ROOT%{_sbindir}
46
47 install etc/iproute2/rt_protos \
48         etc/iproute2/rt_realms \
49         etc/iproute2/rt_scopes \
50         etc/iproute2/rt_tables \
51         $RPM_BUILD_ROOT%{_sysconfdir}
52
53 gzip -9nf READ* RELNOTES doc/*.ps
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc {README,README.iproute2+tc,RELNOTES}.gz
61 %doc doc/*.ps.gz
62
63 %attr(755,root,root) %{_sbindir}/*
64 %{_sysconfdir}
This page took 0.079627 seconds and 4 git commands to generate.