]> git.pld-linux.org Git - packages/iproute2.git/blob - iproute2.spec
- changed version to include snapshot date
[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="$RPM_OPT_FLAGS"
37 %{__make} -C doc
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41
42 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}}
43
44 install -s ip/ip ip/rtmon ip/rtacct tc/tc $RPM_BUILD_ROOT%{_sbindir}
45 install    ip/routel $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.071279 seconds and 4 git commands to generate.