]> git.pld-linux.org Git - packages/iproute2.git/blobdiff - iproute2.spec
- updated to 3.9.0
[packages/iproute2.git] / iproute2.spec
index 879e969932647cd58ea28f8ce4fc8da21a5f10dc..153ded5c1a786cd714b92bf36a2c6a836818e8bc 100644 (file)
@@ -1,44 +1,45 @@
 #
 # TODO:
-#      - fix build @ uClibc
-#       - fix iface_descr patch
+# - fix build @ uClibc
+# - 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             # don't required ATM.
+%bcond_without atm             # disable ATM support for tc
 %bcond_with    uClibc          # do some hacks to build with uClibc
-#%bcond_with   iface_descr     # build with interface description support
-#
-Summary:       Utility to control Networking behavior in.X kernels
+%bcond_with    iface_descr     # build with interface description support
+
+Summary:       Advanced IP routing and network device configuration tools
 Summary(es.UTF-8):     Herramientas para encaminamiento avanzado y configuración de interfaces de red
-Summary(pl.UTF-8):     Narzędzie do kontrolowania Sieci w kernelach
+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
-# do not use ,,2.6.X'' as version here, put whole number like 2.6.8
-Version:       2.6.34
-Release:       4
-License:       GPL
+Version:       3.9.0
+Release:       1
+License:       GPL v2+
 Group:         Networking/Admin
-Source0:       http://devresources.linux-foundation.org/dev/iproute2/download/%{name}-%{version}.tar.bz2
-# Source0-md5: 5c5742bdac05a1688f266512e685b83c
-Source1:       libnetlink.3
-Patch0:                %{name}-build.patch
-Patch1:                %{name}-arp.patch
-Patch3:                %{name}-iptables.patch
-Patch4:                %{name}-iptables64.patch
-Patch5:                %{name}-LDFLAGS.patch
+Source0:       http://kernel.org/pub/linux/utils/net/iproute2/%{name}-%{version}.tar.xz
+# Source0-md5: fd9db28e4f411a1e74de65c919ae590f
+Patch0:                %{name}-arp.patch
+Patch1:                %{name}-iptables.patch
+Patch2:                %{name}-iptables64.patch
+Patch3:                %{name}-LDFLAGS.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
-URL:           http://linux-net.osdl.org/index.php/Iproute2
+Patch15:       %{name}-ip_route_get.patch
+Patch16:       %{name}-build.patch
+URL:           http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
 BuildRequires: bison
 BuildRequires: db-devel
 BuildRequires: flex
-BuildRequires: iptables-devel >= 0:1.4.3
+BuildRequires: iptables-devel >= 0:1.4.5
+# for netlink/* headers used in ip
+BuildRequires: libnl1-devel
 %if %{with atm}
 BuildRequires: linux-atm-devel
 %endif
@@ -46,20 +47,13 @@ BuildRequires:      linux-libc-headers >= 7:2.6.12.0-15
 %if %{with doc}
 BuildRequires: psutils
 BuildRequires: sgml-tools
-%if "%{pld_release}" != "th"
-BuildRequires: tetex-dvips
-BuildRequires: tetex-fonts-jknappen
-BuildRequires: tetex-format-latex
-BuildRequires: tetex-metafont
-BuildRequires: tetex-tex-babel
-%else
 BuildRequires: texlive-dvips
 BuildRequires: texlive-fonts-cmsuper
 BuildRequires: texlive-fonts-jknappen
 BuildRequires: texlive-latex
 BuildRequires: texlive-tex-babel
 %endif
-%endif
+Requires:      iptables-libs >= 0:1.4.5
 Obsoletes:     ifstat
 Obsoletes:     iproute
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -68,10 +62,9 @@ BuildRoot:   %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                _sysconfdir     /etc/iproute2
 
 %description
-Linux maintains compatibility with the basic configuration utilities
-of the network (ifconfig, route) but a new utility is required to
-exploit the new characteristics and features of the kernel. This
-package includes the new utilities.
+The iproute package contains networking utilities (ip, tc and rtmon,
+for example) which are designed to use the advanced networking
+capabilities of the Linux 2.4.x and 2.6.x kernel.
 
 %description -l es.UTF-8
 Linux mantiene compatibilidad con los utilitarios estándares de
@@ -80,8 +73,9 @@ usar los recursos y características del nuevo núcleo. Este paquete
 incluye los nuevos utilitarios.
 
 %description -l pl.UTF-8
-Ten pakiet zawiera programy pozwalające na kontrolę routingu i innych
-aspektów dotyczących sieci.
+Ten pakiet zawiera programy (m.in. ip, tc, rtmon) pozwalające na
+kontrolę routingu i innych aspektów dotyczących sieci z wykorzystaniem
+zaawansowanych możliwości jąder Linuksa 2.4.x i 2.6.x.
 
 %description -l pt_BR.UTF-8
 O Linux mantém compatibilidade com os utilitários padrão de
@@ -101,25 +95,41 @@ 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ń.
+
 %prep
 %setup -q
-#rm -rf include/linux
-%patch0 -p1
-%patch1 -p1
 
+# conflict with atm-vbr patched linux-libc-headers
+%{__rm} include/linux/atm.h
+#%{__rm} -r include/linux
+
+%patch0 -p1
 %if "%{_lib}" == "lib64"
-%patch4 -p1
+%patch2 -p1
 %else
-%patch3 -p1
+%patch1 -p1
 %endif
-%patch5 -p1
+%patch3 -p1
 
 # extensions:
 %patch10 -p1
 %patch11 -p1
-#%{?with_iface_descr:%patch12 -p1}
+%{?with_iface_descr:%patch12 -p1}
 %patch13 -p0
 %patch14 -p1
+%patch15 -p1
+%patch16 -p1
 
 %build
 %{__make} \
@@ -131,8 +141,9 @@ a przestrzenią użytkownika.
        LD="%{__cc}" \
 %endif
        HOSTCC="%{__cc}" \
-       OPT="%{rpmcflags}" \
+       CCOPTS="%{rpmcflags} %{rpmcppflags} -Wno-unused-result" \
        LDFLAGS="%{rpmldflags} -Wl,-export-dynamic" \
+       LIBDIR=%{_libdir} \
        %{!?with_tc:SUBDIRS="lib ip misc"}
 
 %{?with_doc:%{__make} -C doc}
@@ -142,51 +153,88 @@ a przestrzenią użytkownika.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir},%{_mandir}/man{3,8},%{_libdir},%{_includedir},%{?with_tc:%{_libdir}/tc}}
+install -d $RPM_BUILD_ROOT%{_includedir}
+
+%{__make} install \
+       LIBDIR=%{_libdir} \
+       DESTDIR=$RPM_BUILD_ROOT
 
-install ip/{ip,rtmon,routel} %{?with_tc:tc/tc} misc/{ifstat,lnstat,nstat,rtacct,ss} $RPM_BUILD_ROOT%{_sbindir}
-install etc/iproute2/rt_protos \
-       etc/iproute2/rt_realms \
-       etc/iproute2/rt_scopes \
-       etc/iproute2/rt_tables \
-       $RPM_BUILD_ROOT%{_sysconfdir}
+# omitted by make install
+install -Dp man/man7/tc-hfsc.7 $RPM_BUILD_ROOT%{_mandir}/man7/tc-hfsc.7
 
-cp -a man/man8/*       $RPM_BUILD_ROOT%{_mandir}/man8
-echo ".so tc-pbfifo.8" > $RPM_BUILD_ROOT%{_mandir}/man8/tc-bfifo.8
-echo ".so tc-pbfifo.8" > $RPM_BUILD_ROOT%{_mandir}/man8/tc-pfifo.8
-cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man3
+# arpd is not packaged here
+%{__rm} $RPM_BUILD_ROOT%{_sbindir}/arpd $RPM_BUILD_ROOT%{_mandir}/man8/arpd.8
 
-install lib/libnetlink.a $RPM_BUILD_ROOT%{_libdir}
-install include/libnetlink.h $RPM_BUILD_ROOT%{_includedir}
-%{?with_tc:install tc/*.so $RPM_BUILD_ROOT%{_libdir}/tc}
+cp -a lib/libnetlink.a $RPM_BUILD_ROOT%{_libdir}
+cp -a include/libnetlink.h $RPM_BUILD_ROOT%{_includedir}
+
+%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.lnstat RELNOTES
-%doc ChangeLog %{?with_doc:doc/*.ps}
+%doc README README.decnet README.iproute2+tc README.distribution README.lnstat
+%attr(755,root,root) %{_sbindir}/bridge
+%attr(755,root,root) %{_sbindir}/ctstat
+%attr(755,root,root) %{_sbindir}/genl
+%attr(755,root,root) %{_sbindir}/ifcfg
 %attr(755,root,root) %{_sbindir}/ifstat
 %attr(755,root,root) %{_sbindir}/ip
 %attr(755,root,root) %{_sbindir}/lnstat
 %attr(755,root,root) %{_sbindir}/nstat
+%attr(755,root,root) %{_sbindir}/routef
 %attr(755,root,root) %{_sbindir}/routel
 %attr(755,root,root) %{_sbindir}/rtacct
 %attr(755,root,root) %{_sbindir}/rtmon
+%attr(755,root,root) %{_sbindir}/rtpr
+%attr(755,root,root) %{_sbindir}/rtstat
 %attr(755,root,root) %{_sbindir}/ss
-%attr(755,root,root) %{_sbindir}/tc
 %dir %{_sysconfdir}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ematch_map
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/group
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rt_dsfield
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rt_protos
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rt_realms
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rt_scopes
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rt_tables
-%{_mandir}/man8/*
-%{?with_tc:%dir %{_libdir}/tc}
-%{?with_tc:%attr(755,root,root) %{_libdir}/tc/*.so}
+%{_mandir}/man8/bridge.8*
+%{_mandir}/man8/ip.8*
+%{_mandir}/man8/ip-*.8*
+%{_mandir}/man8/ctstat.8*
+%{_mandir}/man8/lnstat.8*
+%{_mandir}/man8/nstat.8*
+%{_mandir}/man8/routef.8*
+%{_mandir}/man8/routel.8*
+%{_mandir}/man8/rtacct.8*
+%{_mandir}/man8/rtmon.8*
+%{_mandir}/man8/rtstat.8*
+%{_mandir}/man8/ss.8*
+%if %{with tc}
+%attr(755,root,root) %{_sbindir}/tc
+%dir %{_libdir}/tc
+%attr(755,root,root) %{_libdir}/tc/*.so
+%{_libdir}/tc/*.dist
+%{_mandir}/man7/tc-hfsc.7*
+%{_mandir}/man8/tc.8*
+%{_mandir}/man8/tc-*.8*
+%endif
 
 %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
This page took 0.172615 seconds and 4 git commands to generate.