%define LUA_VERSION 3.2 Summary: Lua Name: lua Version: %{LUA_VERSION} Release: 1 Copyright: TeCGraf Group: Development/Languages Source0: ftp://ftp.tecgraf.puc-rio.br/pub/lua/lua-%{LUA_VERSION}.tar.gz Buildroot: /var/tmp/lua-%{LUA_VERSION}-root Url: http://www.tecgraf.puc-rio.br/lua/ Provides: lua %description Lua is a programming language originally designed for extending applications, but also frequently used as a general-purpose, stand-alone language. Lua combines simple procedural syntax (similar to Pascal) with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, interpreted from bytecodes, and has automatic memory management, making it ideal for configuration, scripting, and rapid prototyping. Lua is implemented as a small library of C functions, written in ANSI C, and compiles unmodified in all known platforms. The implementation goals are simplicity, efficiency, portability, and low embedding cost. Lua was awarded the first prize (technological category) in the Second Compaq Award for Research and Development in Computer Science in 1997. This award is a joint venture of Compaq Computer in Brazil, the Brazilian Ministry of Science and Technology, and the Brazilian Academy of Sciences. %package lua Summary: Lua Group: Development/Languages %description lua Lua %prep %setup -q -n %{name}-%{LUA_VERSION} %build make %install rm -rf $RPM_BUILD_ROOT mkdir $RPM_BUILD_ROOT mkdir $RPM_BUILD_ROOT/usr mkdir $RPM_BUILD_ROOT/usr/local mkdir $RPM_BUILD_ROOT/usr/local/bin mkdir $RPM_BUILD_ROOT/usr/local/include mkdir $RPM_BUILD_ROOT/usr/local/lib cp bin/* $RPM_BUILD_ROOT/usr/local/bin cp include/*.h $RPM_BUILD_ROOT/usr/local/include cp lib/* $RPM_BUILD_ROOT/usr/local/lib %clean rm -rf $RPM_BUILD_ROOT %files %doc COPYRIGHT HISTORY INSTALL MANIFEST README doc/* %dir /usr/local/bin %dir /usr/local/include %dir /usr/local/lib /usr/local/bin/lua /usr/local/bin/luac /usr/local/include/*.h /usr/local/lib/lib*.a