diff --git a/lua51-5.1.5-module-path.diff b/lua51-5.1.5-module-path.diff index ef5faec..8e7e4a8 100644 --- a/lua51-5.1.5-module-path.diff +++ b/lua51-5.1.5-module-path.diff @@ -1,7 +1,8 @@ -diff -urNad trunk~/src/luaconf.h trunk/src/luaconf.h ---- trunk~/src/luaconf.h 2006-02-10 12:44:06.000000000 -0500 -+++ trunk/src/luaconf.h 2006-02-17 21:32:55.000000000 -0500 -@@ -83,13 +83,17 @@ +Index: lua-5.1.5/src/luaconf.h +=================================================================== +--- lua-5.1.5.orig/src/luaconf.h ++++ lua-5.1.5/src/luaconf.h +@@ -95,13 +95,17 @@ #else #define LUA_ROOT "/usr/local/" @@ -19,3 +20,5 @@ diff -urNad trunk~/src/luaconf.h trunk/src/luaconf.h - "./?.so;" LUA_CDIR"?.so;" LUA_CDIR"loadall.so" + "./?.so;" LUA_CDIR"?.so;" LUA_CDIR2"?.so;" LUA_CDIR"loadall.so" #endif + + diff --git a/lua51-5.1.5-pkgconfig.patch b/lua51-5.1.5-pkgconfig.patch new file mode 100644 index 0000000..263b78d --- /dev/null +++ b/lua51-5.1.5-pkgconfig.patch @@ -0,0 +1,13 @@ +Index: lua-5.1.5/etc/lua.pc +=================================================================== +--- lua-5.1.5.orig/etc/lua.pc ++++ lua-5.1.5/etc/lua.pc +@@ -25,7 +25,7 @@ Name: Lua + Description: An Extensible Extension Language + Version: ${R} + Requires: +-Libs: -llua -lm ++Libs: -llua -lm -ldl + Cflags: -I${includedir} + + # (end of lua.pc) diff --git a/lua51.changes b/lua51.changes index b958752..25c10a8 100644 --- a/lua51.changes +++ b/lua51.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Tue Oct 22 12:24:49 UTC 2013 - peter.trommler@ohm-hochschule.de + +- fix patch lua51-5.1.5-pkgconfig.patch +* libdl is required not librt + +------------------------------------------------------------------- +Mon Oct 21 18:19:08 UTC 2013 - peter.trommler@ohm-hochschule.de + +- refresh patch lua51-5.1.5-module-path.diff +- new patch lua51-5.1.5-pkgconfig.patch +* fix libraries in pkgconfig file + ------------------------------------------------------------------- Thu May 16 07:19:10 UTC 2013 - pgajdos@suse.com diff --git a/lua51.spec b/lua51.spec index c542f3b..a763b12 100644 --- a/lua51.spec +++ b/lua51.spec @@ -34,6 +34,7 @@ Source2: baselibs.conf Patch0: %{name}-%{version}-shared.diff Patch1: %{name}-%{version}-module-path.diff Patch3: %{name}-%{version}-libdir.diff +Patch4: %{name}-%{version}-pkgconfig.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -108,6 +109,7 @@ simplicity, efficiency, portability, and low embedding cost. %patch0 -b .shared %patch1 -p1 %patch3 -p1 +%patch4 -p1 %build sed -i 's:LUA_ROOT2 "LIBDIR/lua/%{major_version}/":LUA_ROOT2 \"%{_lib}/lua/%{major_version}/":' src/luaconf.h