]> git.pld-linux.org Git - packages/iproute2.git/blame - iproute2.spec
- pl description for -doc
[packages/iproute2.git] / iproute2.spec
CommitLineData
4d4e8753 1#
0a1f6d9e 2# TODO:
6f4820ce
ER
3# - fix build @ uClibc
4# - fix iface_descr patch
0a1f6d9e 5#
4d4e8753 6# Conditional build
c2f906a7
PS
7%bcond_without doc # don't build documentation
8%bcond_without tc # don't build tc program (it breaks static linkage)
3679d517 9%bcond_without atm # disable ATM support for tc
c2f906a7 10%bcond_with uClibc # do some hacks to build with uClibc
6f4820ce
ER
11%bcond_with iface_descr # build with interface description support
12
9fc1dfd7 13Summary: Advanced IP routing and network device configuration tools
d2344512 14Summary(es.UTF-8): Herramientas para encaminamiento avanzado y configuración de interfaces de red
3679d517 15Summary(pl.UTF-8): Narzędzie do konfigurowania sieci
d2344512 16Summary(pt_BR.UTF-8): Ferramentas para roteamento avançado e configuração de interfaces de rede
354f4215 17Name: iproute2
9a33fe02
CM
18Version: 2.6.37
19Release: 1
3679d517 20License: GPL v2+
354f4215 21Group: Networking/Admin
50efb828 22Source0: http://devresources.linux-foundation.org/dev/iproute2/download/%{name}-%{version}.tar.bz2
9a33fe02 23# Source0-md5: 9774ff9d74ebd301bf56bd8d74473786
e1c03590 24Source1: libnetlink.3
4c4edaba 25Patch0: %{name}-build.patch
3f9edb83 26Patch1: %{name}-arp.patch
e3fc76c4 27Patch3: %{name}-iptables.patch
28Patch4: %{name}-iptables64.patch
93591f64 29Patch5: %{name}-LDFLAGS.patch
207621e4 30# extensions
af6313ca 31Patch10: %{name}-2.2.4-wrr.patch
00a4c5cb 32Patch11: esfq-%{name}.patch
91d521f5 33Patch12: 001-net-dev-iface-descr-0.1.diff
99e81fa6 34Patch13: %{name}-q_atm_c.patch
8f6469c2 35Patch14: %{name}-q_srr.v0.4.patch
26ae64ee 36Patch15: %{name}-ip_route_get.patch
e4e29140 37URL: http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
4ef82693 38BuildRequires: bison
4c573c73 39BuildRequires: db-devel
e3fc76c4 40BuildRequires: flex
4daabbab 41BuildRequires: iptables-devel >= 0:1.4.3
d072516f 42%if %{with atm}
76ab126a 43BuildRequires: linux-atm-devel
d072516f 44%endif
1525a420 45BuildRequires: linux-libc-headers >= 7:2.6.12.0-15
61f3b6a3
PS
46%if %{with doc}
47BuildRequires: psutils
48BuildRequires: sgml-tools
defcb014 49%if "%{pld_release}" != "th"
50BuildRequires: tetex-dvips
51BuildRequires: tetex-fonts-jknappen
52BuildRequires: tetex-format-latex
53BuildRequires: tetex-metafont
54BuildRequires: tetex-tex-babel
55%else
38a6c613 56BuildRequires: texlive-dvips
57BuildRequires: texlive-fonts-cmsuper
58BuildRequires: texlive-fonts-jknappen
59BuildRequires: texlive-latex
60BuildRequires: texlive-tex-babel
61f3b6a3 61%endif
defcb014 62%endif
b84ea0a7 63Obsoletes: ifstat
e1c03590 64Obsoletes: iproute
4c4edaba 65BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
8ca003ed 66
9ea83253 67%define _sbindir /sbin
68%define _sysconfdir /etc/iproute2
c2827c7c 69
8ca003ed 70%description
6f4820ce
ER
71The iproute package contains networking utilities (ip and rtmon, for
72example) which are designed to use the advanced networking
73capabilities of the Linux 2.4.x and 2.6.x kernel.
e316d7c9 74
70fcbc5f
JR
75%description -l es.UTF-8
76Linux mantiene compatibilidad con los utilitarios estándares de
77configuración de la red, pero se necesitan nuevos utilitarios para
78usar los recursos y características del nuevo núcleo. Este paquete
e316d7c9 79incluye los nuevos utilitarios.
323e0978 80
70fcbc5f
JR
81%description -l pl.UTF-8
82Ten pakiet zawiera programy pozwalające na kontrolę routingu i innych
83aspektów dotyczących sieci.
e316d7c9 84
70fcbc5f
JR
85%description -l pt_BR.UTF-8
86O Linux mantém compatibilidade com os utilitários padrão de
87configuração da rede, mas novos utilitários são necessários para fazer
88uso das características e recursos da nova kernel. This package
e316d7c9 89includes the new utilities.
323e0978 90
49c78676
JK
91%package -n libnetlink-devel
92Summary: Library for the netlink interface
d2344512 93Summary(pl.UTF-8): Biblioteka do interfejsu netlink
49c78676
JK
94Group: Development/Libraries
95
96%description -n libnetlink-devel
97This library provides an interface for kernel-user netlink interface.
98
70fcbc5f
JR
99%description -n libnetlink-devel -l pl.UTF-8
100Ta biblioteka udostępnia interfejs do interfejsu netlink między jądrem
101a przestrzenią użytkownika.
a52556c3 102
9fc1dfd7
ER
103%package doc
104Summary: ip and tc documentation with examples
3679d517 105Summary(pl.UTF-8): Dokumentacja do ip i tc z przykładami
9fc1dfd7
ER
106License: GPL v2+
107Group: Applications/System
108
109%description doc
110The iproute documentation contains howtos and examples of settings.
111
3679d517
JB
112%description doc -l pl.UTF-8
113Dokumentacja do iproute zawiera "howto" oraz przykłady ustawień.
114
8ca003ed 115%prep
50efb828 116%setup -q
4c4edaba
JB
117#rm -rf include/linux
118%patch0 -p1
039e8f2b 119%patch1 -p1
36f42953 120
039e8f2b
BZ
121%if "%{_lib}" == "lib64"
122%patch4 -p1
123%else
124%patch3 -p1
125%endif
126%patch5 -p1
91d521f5
PG
127
128# extensions:
6234a9fe 129%patch10 -p1
039e8f2b 130%patch11 -p1
6f4820ce 131%{?with_iface_descr:%patch12 -p1}
99e81fa6 132%patch13 -p0
8f6469c2 133%patch14 -p1
26ae64ee 134%patch15 -p1
d1f6ab22 135
8ca003ed 136%build
dd97cf21 137%{__make} \
93591f64 138%if %{with uClibc}
139 CC="%{_target_cpu}-uclibc-gcc" \
140 LD="%{_target_cpu}-uclibc-gcc" \
141%else
142 CC="%{__cc}" \
143 LD="%{__cc}" \
144%endif
f2b536a2 145 HOSTCC="%{__cc}" \
e7a772a9 146 OPT="%{rpmcflags} %{rpmcppflags}" \
4e7688ae 147 LDFLAGS="%{rpmldflags} -Wl,-export-dynamic" \
e7a772a9 148 LIBDIR=%{_libdir} \
93591f64 149 %{!?with_tc:SUBDIRS="lib ip misc"}
207621e4 150
1b109167 151%{?with_doc:%{__make} -C doc}
8ca003ed 152
5e896a68
AM
153# make sure we don't produce broken ip binary
154./ip/ip link add type vlan help 2>&1 | grep -q "VLANID :=" || exit 1
155
8ca003ed
AM
156%install
157rm -rf $RPM_BUILD_ROOT
e1c03590 158install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir},%{_mandir}/man{3,8},%{_libdir},%{_includedir},%{?with_tc:%{_libdir}/tc}}
9ea83253 159
6f4820ce
ER
160install -p ip/{ip,rtmon,routel} %{?with_tc:tc/tc} misc/{ifstat,lnstat,nstat,rtacct,ss} $RPM_BUILD_ROOT%{_sbindir}
161cp -a etc/iproute2/rt_protos \
354f4215 162 etc/iproute2/rt_realms \
163 etc/iproute2/rt_scopes \
164 etc/iproute2/rt_tables \
323e0978 165 $RPM_BUILD_ROOT%{_sysconfdir}
0a1f6d9e 166
e1c03590 167cp -a man/man8/* $RPM_BUILD_ROOT%{_mandir}/man8
0a1f6d9e
AM
168echo ".so tc-pbfifo.8" > $RPM_BUILD_ROOT%{_mandir}/man8/tc-bfifo.8
169echo ".so tc-pbfifo.8" > $RPM_BUILD_ROOT%{_mandir}/man8/tc-pfifo.8
e1c03590 170cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man3
0a1f6d9e 171
6f4820ce
ER
172cp -a lib/libnetlink.a $RPM_BUILD_ROOT%{_libdir}
173cp -a include/libnetlink.h $RPM_BUILD_ROOT%{_includedir}
174%{?with_tc:install -p tc/*.so $RPM_BUILD_ROOT%{_libdir}/tc}
354f4215 175
9fc1dfd7
ER
176%if %{with doc}
177install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
178cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
179%endif
180
8ca003ed
AM
181%clean
182rm -rf $RPM_BUILD_ROOT
183
184%files
185%defattr(644,root,root,755)
3679d517 186%doc ChangeLog README README.decnet README.iproute2+tc README.distribution README.lnstat
e1c03590
ER
187%attr(755,root,root) %{_sbindir}/ifstat
188%attr(755,root,root) %{_sbindir}/ip
189%attr(755,root,root) %{_sbindir}/lnstat
190%attr(755,root,root) %{_sbindir}/nstat
191%attr(755,root,root) %{_sbindir}/routel
192%attr(755,root,root) %{_sbindir}/rtacct
193%attr(755,root,root) %{_sbindir}/rtmon
194%attr(755,root,root) %{_sbindir}/ss
dd519f44 195%dir %{_sysconfdir}
e1c03590
ER
196%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rt_protos
197%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rt_realms
198%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rt_scopes
199%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rt_tables
3679d517
JB
200%{_mandir}/man8/arpd.8*
201%{_mandir}/man8/ip.8*
202%{_mandir}/man8/lnstat.8*
203%{_mandir}/man8/routel.8*
204%{_mandir}/man8/rtacct.8*
205%{_mandir}/man8/rtmon.8*
206%{_mandir}/man8/ss.8*
9fc1dfd7 207%if %{with tc}
3679d517 208%attr(755,root,root) %{_sbindir}/tc
9fc1dfd7
ER
209%dir %{_libdir}/tc
210%attr(755,root,root) %{_libdir}/tc/*.so
3679d517
JB
211%{_mandir}/man8/tc.8*
212%{_mandir}/man8/tc-*.8*
9fc1dfd7 213%endif
49c78676
JK
214
215%files -n libnetlink-devel
216%defattr(644,root,root,755)
c529e3fb
JB
217%{_libdir}/libnetlink.a
218%{_includedir}/libnetlink.h
e1c03590 219%{_mandir}/man3/libnetlink.3*
9fc1dfd7
ER
220
221%if %{with doc}
222%files doc
223%defattr(644,root,root,755)
3679d517 224%doc RELNOTES doc/*.ps
9fc1dfd7
ER
225%{_examplesdir}/%{name}-%{version}
226%endif
This page took 0.077346 seconds and 4 git commands to generate.