]> git.pld-linux.org Git - packages/iproute2.git/blobdiff - iproute2.spec
- release 2
[packages/iproute2.git] / iproute2.spec
index 33835de50bb987c22620952fd302611ff9982b71..43f966e0638dd02e4c037202f2a837a811117299 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,33 @@ 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.6.0
-Release:       1
+Version:       5.10.0
+Release:       2
 License:       GPL v2+
 Group:         Networking/Admin
 Source0:       https://www.kernel.org/pub/linux/utils/net/iproute2/%{name}-%{version}.tar.xz
-# Source0-md5: d015e437e4f744d51d3a1a53341826d5
+# Source0-md5: 19ffea480a21e600453776b7225f3319
 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: libbsd-devel
+BuildRequires: libcap-devel
 BuildRequires: libmnl-devel
 BuildRequires: libselinux-devel
 %if %{with atm}
@@ -50,19 +49,12 @@ BuildRequires:      linux-atm-devel
 BuildRequires: linux-libc-headers >= 7:2.6.12.0-15
 BuildRequires: pkgconfig
 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:     iproute
+Obsoletes:     iproute2-doc < 4.14.1
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sbindir        /sbin
@@ -90,6 +82,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,18 +106,6 @@ 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
@@ -122,29 +114,27 @@ Requires: %{name} = %{version}-%{release}
 Requires:      bash-completion >= 2.0
 
 %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
 
@@ -161,9 +151,8 @@ Bashowe dopełnianie parametrów poleceń iproute2 (obecnie tylko tc).
        CCOPTS="%{rpmcflags} %{rpmcppflags} -Wno-unused-result -DXT_LIB_DIR=\\\"%{_libdir}/xtables\\\"" \
        LDFLAGS="%{rpmldflags} -Wl,-export-dynamic" \
        LIBDIR=%{_libdir} \
-       %{!?with_tc:SUBDIRS="lib ip misc"}
-
-%{?with_doc:%{__make} -C doc}
+       %{!?with_tc:SUBDIRS="lib ip misc"} \
+       V=1
 
 # make sure we don't produce broken ip binary
 ./ip/ip link add type vlan help 2>&1 | grep -q "VLANID :=" || exit 1
@@ -187,19 +176,12 @@ 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}/devlink
@@ -209,6 +191,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
@@ -228,11 +211,30 @@ 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/ctstat.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/ctstat.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*
@@ -254,19 +256,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.04852 seconds and 4 git commands to generate.