include shored lib, added autotools patch
This commit is contained in:
parent
40ed3665a4
commit
480b5f95c6
|
@ -1 +1 @@
|
||||||
lua-5.1.tar.gz
|
lua-5.1-autotoolize-r1.patch.bz2
|
||||||
|
|
37
lua.spec
37
lua.spec
|
@ -1,12 +1,13 @@
|
||||||
Name: lua
|
Name: lua
|
||||||
Version: 5.1
|
Version: 5.1
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Powerful light-weight programming language
|
Summary: Powerful light-weight programming language
|
||||||
|
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://www.lua.org/
|
URL: http://www.lua.org/
|
||||||
Source0: http://www.lua.org/ftp/lua-%{version}.tar.gz
|
Source0: http://www.lua.org/ftp/lua-%{version}.tar.gz
|
||||||
|
Patch0: lua-5.1-autotoolize-r1.patch.bz2
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildRequires: readline-devel, ncurses-devel
|
BuildRequires: readline-devel, ncurses-devel
|
||||||
|
@ -25,31 +26,21 @@ configuration, scripting, and rapid prototyping.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} \
|
# fix perms on auto files
|
||||||
MYCFLAGS="$RPM_OPT_FLAGS -fPIC" \
|
chmod u+x autogen.sh config.guess config.sub configure depcomp install-sh missing
|
||||||
MYLDFLAGS="-Wl,-E" \
|
|
||||||
LOADLIB=-DUSE_DLOPEN=1 \
|
|
||||||
DLLIB=-ldl \
|
|
||||||
%ifarch %{ix86} x86_64
|
|
||||||
NUMBER="-DLUA_USER_H='\"../etc/luser_number.h\"' -DUSE_FASTROUND" \
|
|
||||||
%endif
|
|
||||||
USERCONF="-DLUA_USERCONFIG='\"../../etc/saconfig.c\"' -DUSE_READLINE" \
|
|
||||||
EXTRA_LIBS="-lm -lreadline -lncurses" \
|
|
||||||
linux
|
|
||||||
|
|
||||||
|
./autogen.sh
|
||||||
|
|
||||||
|
%configure --with-readline
|
||||||
|
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
make install \
|
%makeinstall
|
||||||
INSTALL_TOP=%{buildroot}/usr \
|
|
||||||
INSTALL_LIB=%{buildroot}/%{_libdir} \
|
|
||||||
INSTALL_MAN=%{buildroot}%{_mandir}/man1
|
|
||||||
|
|
||||||
%check
|
|
||||||
make test
|
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
@ -61,11 +52,15 @@ rm -rf %{buildroot}
|
||||||
%{_bindir}/lua*
|
%{_bindir}/lua*
|
||||||
%{_includedir}/l*.h
|
%{_includedir}/l*.h
|
||||||
%{_includedir}/l*.hpp
|
%{_includedir}/l*.hpp
|
||||||
%{_libdir}/liblua*.a
|
%{_libdir}/liblua*.*
|
||||||
|
%{_libdir}/pkgconfig/*.pc
|
||||||
%{_mandir}/man1/lua*.1*
|
%{_mandir}/man1/lua*.1*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 29 2006 Michael J. Knox <michael[AT]knox.net.nz> - 5.1-3
|
||||||
|
- added autotools patch from Petri Lehtinen, http://lua-users.org
|
||||||
|
|
||||||
* Mon May 08 2006 Michael J. Knox <michael[AT]knox.net.nz> - 5.1-2
|
* Mon May 08 2006 Michael J. Knox <michael[AT]knox.net.nz> - 5.1-2
|
||||||
- fixed x86_64 builds
|
- fixed x86_64 builds
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue