# $Id$ # Authority: rudolf Summary: Lua scripting language Name: lua Version: 5.1.3 Release: 1 License: MIT Group: Development/Libraries URL: http://www.lua.org/ Source: http://www.lua.org/ftp/lua-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description Lua is a powerful light-weight programming language designed for extending applications. Lua is also frequently used as a general-purpose, stand-alone language. Lua is free software. Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, interpreted from bytecodes, and has automatic memory management with garbage collection, making it ideal for configuration, scripting, and rapid prototyping. %package devel Summary: Header files, libraries and development documentation for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This package contains the header files, static libraries and development documentation for %{name}. If you like to develop programs using %{name}, you will need to install %{name}-devel. %prep %setup ### FIXME: Make buildsystem use standard autotools directories (Fix upstream please) %{__perl} -pi.orig -e ' s|^(INSTALL_ROOT=).*$|$1 \$(prefix)|; s|^(INSTALL_BIN=).*$|$1 \$(bindir)|; s|^(INSTALL_INC=).*$|$1 \$(includedir)|; s|^(INSTALL_LIB=).*$|$1 \$(libdir)|; s|^(INSTALL_MAN=).*$|$1 \$(mandir)/man1|; s|^(INSTALL_EXEC=).*$|$1 %{__install} -p -m0755|; s|^(INSTALL_DATA=).*$|$1 %{__install} -p -m0644|; ' config %build %{__make} %{?_smp_mflags} all so \ MYCFLAGS="%{optflags} -fPIC" %install %{__rm} -rf %{buildroot} %makeinstall %{__install} -p -m0755 lib/*.so* %{buildroot}%{_libdir} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc COPYRIGHT doc/*gif doc/*html HISTORY INSTALL MANIFEST README UPDATE %doc %{_mandir}/man?/* %{_bindir}/* %{_libdir}/*.so.* %files devel %defattr(-, root, root, 0755) %{_includedir}/*.h %{_libdir}/*.a %{_libdir}/*.so %changelog * Sun Feb 10 2008 Dag Wieers - 5.1.3-1 - Updated to release 5.1.3. * Tue Mar 23 2004 Dag Wieers - 5.0.2-1 - Updated to release 5.0.2. * Sun Oct 12 2003 Dag Wieers - 5.0-0 - Initial package. (using DAR)