]> git.pld-linux.org Git - packages/iproute2.git/blobdiff - iproute2.spec
- updated to 5.12.0
[packages/iproute2.git] / iproute2.spec
index 3d58e27cc51a1795048702d1907a86a468e58eda..2f43ab57569d76a5157a8b8ee6c64b730519b12b 100644 (file)
@@ -4,7 +4,6 @@
 # - fix iface_descr patch
 #
 # Conditional build
-%bcond_without doc             # don't build documentation
 %bcond_without tc              # don't build tc program (it breaks static linkage)
 %bcond_without atm             # disable ATM support for tc
 %bcond_with    uClibc          # do some hacks to build with uClibc
@@ -15,33 +14,34 @@ Summary(es.UTF-8):  Herramientas para encaminamiento avanzado y configuración de
 Summary(pl.UTF-8):     Narzędzie do konfigurowania sieci
 Summary(pt_BR.UTF-8):  Ferramentas para roteamento avançado e configuração de interfaces de rede
 Name:          iproute2
-Version:       4.8.0
+Version:       5.12.0
 Release:       1
 License:       GPL v2+
 Group:         Networking/Admin
 Source0:       https://www.kernel.org/pub/linux/utils/net/iproute2/%{name}-%{version}.tar.xz
-# Source0-md5: 54c6411863cb16a4375aa5f788dca767
+# Source0-md5: bbebacdabd4628ff86453ef4771a242a
 Source1:       %{name}.tmpfiles
-Patch0:                %{name}-arp.patch
-Patch1:                %{name}-old-hyperref.patch
+Patch0:                %{name}-link.patch
 Patch3:                %{name}-LDFLAGS.patch
-Patch4:                fix-bashisms.patch
+
 Patch5:                %{name}-build.patch
 Patch6:                %{name}-print_cache_route_entries.patch
 # extensions
 Patch10:       %{name}-2.2.4-wrr.patch
 Patch11:       esfq-%{name}.patch
 Patch12:       001-net-dev-iface-descr-0.1.diff
-Patch13:       %{name}-q_atm_c.patch
 Patch14:       %{name}-q_srr.v0.4.patch
 Patch15:       %{name}-ip_route_get.patch
-URL:           http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
+URL:           https://wiki.linuxfoundation.org/networking/iproute2
 BuildRequires: bison
 BuildRequires: db-devel
 # libelf
 BuildRequires: elfutils-devel
 BuildRequires: flex
 BuildRequires: iptables-devel >= 0:1.4.5
+BuildRequires: libbpf-devel
+BuildRequires: libbsd-devel
+BuildRequires: libcap-devel
 BuildRequires: libmnl-devel
 BuildRequires: libselinux-devel
 %if %{with atm}
@@ -49,20 +49,14 @@ BuildRequires:      linux-atm-devel
 %endif
 BuildRequires: linux-libc-headers >= 7:2.6.12.0-15
 BuildRequires: pkgconfig
+BuildRequires: rpm-build >= 4.6
 BuildRequires: rpmbuild(macros) >= 1.673
-%if %{with doc}
-BuildRequires: psutils
-BuildRequires: sgml-tools
-BuildRequires: texlive-dvips
-BuildRequires: texlive-fonts-cmsuper
-BuildRequires: texlive-fonts-jknappen
-BuildRequires: texlive-latex
-BuildRequires: texlive-latex-booktabs
-BuildRequires: texlive-tex-babel
-%endif
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
 Requires:      iptables-libs >= 0:1.4.5
-Obsoletes:     ifstat
+Obsoletes:     ifstat < 1.2
 Obsoletes:     iproute
+Obsoletes:     iproute2-doc < 4.14.1
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sbindir        /sbin
@@ -90,6 +84,18 @@ configuração da rede, mas novos utilitários são necessários para fazer
 uso das características e recursos da nova kernel. This package
 includes the new utilities.
 
+%package devel
+Summary:       Header file for tc plugins development
+Summary(pl.UTF-8):     Plik nagłówkowy do tworzenia wtyczek programu tc
+Group:         Development/Libraries
+# doesn't require base
+
+%description devel
+Header file for tc plugins development.
+
+%description devel -l pl.UTF-8
+Plik nagłówkowy do tworzenia wtyczek programu tc.
+
 %package -n libnetlink-devel
 Summary:       Library for the netlink interface
 Summary(pl.UTF-8):     Biblioteka do interfejsu netlink
@@ -102,49 +108,36 @@ This library provides an interface for kernel-user netlink interface.
 Ta biblioteka udostępnia interfejs do interfejsu netlink między jądrem
 a przestrzenią użytkownika.
 
-%package doc
-Summary:       ip and tc documentation with examples
-Summary(pl.UTF-8):     Dokumentacja do ip i tc z przykładami
-License:       GPL v2+
-Group:         Applications/System
-
-%description doc
-The iproute documentation contains howtos and examples of settings.
-
-%description doc -l pl.UTF-8
-Dokumentacja do iproute zawiera "howto" oraz przykłady ustawień.
-
 %package -n bash-completion-iproute2
 Summary:       Bash completion for iproute2 commands
 Summary(pl.UTF-8):     Bashowe dopełnianie parametrów poleceń iproute2
 Group:         Applications/Shells
 Requires:      %{name} = %{version}-%{release}
 Requires:      bash-completion >= 2.0
+BuildArch:     noarch
 
 %description -n bash-completion-iproute2
-Bash completion for iproute2 commands (currently only tc).
+Bash completion for iproute2 commands (currently devlink and tc).
 
 %description -n bash-completion-iproute2 -l pl.UTF-8
-Bashowe dopełnianie parametrów poleceń iproute2 (obecnie tylko tc).
+Bashowe dopełnianie parametrów poleceń iproute2 (obecnie devlink i
+tc).
 
 %prep
 %setup -q
 
 # conflict with atm-vbr patched linux-libc-headers
-%{__rm} include/linux/atm.h
-#%{__rm} -r include/linux
+%{__rm} include/uapi/linux/atm.h
 
 %patch0 -p1
-%patch1 -p1
 %patch3 -p1
-%patch4 -p1
+
 %patch5 -p1
 %patch6 -p1
 # extensions:
 %patch10 -p1
 %patch11 -p1
 %{?with_iface_descr:%patch12 -p1}
-%patch13 -p0
 %patch14 -p1
 %patch15 -p1
 
@@ -164,8 +157,6 @@ Bashowe dopełnianie parametrów poleceń iproute2 (obecnie tylko tc).
        %{!?with_tc:SUBDIRS="lib ip misc"} \
        V=1
 
-%{?with_doc:%{__make} -C doc}
-
 # make sure we don't produce broken ip binary
 ./ip/ip link add type vlan help 2>&1 | grep -q "VLANID :=" || exit 1
 
@@ -188,21 +179,15 @@ cp -p include/libnetlink.h $RPM_BUILD_ROOT%{_includedir}
 
 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
 
-%if %{with doc}
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-%endif
-
-%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/iproute2
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README README.decnet README.iproute2+tc README.distribution README.lnstat
+%doc README doc/actions examples
 %attr(755,root,root) %{_sbindir}/bridge
 %attr(755,root,root) %{_sbindir}/ctstat
+%attr(755,root,root) %{_sbindir}/dcb
 %attr(755,root,root) %{_sbindir}/devlink
 %attr(755,root,root) %{_sbindir}/genl
 %attr(755,root,root) %{_sbindir}/ifcfg
@@ -210,6 +195,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_sbindir}/ip
 %attr(755,root,root) %{_sbindir}/lnstat
 %attr(755,root,root) %{_sbindir}/nstat
+%attr(755,root,root) %{_sbindir}/rdma
 %attr(755,root,root) %{_sbindir}/routef
 %attr(755,root,root) %{_sbindir}/routel
 %attr(755,root,root) %{_sbindir}/rtacct
@@ -218,6 +204,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_sbindir}/rtstat
 %attr(755,root,root) %{_sbindir}/ss
 %attr(755,root,root) %{_sbindir}/tipc
+%attr(755,root,root) %{_sbindir}/vdpa
 %dir %{_sysconfdir}
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bpf_pinning
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ematch_map
@@ -229,16 +216,37 @@ rm -rf $RPM_BUILD_ROOT
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rt_scopes
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rt_tables
 %{_mandir}/man8/bridge.8*
-%{_mandir}/man8/ip.8*
-%{_mandir}/man8/ip-*.8*
 %{_mandir}/man8/ctstat.8*
+%{_mandir}/man8/dcb.8*
+%{_mandir}/man8/dcb-app.8*
+%{_mandir}/man8/dcb-buffer.8*
+%{_mandir}/man8/dcb-dcbx.8*
+%{_mandir}/man8/dcb-ets.8*
+%{_mandir}/man8/dcb-maxrate.8*
+%{_mandir}/man8/dcb-pfc.8*
 %{_mandir}/man8/devlink.8*
 %{_mandir}/man8/devlink-dev.8*
+%{_mandir}/man8/devlink-dpipe.8*
+%{_mandir}/man8/devlink-health.8*
 %{_mandir}/man8/devlink-monitor.8*
 %{_mandir}/man8/devlink-port.8*
+%{_mandir}/man8/devlink-region.8*
+%{_mandir}/man8/devlink-resource.8*
 %{_mandir}/man8/devlink-sb.8*
+%{_mandir}/man8/devlink-trap.8*
+%{_mandir}/man8/genl.8*
+%{_mandir}/man8/ifcfg.8*
+%{_mandir}/man8/ifstat.8*
+%{_mandir}/man8/ip.8*
+%{_mandir}/man8/ip-*.8*
 %{_mandir}/man8/lnstat.8*
 %{_mandir}/man8/nstat.8*
+%{_mandir}/man8/rdma.8*
+%{_mandir}/man8/rdma-dev.8*
+%{_mandir}/man8/rdma-link.8*
+%{_mandir}/man8/rdma-resource.8*
+%{_mandir}/man8/rdma-statistic.8*
+%{_mandir}/man8/rdma-system.8*
 %{_mandir}/man8/routef.8*
 %{_mandir}/man8/routel.8*
 %{_mandir}/man8/rtacct.8*
@@ -248,6 +256,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man8/ss.8*
 %{_mandir}/man8/tipc.8*
 %{_mandir}/man8/tipc-*.8*
+%{_mandir}/man8/vdpa.8*
+%{_mandir}/man8/vdpa-dev.8*
+%{_mandir}/man8/vdpa-mgmtdev.8*
 %if %{with tc}
 %attr(755,root,root) %{_sbindir}/tc
 %dir %{_libdir}/tc
@@ -260,19 +271,17 @@ rm -rf $RPM_BUILD_ROOT
 %{systemdtmpfilesdir}/%{name}.conf
 %dir %attr(750,root,root) /var/run/netns
 
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/iproute2
+
 %files -n libnetlink-devel
 %defattr(644,root,root,755)
 %{_libdir}/libnetlink.a
 %{_includedir}/libnetlink.h
 %{_mandir}/man3/libnetlink.3*
 
-%if %{with doc}
-%files doc
-%defattr(644,root,root,755)
-%doc doc/*.ps
-%{_examplesdir}/%{name}-%{version}
-%endif
-
 %files -n bash-completion-iproute2
 %defattr(644,root,root,755)
+%{bash_compdir}/devlink
 %{bash_compdir}/tc
This page took 0.054109 seconds and 4 git commands to generate.