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