summaryrefslogtreecommitdiffstats
path: root/lua.spec
blob: 8d35bbf2803bb58e93d6da66fbb637d49cfea72d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Name:           lua
Version:        5.0
Release:        0.fdr.1.rh90
Epoch:          0
Summary:        A powerful light-weight programming language

Group:          Development/Languages
License:        MIT
URL:            http://www.lua.org/
Source0:        http://www.lua.org/ftp/lua-5.0.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Provides:       %{name}-devel = %{epoch}:%{version}-%{release}

%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 \
  NUMBER="-DLUA_USER_H='\"../etc/luser_number.h\"' -DUSE_FASTROUND"
make test

# -----------------------------------------------------------------------------

%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 \
  INSTALL_EXEC="install -p -m 0755" \
  INSTALL_DATA="install -p -m 0644"

# -----------------------------------------------------------------------------

%clean
rm -rf $RPM_BUILD_ROOT

# -----------------------------------------------------------------------------

%files
%defattr(-,root,root,-)
%doc COPYRIGHT HISTORY README doc/*.html doc/*.gif
%{_bindir}/*
%{_includedir}/*
%{_libdir}/*
%{_mandir}/man1/*

# -----------------------------------------------------------------------------

%changelog
* Sat Jun 21 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:5.0-0.fdr.1
- First build.