diff --git a/lua-5.1.2-multilib.patch b/lua-5.1.2-multilib.patch index d39f002..77092d2 100644 --- a/lua-5.1.2-multilib.patch +++ b/lua-5.1.2-multilib.patch @@ -15,3 +15,21 @@ diff -up lua-5.1.2/src/luaconf.h.template.in~ lua-5.1.2/src/luaconf.h.template.i /** autotools-patch **/ #define LUA_PATH_DEFAULT \ +diff -up lua-5.1.2/etc/lua.pc.in~ lua-5.1.2/etc/lua.pc.in +--- lua-5.1.2/etc/lua.pc.in~ 2007-11-26 09:35:47.000000000 +0100 ++++ lua-5.1.2/etc/lua.pc.in 2007-11-26 09:35:47.000000000 +0100 +@@ -2,12 +2,12 @@ V= 5.1 + R= 5.1.2 + prefix= @prefix@ + exec_prefix=${prefix} +-libdir=${exec_prefix}/lib ++libdir= @libdir@ + includedir=${prefix}/include + + Name: Lua + Description: An Extensible Extension Language + Version: ${R} + Requires: +-Libs: -L${libdir} -llua @LUA_LIBS@ ++Libs: -llua @LUA_LIBS@ + Cflags: -I${includedir} diff --git a/lua.spec b/lua.spec index c5d9e2b..421fa13 100644 --- a/lua.spec +++ b/lua.spec @@ -1,6 +1,6 @@ Name: lua Version: 5.1.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Powerful light-weight programming language Group: Development/Languages License: MIT @@ -77,6 +77,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Mon Nov 26 2007 Hans de Goede 5.1.2-4 +- Fix libdir in lua.pc being /usr/lib on x86_64 (bz 399101) + * Sun Oct 21 2007 Hans de Goede 5.1.2-3 - Also use lib64 instead of lib on ia64 and sparc64