]> git.pld-linux.org Git - packages/iproute2.git/blob - iproute2.spec
- typo.
[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:        1
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 BuildRequires:  tetex-dvips
15 BuildRequires:  tetex-latex
16 BuildRequires:  psutils
17 Obsoletes:      iproute
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _sbindir        /sbin
21 %define         _sysconfdir     /etc/iproute2
22
23 %description
24 This package contains the ip, tc and the rtmon tool that allow control
25 of routing and other aspects of networking.
26
27 %description -l pl
28 Ten pakiet zawiera programy pozwalaj±ce na kontrolê routingu i innych
29 aspektów dotycz±cych sieci.
30
31 %prep
32 %setup -q -n %{name}
33 %patch -p1
34
35 %build
36 %{__make} OPT="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-g -O}"
37 %{__make} -C doc
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}}
42
43 install ip/{ip,rtmon,rtacct,tc,mroutel} $RPM_BUILD_ROOT%{_sbindir}
44
45 install etc/iproute2/rt_protos \
46         etc/iproute2/rt_realms \
47         etc/iproute2/rt_scopes \
48         etc/iproute2/rt_tables \
49         $RPM_BUILD_ROOT%{_sysconfdir}
50
51 gzip -9nf READ* RELNOTES doc/*.ps
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc {README,README.iproute2+tc,RELNOTES}.gz
59 %doc doc/*.ps.gz
60
61 %attr(755,root,root) %{_sbindir}/*
62 %{_sysconfdir}
This page took 0.084911 seconds and 4 git commands to generate.