SHA256
1
0
forked from pool/fillets-ng
Dominique Leuenberger 2019-01-21 09:51:11 +00:00 committed by Git OBS Bridge
commit 5d0a65fbfa
3 changed files with 16 additions and 30 deletions

View File

@ -1,13 +0,0 @@
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,17 @@
-------------------------------------------------------------------
Wed Dec 19 12:53:08 UTC 2018 - anicka@suse.com
- Remove fillets-use-lua-5.1.pc.patch, as package builds and runs
without it and forced autoreconf breaks correct setting of datadir
Fix for boo#1114591.
-------------------------------------------------------------------
Wed Dec 19 12:53:08 UTC 2018 - anicka@suse.com
- remove last patch, as package builds and runs without it
and forced autoreconf breaks correct setting of datadir
Fix for #1114591.
-------------------------------------------------------------------
Wed Nov 18 13:33:01 UTC 2015 - dimstar@opensuse.org

View File

@ -1,7 +1,7 @@
#
# spec file for package fillets-ng
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -20,26 +20,20 @@ Name: fillets-ng
Version: 1.0.1
Release: 0
Summary: Fish Fillets - Next Generation
License: GPL-2.0+
License: GPL-2.0-or-later
Group: Amusements/Games/Action/Arcade
Url: http://fillets.sourceforge.net/
Source0: http://prdownloads.sourceforge.net/fillets/%{name}-%{version}.tar.gz
Source1: %{name}.desktop
Source2: %{name}.png
Patch0: %{name}-0.9.3-datadir.patch
Patch1: %{name}-use-lua-5.1.pc.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: SDL_image-devel
BuildRequires: SDL_mixer-devel
BuildRequires: SDL_ttf-devel
BuildRequires: fribidi-devel
BuildRequires: gcc-c++
BuildRequires: libtool
%if 0%{?suse_version} < 1220
BuildRequires: lua-devel
%else
BuildRequires: lua51-devel
%endif
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
Requires: %{name}-data = %{version}
@ -54,17 +48,8 @@ your fish. The whole game is accompanied by quiet, comforting music.
%prep
%setup -q
%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
# Needed for patch1
autoreconf -fiv
%configure
make %{?_smp_mflags}