]> git.ipfire.org Git - ipfire-3.x.git/blob - lua/lua.nm
sysctl: improve KASLR effectiveness for mmap
[ipfire-3.x.git] / lua / lua.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = lua
7 major_version = 5.3
8 version = %{major_version}.5
9 release = 1
10
11 groups = Development/Languages
12 url = http://www.lua.org/
13 license = MIT
14 summary = Powerful light-weight programming language.
15
16 description
17 Lua is a powerful light-weight programming language designed for \
18 extending applications. Lua is also frequently used as a \
19 general-purpose, stand-alone language. Lua is free software. \
20 Lua combines simple procedural syntax with powerful data description \
21 constructs based on associative arrays and extensible semantics. Lua \
22 is dynamically typed, interpreted from bytecodes, and has automatic \
23 memory management with garbage collection, making it ideal for \
24 configuration, scripting, and rapid prototyping.
25 end
26
27 source_dl = http://www.lua.org/ftp/
28
29 build
30 requires
31 readline-devel
32 end
33
34 prepare_cmds
35 # Lua 5.3.4 has wrong release version in its Makefile
36 sed "s/^R= \$V.4/R= \$V.5/" -i Makefile
37 end
38
39 make_build_targets += \
40 MYCFLAGS="%{CFLAGS} -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" \
41 MYLDFLAGS="%{LDFLAGS}" \
42 linux
43
44 test
45 make test
46 end
47
48 make_install_targets += \
49 TO_LIB="liblua.so.%{version}" \
50 INSTALL_TOP="%{BUILDROOT}%{prefix}" \
51 INSTALL_LIB="%{BUILDROOT}%{libdir}" \
52 INSTALL_MAN="%{BUILDROOT}%{mandir}/man1"
53
54 install_cmds
55 # Install library links
56 ln -svf liblua.so.%{version} %{BUILDROOT}%{libdir}/liblua.so.%{major_version}
57 ln -svf liblua.so.%{major_version} %{BUILDROOT}%{libdir}/liblua.so
58
59 # Install pkgconfig file
60 mkdir -pv %{BUILDROOT}%{libdir}/pkgconfig
61 sed "s/%VER%/%{major_version}/g;s/%REL%/%{version}/g" \
62 < %{DIR_SOURCE}/lua.pc > %{BUILDROOT}%{libdir}/pkgconfig/lua.pc
63 end
64 end
65
66 packages
67 package %{name}
68
69 package %{name}-devel
70 template DEVEL
71 end
72
73 package %{name}-libs
74 template LIBS
75 end
76
77 package %{name}-debuginfo
78 template DEBUGINFO
79 end
80 end