]> git.pld-linux.org Git - packages/iproute2.git/blame - iproute2.spec
- rel 2; fix usage on older kernels (like 2.6.21)
[packages/iproute2.git] / iproute2.spec
CommitLineData
4d4e8753 1#
0a1f6d9e
AM
2# TODO:
3# - fix build @ uClibc
039e8f2b 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)
d072516f 9%bcond_without atm # don't required ATM.
c2f906a7 10%bcond_with uClibc # do some hacks to build with uClibc
039e8f2b 11#%bcond_with iface_descr # build with interface description support
61f3b6a3 12#
0a1f6d9e 13Summary: Utility to control Networking behavior in.X kernels
d2344512
ER
14Summary(es.UTF-8): Herramientas para encaminamiento avanzado y configuración de interfaces de red
15Summary(pl.UTF-8): Narzędzie do kontrolowania Sieci w kernelach
16Summary(pt_BR.UTF-8): Ferramentas para roteamento avançado e configuração de interfaces de rede
354f4215 17Name: iproute2
aa691b5d 18# do not use ,,2.6.X'' as version here, put whole number like 2.6.8
2ef0c316 19Version: 2.6.23
d99b8ad3 20Release: 2
323e0978 21License: GPL
354f4215 22Group: Networking/Admin
2ef0c316
AM
23Source0: http://developer.osdl.org/dev/iproute2/download/%{name}-%{version}.tar.bz2
24# Source0-md5: 2e59da739ef19990408cf0a5cb0cae3e
4c4edaba 25Patch0: %{name}-build.patch
3f9edb83 26Patch1: %{name}-arp.patch
e3fc76c4 27Patch3: %{name}-iptables.patch
28Patch4: %{name}-iptables64.patch
93591f64 29Patch5: %{name}-LDFLAGS.patch
d99b8ad3 30Patch6: %{name}-nl-detect.patch
207621e4 31# extensions
af6313ca 32Patch10: %{name}-2.2.4-wrr.patch
00a4c5cb 33Patch11: esfq-%{name}.patch
91d521f5 34Patch12: 001-net-dev-iface-descr-0.1.diff
99e81fa6 35Patch13: %{name}-q_atm_c.patch
8f6469c2 36Patch14: %{name}-q_srr.v0.4.patch
9b057263 37URL: http://linux-net.osdl.org/index.php/Iproute2
4ef82693 38BuildRequires: bison
4c573c73 39BuildRequires: db-devel
e3fc76c4 40BuildRequires: flex
d072516f 41%if %{with atm}
76ab126a 42BuildRequires: linux-atm-devel
d072516f 43%endif
1525a420 44BuildRequires: linux-libc-headers >= 7:2.6.12.0-15
61f3b6a3
PS
45%if %{with doc}
46BuildRequires: psutils
47BuildRequires: sgml-tools
48BuildRequires: tetex-dvips
43c559c0 49BuildRequires: tetex-fonts-jknappen
76ac8df9 50BuildRequires: tetex-format-latex
de2f8bd6 51BuildRequires: tetex-metafont
61f3b6a3
PS
52BuildRequires: tetex-tex-babel
53%endif
12c8b5e2 54Obsoletes: iproute
b84ea0a7 55Obsoletes: ifstat
4c4edaba 56BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
8ca003ed 57
9ea83253 58%define _sbindir /sbin
59%define _sysconfdir /etc/iproute2
c2827c7c 60
8ca003ed 61%description
af6313ca
SP
62Linux maintains compatibility with the basic configuration utilities
63of the network (ifconfig, route) but a new utility is required to
64exploit the new characteristics and features of the kernel. This
65package includes the new utilities.
e316d7c9 66
70fcbc5f
JR
67%description -l es.UTF-8
68Linux mantiene compatibilidad con los utilitarios estándares de
69configuración de la red, pero se necesitan nuevos utilitarios para
70usar los recursos y características del nuevo núcleo. Este paquete
e316d7c9 71incluye los nuevos utilitarios.
323e0978 72
70fcbc5f
JR
73%description -l pl.UTF-8
74Ten pakiet zawiera programy pozwalające na kontrolę routingu i innych
75aspektów dotyczących sieci.
e316d7c9 76
70fcbc5f
JR
77%description -l pt_BR.UTF-8
78O Linux mantém compatibilidade com os utilitários padrão de
79configuração da rede, mas novos utilitários são necessários para fazer
80uso das características e recursos da nova kernel. This package
e316d7c9 81includes the new utilities.
323e0978 82
49c78676
JK
83%package -n libnetlink-devel
84Summary: Library for the netlink interface
d2344512 85Summary(pl.UTF-8): Biblioteka do interfejsu netlink
49c78676
JK
86Group: Development/Libraries
87
88%description -n libnetlink-devel
89This library provides an interface for kernel-user netlink interface.
90
70fcbc5f
JR
91%description -n libnetlink-devel -l pl.UTF-8
92Ta biblioteka udostępnia interfejs do interfejsu netlink między jądrem
93a przestrzenią użytkownika.
a52556c3 94
8ca003ed 95%prep
2ef0c316 96%setup -q
4c4edaba
JB
97#rm -rf include/linux
98%patch0 -p1
039e8f2b 99%patch1 -p1
36f42953 100
039e8f2b
BZ
101%if "%{_lib}" == "lib64"
102%patch4 -p1
103%else
104%patch3 -p1
105%endif
106%patch5 -p1
d99b8ad3 107%patch6 -p1
91d521f5
PG
108
109# extensions:
6234a9fe 110%patch10 -p1
039e8f2b 111%patch11 -p1
f30217b5 112#%{?with_iface_descr:%patch12 -p1}
99e81fa6 113%patch13 -p0
8f6469c2 114%patch14 -p1
d1f6ab22 115
8ca003ed 116%build
dd97cf21 117%{__make} \
93591f64 118%if %{with uClibc}
119 CC="%{_target_cpu}-uclibc-gcc" \
120 LD="%{_target_cpu}-uclibc-gcc" \
121%else
122 CC="%{__cc}" \
123 LD="%{__cc}" \
124%endif
f2b536a2 125 HOSTCC="%{__cc}" \
25f0047d 126 OPT="%{rpmcflags}" \
93591f64 127 LDFLAGS="%{rpmldflags}" \
128 %{!?with_tc:SUBDIRS="lib ip misc"}
207621e4 129
1b109167 130%{?with_doc:%{__make} -C doc}
8ca003ed
AM
131
132%install
133rm -rf $RPM_BUILD_ROOT
49382eb3 134install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir},%{_mandir}/man8,%{_libdir},%{_includedir},%{?with_tc:%{_libdir}/tc}}
9ea83253 135
3f9edb83 136install ip/{ip,rtmon,routel} %{?with_tc:tc/tc} misc/{ifstat,lnstat,nstat,rtacct,ss} $RPM_BUILD_ROOT%{_sbindir}
354f4215 137install etc/iproute2/rt_protos \
138 etc/iproute2/rt_realms \
139 etc/iproute2/rt_scopes \
140 etc/iproute2/rt_tables \
323e0978 141 $RPM_BUILD_ROOT%{_sysconfdir}
0a1f6d9e
AM
142
143install man/man8/* $RPM_BUILD_ROOT%{_mandir}/man8
144echo ".so tc-pbfifo.8" > $RPM_BUILD_ROOT%{_mandir}/man8/tc-bfifo.8
145echo ".so tc-pbfifo.8" > $RPM_BUILD_ROOT%{_mandir}/man8/tc-pfifo.8
146
49c78676
JK
147install lib/libnetlink.a $RPM_BUILD_ROOT%{_libdir}
148install include/libnetlink.h $RPM_BUILD_ROOT%{_includedir}
49382eb3 149%{?with_tc:install tc/*.so $RPM_BUILD_ROOT%{_libdir}/tc}
354f4215 150
8ca003ed
AM
151%clean
152rm -rf $RPM_BUILD_ROOT
153
154%files
155%defattr(644,root,root,755)
9b6ea7ca
AM
156%doc README README.decnet README.iproute2+tc README.lnstat RELNOTES
157%doc ChangeLog %{?with_doc:doc/*.ps}
93c6b3a3 158%attr(755,root,root) %{_sbindir}/*
dd519f44 159%dir %{_sysconfdir}
af6313ca 160%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
6ef7db99 161%{_mandir}/man8/*
49382eb3 162%{?with_tc:%dir %{_libdir}/tc}
163%{?with_tc:%attr(755,root,root) %{_libdir}/tc/*.so}
49c78676
JK
164
165%files -n libnetlink-devel
166%defattr(644,root,root,755)
a40db8cc
JB
167%{_libdir}/lib*.a
168%{_includedir}/*.h
This page took 0.061432 seconds and 4 git commands to generate.