rpms/fillets-ng/devel fillets-ng-0.7.3-lua-pkgconfig.patch, NONE, 1.1 fillets-ng.spec, 1.6, 1.7

Matthias Saou (thias) fedora-extras-commits at redhat.com
Wed May 31 16:09:16 UTC 2006


Author: thias

Update of /cvs/extras/rpms/fillets-ng/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7753

Modified Files:
	fillets-ng.spec 
Added Files:
	fillets-ng-0.7.3-lua-pkgconfig.patch 
Log Message:
Patch build to use pkgconfig for lua detection instead of the no longer provided lua-config script.


fillets-ng-0.7.3-lua-pkgconfig.patch:

--- NEW FILE fillets-ng-0.7.3-lua-pkgconfig.patch ---
diff -Naupr fillets-ng-0.7.3.orig/configure.in fillets-ng-0.7.3/configure.in
--- fillets-ng-0.7.3.orig/configure.in	2005-10-04 20:11:00.000000000 +0200
+++ fillets-ng-0.7.3/configure.in	2006-05-31 17:49:58.000000000 +0200
@@ -22,41 +22,9 @@ AC_CHECK_LIB(m, sin, LIBS="$LIBS -lm")
 
 ###################################################
 # Check for lua and define LUA_CFLAGS and LUA_LIBS
-
-dnl ---- lua check ------------- (stolen from Stratagus)
-AC_ARG_WITH(lua,   [  --with-lua=PFX          Prefix where Lua is installed],
-    LUAPFX="$withval", LUAPFX="")
-if test "x$LUAPFX" != x ; then
-    LUA_CFLAGS="-I$LUAPFX"
-    LUA_LIBS="-L$LUAPFX -llua -llualib"
-else
-dnl Debian, and possibly other systems, include this script...
-    AC_CHECK_PROGS(LUACONFIG, [lua-config lua-config50 lua-config5.0], "")
-    if test "x$LUACONFIG" != x; then
-        LUA_CFLAGS="`[$LUACONFIG --include]`"
-        LUA_LIBS="`[$LUACONFIG --static]`"
-    else dnl ...otherwise, attempt to guess
-        LUA_CFLAGS=""
-        LUA_LIBS=""
-        AC_CHECK_LIB(lua, lua_setfenv, LUA_LIBS="$LUA_LIBS -llua",
-        [AC_CHECK_LIB(lua50, lua_setfenv, LUA_LIBS="$LUA_LIBS -llua50",
-        [AC_CHECK_LIB(lua5.0, lua_setfenv, LUA_LIBS="$LUA_LIBS -llua5.0",
-            [AC_MSG_ERROR([*** Lua5 is required.
-             Try --with-lua=PREFIX
-             You can download lua from http://www.lua.org])],
-             $LUA_LIBS)], $LUA_LIBS)], $LUA_LIBS)
-
-        AC_CHECK_LIB(lualib, luaopen_base, LUA_LIBS="$LUA_LIBS -llualib",
-        [AC_CHECK_LIB(lualib50, luaopen_base, LUA_LIBS="$LUA_LIBS -llualib50",
-        [AC_CHECK_LIB(lualib5.0, luaopen_base, LUA_LIBS="$LUA_LIBS -llualib5.0",
-            [AC_MSG_ERROR([*** Lualib5 is required.
-             You can download lua from http://www.lua.org])],
-             $LUA_LIBS)], $LUA_LIBS)], $LUA_LIBS)
-   fi
-fi
+PKG_CHECK_MODULES(LUA, lua, [have_lua="yes"], [have_lua="no"])
 AC_SUBST(LUA_CFLAGS)
 AC_SUBST(LUA_LIBS)
-dnl ---- end of lua check ------
 
 
 ###################################################


Index: fillets-ng.spec
===================================================================
RCS file: /cvs/extras/rpms/fillets-ng/devel/fillets-ng.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- fillets-ng.spec	6 Mar 2006 15:41:33 -0000	1.6
+++ fillets-ng.spec	31 May 2006 16:09:16 -0000	1.7
@@ -1,17 +1,20 @@
 Summary: Fish Fillets Next Generation, a puzzle game with 70 levels
 Name: fillets-ng
 Version: 0.7.3
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: GPL
 Group: Amusements/Games
 URL: http://fillets.sourceforge.net/
 Source0: http://dl.sf.net/fillets/fillets-ng-%{version}.tar.gz
 Source1: fillets.desktop
 Source2: fillets.png
+Patch0: fillets-ng-0.7.3-lua-pkgconfig.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 Requires: fillets-ng-data >= 0.7.1
 BuildRequires: SDL-devel, SDL_mixer-devel, SDL_image-devel, SDL_ttf-devel
 BuildRequires: lua-devel, fribidi-devel, desktop-file-utils
+# Required for autoreconf
+BuildRequires: autoconf, automake, libtool
 
 %description
 Fish Fillets is strictly a puzzle game. The goal in every of the
@@ -24,6 +27,8 @@
 
 %prep
 %setup -q
+%patch0 -p1 -b .lua-pkgconfig
+autoreconf --install --force
 
 
 %build
@@ -66,6 +71,10 @@
 
 
 %changelog
+* Wed May 31 2006 Matthias Saou <http://freshrpms.net/> 0.7.3-4
+- Add patch to change lua detection from lua-config to pkgconfig since the
+  latest lua packages no longer provide the config script.
+
 * Mon Mar  6 2006 Matthias Saou <http://freshrpms.net/> 0.7.3-3
 - FC5 rebuild.
 




More information about the fedora-extras-commits mailing list