2004-11-08 04:49:49 +00:00
|
|
|
Name: lua
|
2005-02-01 16:15:27 +00:00
|
|
|
Version: 5.0.2
|
2005-04-06 22:12:23 +00:00
|
|
|
Release: 3
|
|
|
|
|
2004-11-08 04:49:49 +00:00
|
|
|
Summary: A powerful light-weight programming language
|
|
|
|
|
|
|
|
Group: Development/Languages
|
|
|
|
License: MIT
|
|
|
|
URL: http://www.lua.org/
|
2005-02-01 16:15:27 +00:00
|
|
|
Source0: http://www.lua.org/ftp/lua-%{version}.tar.gz
|
2004-11-08 04:49:49 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2004-11-08 04:49:52 +00:00
|
|
|
BuildRequires: readline-devel, ncurses-devel
|
2005-02-01 16:15:27 +00:00
|
|
|
Provides: %{name}-devel = %{version}-%{release}
|
2004-11-08 04:49:49 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
make %{?_smp_mflags} \
|
|
|
|
MYCFLAGS="$RPM_OPT_FLAGS -fPIC" \
|
|
|
|
MYLDFLAGS="-Wl,-E" \
|
|
|
|
LOADLIB=-DUSE_DLOPEN=1 \
|
|
|
|
DLLIB=-ldl \
|
2005-02-13 12:23:46 +00:00
|
|
|
%ifarch %{ix86} x86_64
|
2004-11-08 04:49:52 +00:00
|
|
|
NUMBER="-DLUA_USER_H='\"../etc/luser_number.h\"' -DUSE_FASTROUND" \
|
2005-02-12 14:19:55 +00:00
|
|
|
%endif
|
2004-11-08 04:49:52 +00:00
|
|
|
USERCONF="-DLUA_USERCONFIG='\"../../etc/saconfig.c\"' -DUSE_READLINE" \
|
|
|
|
EXTRA_LIBS="-lm -lreadline -lncurses"
|
2004-11-08 04:49:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%makeinstall \
|
|
|
|
INSTALL_ROOT=$RPM_BUILD_ROOT%{_prefix} \
|
|
|
|
INSTALL_BIN=$RPM_BUILD_ROOT%{_bindir} \
|
|
|
|
INSTALL_INC=$RPM_BUILD_ROOT%{_includedir} \
|
|
|
|
INSTALL_LIB=$RPM_BUILD_ROOT%{_libdir} \
|
|
|
|
INSTALL_MAN=$RPM_BUILD_ROOT%{_mandir}/man1 \
|
2004-11-08 04:49:52 +00:00
|
|
|
INSTALL_EXEC="install -pm 755" \
|
|
|
|
INSTALL_DATA="install -pm 644"
|
|
|
|
|
|
|
|
|
|
|
|
%check || :
|
|
|
|
make test
|
2004-11-08 04:49:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYRIGHT HISTORY README doc/*.html doc/*.gif
|
2004-11-08 04:49:52 +00:00
|
|
|
%{_bindir}/lua*
|
|
|
|
%{_includedir}/l*.h
|
|
|
|
%{_libdir}/liblua*.a
|
|
|
|
%{_mandir}/man1/lua*.1*
|
2004-11-08 04:49:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2005-04-06 22:12:23 +00:00
|
|
|
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
|
|
|
- rebuilt
|
|
|
|
|
2005-02-12 14:19:55 +00:00
|
|
|
* Sat Feb 12 2005 David Woodhouse <dwmw2@infradead.org> - 5.0.2-2
|
|
|
|
- Don't use fastround on ppc
|
|
|
|
|
2005-02-01 16:15:27 +00:00
|
|
|
* Tue Feb 01 2005 Panu Matilainen <pmatilai@welho.com> - 5.0.2-1
|
|
|
|
- update to 5.0.2
|
|
|
|
- remove epoch 0, drop fedora.us release tag
|
|
|
|
|
2004-11-08 04:49:52 +00:00
|
|
|
* Mon Nov 17 2003 Oren Tirosh <oren at hishome.net> - 0:5.0-0.fdr.2
|
|
|
|
- Enable readline support.
|
|
|
|
|
2004-11-08 04:49:49 +00:00
|
|
|
* Sat Jun 21 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:5.0-0.fdr.1
|
|
|
|
- First build.
|