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