5 Summary: Linux network configuration utilities
6 Url: http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
7 Group: Productivity/Networking/Routing
8 # Using GPL-2.0 instead of GPL-2.0+ because of tc_skbedit.h and tc/q_multiq.c
10 #DL-URL: http://kernel.org/pub/linux/utils/net/iproute2/
11 #Git-Clone: git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2
12 Source: %{name}-%{version}.tar.xz
14 BuildRequires: db4-devel
16 BuildRequires: libnl-devel
17 BuildRequires: pkgconfig >= 0.21
19 BuildRequires: pkgconfig(libpng12)
20 BuildRequires: pkgconfig(libtiff-4)
21 BuildRequires: pkgconfig(xtables)
22 Provides: iproute = %{version}
25 This package provides the tools ip, tc, and rtmon needed to use the new
26 and advanced routing options of the Linux kernel. The SUSE Linux
27 distribution has used this package for network setup since SuSE Linux
30 %package -n libnetlink-devel
32 Summary: A Higher Level Interface to the Netlink Service
33 Group: Development/Libraries/C and C++
34 Provides: libnetlink = %{version}
36 %description -n libnetlink-devel
37 libnetlink provides a higher level interface to rtnetlink(7).
41 find . -name *.orig -delete
44 # build with -fPIC. For details see
45 # https://bugzilla.novell.com/show_bug.cgi?id=388021
47 xtlibdir="$(pkg-config xtables --variable=xtlibdir)";
48 make %{?_smp_mflags} LIBDIR=%{_libdir} CCOPTS="-D_GNU_SOURCE %{optflags} -Wstrict-prototypes -fPIC -DXT_LIB_DIR=\\\"$xtlibdir\\\""
51 install -d %{buildroot}/{etc/,sbin/,usr/{sbin,share/man/man{3,8}}}
52 install -d %{buildroot}/{/usr/include,%{_libdir},/usr/share}
53 make install DESTDIR=%{buildroot} LIBDIR=%{_libdir} \
54 MODDESTDIR="%{buildroot}/%{_libdir}/tc"
56 rm -f "%{buildroot}/%{_libdir}/tc/m_ipt.so"
57 install lib/libnetlink.a %{buildroot}/%{_libdir}
58 chmod -x %{buildroot}/%{_libdir}/libnetlink.a
59 install include/libnetlink.h %{buildroot}%{_includedir}
60 chmod -x %{buildroot}%{_includedir}/libnetlink.h
61 rm %{buildroot}%{_sbindir}/ifcfg
69 %dir %{_sysconfdir}/iproute2
70 %config(noreplace) %{_sysconfdir}/iproute2/*
73 %attr(644,root,root)%{_datadir}/tc/*
76 %files -n libnetlink-devel