SHA256
1
0
forked from pool/fillets-ng
Stephan Kulow 2015-11-24 21:33:40 +00:00 committed by Git OBS Bridge
commit a25676fd70
3 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,13 @@
Index: fillets-ng-1.0.1/configure.in
===================================================================
--- fillets-ng-1.0.1.orig/configure.in
+++ fillets-ng-1.0.1/configure.in
@@ -42,7 +42,7 @@ dnl Debian, and possibly other systems,
LUA_CFLAGS="`[$LUACONFIG --include]`"
LUA_LIBS="`[$LUACONFIG --static]`"
else dnl ...otherwise, attempt to guess
- PKG_CHECK_MODULES(LUA, lua, [], [
+ PKG_CHECK_MODULES(LUA, lua-5.1, [], [
LUA_CFLAGS=""
LUA_LIBS=""
AC_CHECK_LIB(lua, lua_setfenv, LUA_LIBS="$LUA_LIBS -llua",

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Nov 18 13:33:01 UTC 2015 - dimstar@opensuse.org
- Add fillets-ng-use-lua-5.1.pc.patch: detect lua-5.1.pc; fixes
build on current TW setups.
- Add libtool BuildRequires and call to autoreconf, as above patch
touches the build system.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Apr 13 18:47:37 UTC 2015 - dimstar@opensuse.org Mon Apr 13 18:47:37 UTC 2015 - dimstar@opensuse.org

View File

@ -27,12 +27,14 @@ Source0: http://prdownloads.sourceforge.net/fillets/%{name}-%{version}.ta
Source1: %{name}.desktop Source1: %{name}.desktop
Source2: %{name}.png Source2: %{name}.png
Patch0: %{name}-0.9.3-datadir.patch Patch0: %{name}-0.9.3-datadir.patch
Patch1: %{name}-use-lua-5.1.pc.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: SDL_image-devel BuildRequires: SDL_image-devel
BuildRequires: SDL_mixer-devel BuildRequires: SDL_mixer-devel
BuildRequires: SDL_ttf-devel BuildRequires: SDL_ttf-devel
BuildRequires: fribidi-devel BuildRequires: fribidi-devel
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: libtool
%if 0%{?suse_version} < 1220 %if 0%{?suse_version} < 1220
BuildRequires: lua-devel BuildRequires: lua-devel
%else %else
@ -52,8 +54,17 @@ your fish. The whole game is accompanied by quiet, comforting music.
%prep %prep
%setup -q %setup -q
%patch0 %patch0
if [ -e %{_libdir}/pkgconfig/lua-5.1.pc ]; then
# Only apply the patch if there is a lua-5.1.pc file.. this is a special case
# as the file originally was called lua.pc, but renamed in Tumbleweed for co-existence
# with newer lua version. Only conditionally applying the patch makes sure we do not
# break build for older releases
%patch1 -p1
fi
%build %build
# Needed for patch1
autoreconf -fiv
%configure %configure
make %{?_smp_mflags} make %{?_smp_mflags}