2 Summary: collection of utilities for controlling TCP/IP networking and traffic control in Linux
5 Source: %{name}-%{version}.tar.gz
6 Patch1: act_ipt_fix_xtables.patch
7 Patch2: gcc4_8_build_fix.patch
9 URL: https://www.kernel.org/pub/linux/utils/net/iproute2/
11 BuildRequires: kernel-headers
14 BuildRequires: db4-devel
15 BuildRequires: pkgconfig(xtables)
16 BuildRequires: libnl2-devel
17 Conflicts: kernel < 2.4.20
20 The iproute package contains networking utilities (ip, rtmon, tc etc)
21 which are designed to use the advanced networking capabilities of the Linux
22 2.4.x and 2.6.x kernel. Ip controls IPv4 and IPv6 configuration, tc stands
23 for traffic control. Both prints detailed usage. rtmon monitors the routing.
27 Summary: development files for iproutes libnetlink
30 Requires: %{name} = %{version}-%{release}
33 Header files, library and documentation for libnetlink.
34 A library for accessing the netlink service.
47 %{buildroot}%{_includedir} \
48 %{buildroot}%{_sbindir} \
49 %{buildroot}%{_mandir}/man3 \
50 %{buildroot}%{_mandir}/man7 \
51 %{buildroot}%{_mandir}/man8 \
52 %{buildroot}%{_datadir}/tc \
53 %{buildroot}%{_libdir}/tc \
54 %{buildroot}/usr%{_sysconfdir}/iproute2 \
55 %{buildroot}%{_datadir}/license
73 do install -m755 ${binary} %{buildroot}%{_sbindir}
76 cd %{buildroot}%{_sbindir}
82 install -m755 tc/m_xt.so %{buildroot}%{_libdir}/tc
83 cd %{buildroot}%{_libdir}/tc
84 ln -s m_xt.so m_ipt.so
88 install -m644 include/libnetlink.h %{buildroot}%{_includedir}
89 install -m644 lib/libnetlink.a %{buildroot}%{_libdir}
92 iconv -f latin1 -t utf8 man/man8/ss.8 > man/man8/ss.8.utf8 &&
93 mv man/man8/ss.8.utf8 man/man8/ss.8
94 install -m644 man/man3/*.3 %{buildroot}%{_mandir}/man3
95 install -m644 man/man7/*.7 %{buildroot}%{_mandir}/man7
96 install -m644 man/man8/*.8 %{buildroot}%{_mandir}/man8
102 netem/paretonormal.dist
103 do install -m644 ${shared} %{buildroot}%{_datadir}/tc
107 install -m644 etc/iproute2/* %{buildroot}/usr%{_sysconfdir}/iproute2
109 cp COPYING %{buildroot}%{_datadir}/license/iproute2
110 cp COPYING %{buildroot}%{_datadir}/license/iproute2-devel
113 rm -rf $RPM_BUILD_ROOT
118 %postun -p /sbin/ldconfig
121 %manifest iproute2.manifest
122 %dir /usr%{_sysconfdir}/iproute2
123 %attr(644,root,root) %config(noreplace) /usr%{_sysconfdir}/iproute2/*
124 %defattr(-,root,root)
130 %dir %{_datadir}/license/
131 %{_datadir}/license/iproute2
134 %defattr(-,root,root)
135 %doc README README.decnet README.iproute2+tc README.distribution README.lnstat
139 %{_libdir}/libnetlink.a
140 %{_includedir}/libnetlink.h
141 %{_datadir}/license/iproute2-devel