]> git.ipfire.org Git - ipfire-3.x.git/blob - iproute2/iproute2.nm
iproute2: Update to 4.12.0
[ipfire-3.x.git] / iproute2 / iproute2.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = iproute2
7 version = 4.12.0
8 release = 1
9
10 groups = Networking/Tools
11 url = http://www.linuxfoundation.org/en/Net:Iproute2
12 license = GPLv2+
13 summary = Advanced IP routing and network device configuration tools.
14
15 description
16 The iproute package contains networking utilities (ip and rtmon, for
17 example) which are designed to use the advanced networking
18 capabilities of the Linux 2.4.x and 2.6.x kernel.
19 end
20
21 source_dl = http://kernel.org/pub/linux/utils/net/iproute2/
22 sources = %{thisapp}.tar.xz
23
24 build
25 requires
26 bison
27 flex
28 libdb-devel
29 libnl-devel
30 linux-atm-devel >= 2.5.1
31 end
32
33 prepare_cmds
34 sed -e "s/^LIBDIR=/LIBDIR?=/" -i Makefile
35 end
36
37 export RPM_OPT_FLAGS = %{CFLAGS} %{LDFLAGS}
38 export LIBDIR = %{libdir}
39 export SBINDIR = %{sbindir}
40 export IPT_LIB_DIR = %{libdir}/xtables
41
42 install_cmds
43 # libnetlink
44 install -v -m 644 include/libnetlink.h %{BUILDROOT}%{includedir}
45 install -v -m 644 lib/libnetlink.a %{BUILDROOT}%{libdir}
46 end
47
48 # Keep libnetlink.a.
49 keep_libraries
50 %{libdir}/libnetlink.a
51 end
52 end
53
54 packages
55 package %{name}
56 groups += Base
57
58 configfiles = %{sysconfdir}/iproute2
59 end
60
61 package %{name}-devel
62 template DEVEL
63 end
64
65 package %{name}-debuginfo
66 template DEBUGINFO
67 end
68 end