]> git.pld-linux.org Git - packages/iproute2.git/blame - iproute2.spec
- updated to 5.19.0
[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 7%bcond_without tc # don't build tc program (it breaks static linkage)
3679d517 8%bcond_without atm # disable ATM support for tc
c2f906a7 9%bcond_with uClibc # do some hacks to build with uClibc
6f4820ce
ER
10%bcond_with iface_descr # build with interface description support
11
9fc1dfd7 12Summary: Advanced IP routing and network device configuration tools
d2344512 13Summary(es.UTF-8): Herramientas para encaminamiento avanzado y configuración de interfaces de red
3679d517 14Summary(pl.UTF-8): Narzędzie do konfigurowania sieci
d2344512 15Summary(pt_BR.UTF-8): Ferramentas para roteamento avançado e configuração de interfaces de rede
354f4215 16Name: iproute2
9c6f7b37 17Version: 5.19.0
5916d627 18Release: 1
3679d517 19License: GPL v2+
354f4215 20Group: Networking/Admin
bed31e25 21Source0: https://www.kernel.org/pub/linux/utils/net/iproute2/%{name}-%{version}.tar.xz
9c6f7b37 22# Source0-md5: 415bd9eeb8515a585e245809d2fe45a6
03b26d3c 23Source1: %{name}.tmpfiles
33826d1b 24Patch0: %{name}-link.patch
9b297650 25Patch3: %{name}-LDFLAGS.patch
4f323620 26
b3946cd7 27Patch5: %{name}-build.patch
47fff01d 28Patch6: %{name}-print_cache_route_entries.patch
207621e4 29# extensions
af6313ca 30Patch10: %{name}-2.2.4-wrr.patch
00a4c5cb 31Patch11: esfq-%{name}.patch
91d521f5 32Patch12: 001-net-dev-iface-descr-0.1.diff
8f6469c2 33Patch14: %{name}-q_srr.v0.4.patch
26ae64ee 34Patch15: %{name}-ip_route_get.patch
40d95966 35URL: https://wiki.linuxfoundation.org/networking/iproute2
4ef82693 36BuildRequires: bison
4c573c73 37BuildRequires: db-devel
aca0174e
JB
38# libelf
39BuildRequires: elfutils-devel
e3fc76c4 40BuildRequires: flex
fa272163 41BuildRequires: iptables-devel >= 0:1.4.5
61cc2420 42BuildRequires: libbpf-devel >= 0.1.0
8fe3c7c9
JB
43BuildRequires: libbsd-devel
44BuildRequires: libcap-devel
aca0174e
JB
45BuildRequires: libmnl-devel
46BuildRequires: libselinux-devel
9c6f7b37 47BuildRequires: libtirpc-devel
d072516f 48%if %{with atm}
76ab126a 49BuildRequires: linux-atm-devel
d072516f 50%endif
1525a420 51BuildRequires: linux-libc-headers >= 7:2.6.12.0-15
aca0174e 52BuildRequires: pkgconfig
5916d627 53BuildRequires: rpm-build >= 4.6
aca0174e 54BuildRequires: rpmbuild(macros) >= 1.673
a4d66bf6 55BuildRequires: sed >= 4.0
33826d1b
JB
56BuildRequires: tar >= 1:1.22
57BuildRequires: xz
fa272163 58Requires: iptables-libs >= 0:1.4.5
151bfb35 59Obsoletes: ifstat < 1.2
e1c03590 60Obsoletes: iproute
cbbe9fec 61Obsoletes: iproute2-doc < 4.14.1
4c4edaba 62BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
8ca003ed 63
9ea83253 64%define _sbindir /sbin
65%define _sysconfdir /etc/iproute2
c2827c7c 66
8ca003ed 67%description
0d5db0b4
JB
68The iproute package contains networking utilities (ip, tc and rtmon,
69for example) which are designed to use the advanced networking
6f4820ce 70capabilities of the Linux 2.4.x and 2.6.x kernel.
e316d7c9 71
70fcbc5f
JR
72%description -l es.UTF-8
73Linux mantiene compatibilidad con los utilitarios estándares de
74configuración de la red, pero se necesitan nuevos utilitarios para
75usar los recursos y características del nuevo núcleo. Este paquete
e316d7c9 76incluye los nuevos utilitarios.
323e0978 77
70fcbc5f 78%description -l pl.UTF-8
0d5db0b4
JB
79Ten pakiet zawiera programy (m.in. ip, tc, rtmon) pozwalające na
80kontrolę routingu i innych aspektów dotyczących sieci z wykorzystaniem
81zaawansowanych możliwości jąder Linuksa 2.4.x i 2.6.x.
e316d7c9 82
70fcbc5f
JR
83%description -l pt_BR.UTF-8
84O Linux mantém compatibilidade com os utilitários padrão de
85configuração da rede, mas novos utilitários são necessários para fazer
86uso das características e recursos da nova kernel. This package
e316d7c9 87includes the new utilities.
323e0978 88
b60f3d88
JB
89%package devel
90Summary: Header file for tc plugins development
91Summary(pl.UTF-8): Plik nagłówkowy do tworzenia wtyczek programu tc
92Group: Development/Libraries
93# doesn't require base
94
95%description devel
96Header file for tc plugins development.
97
98%description devel -l pl.UTF-8
99Plik nagłówkowy do tworzenia wtyczek programu tc.
100
49c78676
JK
101%package -n libnetlink-devel
102Summary: Library for the netlink interface
d2344512 103Summary(pl.UTF-8): Biblioteka do interfejsu netlink
49c78676
JK
104Group: Development/Libraries
105
106%description -n libnetlink-devel
107This library provides an interface for kernel-user netlink interface.
108
70fcbc5f
JR
109%description -n libnetlink-devel -l pl.UTF-8
110Ta biblioteka udostępnia interfejs do interfejsu netlink między jądrem
111a przestrzenią użytkownika.
a52556c3 112
aca0174e
JB
113%package -n bash-completion-iproute2
114Summary: Bash completion for iproute2 commands
115Summary(pl.UTF-8): Bashowe dopełnianie parametrów poleceń iproute2
116Group: Applications/Shells
117Requires: %{name} = %{version}-%{release}
118Requires: bash-completion >= 2.0
5916d627 119BuildArch: noarch
aca0174e
JB
120
121%description -n bash-completion-iproute2
f8112367 122Bash completion for iproute2 commands (currently devlink and tc).
aca0174e
JB
123
124%description -n bash-completion-iproute2 -l pl.UTF-8
f8112367
JB
125Bashowe dopełnianie parametrów poleceń iproute2 (obecnie devlink i
126tc).
aca0174e 127
8ca003ed 128%prep
7e3e3f9a 129%setup -q
36f42953 130
9b297650 131# conflict with atm-vbr patched linux-libc-headers
cbbe9fec 132%{__rm} include/uapi/linux/atm.h
9b297650
JB
133
134%patch0 -p1
9b297650 135%patch3 -p1
4f323620 136
b3946cd7 137%patch5 -p1
47fff01d 138%patch6 -p1
91d521f5 139# extensions:
6234a9fe 140%patch10 -p1
039e8f2b 141%patch11 -p1
6f4820ce 142%{?with_iface_descr:%patch12 -p1}
8f6469c2 143%patch14 -p1
26ae64ee 144%patch15 -p1
d1f6ab22 145
a4d66bf6
JB
146%{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' ip/routel
147
8ca003ed 148%build
dd97cf21 149%{__make} \
93591f64 150%if %{with uClibc}
151 CC="%{_target_cpu}-uclibc-gcc" \
152 LD="%{_target_cpu}-uclibc-gcc" \
153%else
154 CC="%{__cc}" \
155 LD="%{__cc}" \
156%endif
f2b536a2 157 HOSTCC="%{__cc}" \
64551ae4 158 CCOPTS="%{rpmcflags} %{rpmcppflags} -Wno-unused-result -DXT_LIB_DIR=\\\"%{_libdir}/xtables\\\"" \
4e7688ae 159 LDFLAGS="%{rpmldflags} -Wl,-export-dynamic" \
e7a772a9 160 LIBDIR=%{_libdir} \
3f07eebf
JB
161 %{!?with_tc:SUBDIRS="lib ip misc"} \
162 V=1
207621e4 163
5e896a68
AM
164# make sure we don't produce broken ip binary
165./ip/ip link add type vlan help 2>&1 | grep -q "VLANID :=" || exit 1
166
8ca003ed
AM
167%install
168rm -rf $RPM_BUILD_ROOT
32443dcd 169install -d $RPM_BUILD_ROOT{%{_includedir},/var/run/netns,%{systemdtmpfilesdir}}
c2884fcb
AM
170
171%{__make} install \
172 LIBDIR=%{_libdir} \
173 DESTDIR=$RPM_BUILD_ROOT
174
1f99b759
JB
175# omitted by make install
176install -Dp man/man7/tc-hfsc.7 $RPM_BUILD_ROOT%{_mandir}/man7/tc-hfsc.7
177
fa272163 178# arpd is not packaged here
c2884fcb 179%{__rm} $RPM_BUILD_ROOT%{_sbindir}/arpd $RPM_BUILD_ROOT%{_mandir}/man8/arpd.8
0a1f6d9e 180
32443dcd
ER
181cp -p lib/libnetlink.a $RPM_BUILD_ROOT%{_libdir}
182cp -p include/libnetlink.h $RPM_BUILD_ROOT%{_includedir}
183
184cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
354f4215 185
8ca003ed
AM
186%clean
187rm -rf $RPM_BUILD_ROOT
188
189%files
190%defattr(644,root,root,755)
ca5bdfd0 191%doc README doc/actions examples
c2884fcb 192%attr(755,root,root) %{_sbindir}/bridge
a7f458f6 193%attr(755,root,root) %{_sbindir}/ctstat
5916d627 194%attr(755,root,root) %{_sbindir}/dcb
aca0174e 195%attr(755,root,root) %{_sbindir}/devlink
c2884fcb 196%attr(755,root,root) %{_sbindir}/genl
e1c03590
ER
197%attr(755,root,root) %{_sbindir}/ifstat
198%attr(755,root,root) %{_sbindir}/ip
199%attr(755,root,root) %{_sbindir}/lnstat
200%attr(755,root,root) %{_sbindir}/nstat
9542c7cd 201%attr(755,root,root) %{_sbindir}/rdma
e1c03590
ER
202%attr(755,root,root) %{_sbindir}/routel
203%attr(755,root,root) %{_sbindir}/rtacct
204%attr(755,root,root) %{_sbindir}/rtmon
a7f458f6 205%attr(755,root,root) %{_sbindir}/rtstat
e1c03590 206%attr(755,root,root) %{_sbindir}/ss
6bbfa630 207%attr(755,root,root) %{_sbindir}/tipc
5916d627 208%attr(755,root,root) %{_sbindir}/vdpa
dd519f44 209%dir %{_sysconfdir}
64551ae4 210%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bpf_pinning
c2884fcb
AM
211%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ematch_map
212%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/group
03b26d3c 213%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nl_protos
c2884fcb 214%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rt_dsfield
e1c03590
ER
215%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rt_protos
216%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rt_realms
217%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rt_scopes
218%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rt_tables
a0cc6116 219%{_mandir}/man8/bridge.8*
a7f458f6 220%{_mandir}/man8/ctstat.8*
5916d627
JB
221%{_mandir}/man8/dcb.8*
222%{_mandir}/man8/dcb-app.8*
223%{_mandir}/man8/dcb-buffer.8*
224%{_mandir}/man8/dcb-dcbx.8*
225%{_mandir}/man8/dcb-ets.8*
226%{_mandir}/man8/dcb-maxrate.8*
227%{_mandir}/man8/dcb-pfc.8*
3f07eebf
JB
228%{_mandir}/man8/devlink.8*
229%{_mandir}/man8/devlink-dev.8*
f8112367 230%{_mandir}/man8/devlink-dpipe.8*
8f9f37a4 231%{_mandir}/man8/devlink-health.8*
3f07eebf
JB
232%{_mandir}/man8/devlink-monitor.8*
233%{_mandir}/man8/devlink-port.8*
4a3626c0 234%{_mandir}/man8/devlink-rate.8*
d02fa201 235%{_mandir}/man8/devlink-region.8*
f8112367 236%{_mandir}/man8/devlink-resource.8*
3f07eebf 237%{_mandir}/man8/devlink-sb.8*
ca5bdfd0 238%{_mandir}/man8/devlink-trap.8*
f8112367 239%{_mandir}/man8/genl.8*
b60f3d88 240%{_mandir}/man8/ifstat.8*
f8112367
JB
241%{_mandir}/man8/ip.8*
242%{_mandir}/man8/ip-*.8*
3679d517 243%{_mandir}/man8/lnstat.8*
2dffe0e0 244%{_mandir}/man8/nstat.8*
40d95966 245%{_mandir}/man8/rdma.8*
9542c7cd
AM
246%{_mandir}/man8/rdma-dev.8*
247%{_mandir}/man8/rdma-link.8*
4f323620 248%{_mandir}/man8/rdma-resource.8*
40d95966
JB
249%{_mandir}/man8/rdma-statistic.8*
250%{_mandir}/man8/rdma-system.8*
3679d517
JB
251%{_mandir}/man8/routel.8*
252%{_mandir}/man8/rtacct.8*
253%{_mandir}/man8/rtmon.8*
a7f458f6 254%{_mandir}/man8/rtstat.8*
3679d517 255%{_mandir}/man8/ss.8*
215c2053
AO
256%{_mandir}/man8/tipc.8*
257%{_mandir}/man8/tipc-*.8*
5916d627
JB
258%{_mandir}/man8/vdpa.8*
259%{_mandir}/man8/vdpa-dev.8*
260%{_mandir}/man8/vdpa-mgmtdev.8*
9fc1dfd7 261%if %{with tc}
3679d517 262%attr(755,root,root) %{_sbindir}/tc
9fc1dfd7
ER
263%dir %{_libdir}/tc
264%attr(755,root,root) %{_libdir}/tc/*.so
c2884fcb 265%{_libdir}/tc/*.dist
1f99b759 266%{_mandir}/man7/tc-hfsc.7*
3679d517
JB
267%{_mandir}/man8/tc.8*
268%{_mandir}/man8/tc-*.8*
9fc1dfd7 269%endif
32443dcd
ER
270%{systemdtmpfilesdir}/%{name}.conf
271%dir %attr(750,root,root) /var/run/netns
49c78676 272
b60f3d88
JB
273%files devel
274%defattr(644,root,root,755)
275%{_includedir}/iproute2
276
49c78676
JK
277%files -n libnetlink-devel
278%defattr(644,root,root,755)
c529e3fb
JB
279%{_libdir}/libnetlink.a
280%{_includedir}/libnetlink.h
e1c03590 281%{_mandir}/man3/libnetlink.3*
9fc1dfd7 282
aca0174e
JB
283%files -n bash-completion-iproute2
284%defattr(644,root,root,755)
f8112367 285%{bash_compdir}/devlink
aca0174e 286%{bash_compdir}/tc
This page took 0.245917 seconds and 4 git commands to generate.