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