diff --git a/love.spec b/love.spec index 1e7f9c3..380e01f 100644 --- a/love.spec +++ b/love.spec @@ -1,6 +1,13 @@ +# Because of the LuaJIT requirements: +%ifarch %{arm} %{ix86} x86_64 +%global luadep luajit +%else +%global luadep lua +%endif + Name: love -Version: 0.10.1 -Release: 3%{?dist} +Version: 0.10.2 +Release: 1%{?dist} Summary: A free 2D game engine which enables easy game creation in Lua #All is licensed as zlib with one exception: @@ -9,9 +16,6 @@ License: zlib and Public Domain URL: http://love2d.org Source0: https://bitbucket.org/rude/%{name}/get/%{version}.tar.gz -# Because of the LuaJIT requirement -ExclusiveArch: %{arm} %{ix86} x86_64 aarch64 - BuildRequires: desktop-file-utils BuildRequires: DevIL-devel BuildRequires: flac-devel @@ -24,7 +28,7 @@ BuildRequires: libtheora-devel BuildRequires: libtiff-devel BuildRequires: libtool BuildRequires: libvorbis-devel -BuildRequires: luajit-devel +BuildRequires: %{luadep}-devel BuildRequires: openal-soft-devel BuildRequires: physfs-devel BuildRequires: SDL2-devel @@ -57,7 +61,7 @@ Lua scripting language. LOVE can be used to make games of any license allowing it to be used for both free and non-free projects. %prep -%setup -q -n rude-%{name}-3cb3559eebb8 +%setup -q -n rude-%{name}-afc69c4f7145 #Fixing line encoding: sed -i 's/\r//' license.txt #Fixing permissions: @@ -65,7 +69,8 @@ chmod -x src/*/*/*.* src/libraries/Box2D/*/*.* src/libraries/Box2D/*/*/*.* %build platform/unix/automagic -%configure --prefix=/usr --disable-mpg123 --enable-static=no +%configure --prefix=/usr --with-lua=%{luadep} \ + --disable-mpg123 --enable-static=no make %{?_smp_mflags} %install @@ -115,6 +120,10 @@ fi %{_libdir}/lib%{name}.* %changelog +* Mon Nov 7 2016 Jeremy Newton - 0.10.2-1 +- Update to new version +- Use lua instead lua-git on unsupported platforms + * Fri Sep 16 2016 Peter Robinson 0.10.1-3 - LuaJIT on aarch64 for 2.1.0 and later