1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
8 version = %{major_version}.5
11 groups = Development/Languages
12 url = http://www.lua.org/
14 summary = Powerful light-weight programming language.
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.
27 source_dl = http://www.lua.org/ftp/
35 # Lua 5.3.4 has wrong release version in its Makefile
36 sed "s/^R= \$V.4/R= \$V.5/" -i Makefile
39 make_build_targets += \
40 MYCFLAGS="%{CFLAGS} -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" \
41 MYLDFLAGS="%{LDFLAGS}" \
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"
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
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
77 package %{name}-debuginfo