Author: belegdol
Update of /cvs/nonfree/rpms/mame/devel
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv8448
Modified Files:
mame.spec
Log Message:
lua is only new enough on F22+
Index: mame.spec
===================================================================
RCS file: /cvs/nonfree/rpms/mame/devel/mame.spec,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -r1.105 -r1.106
--- mame.spec 8 Jun 2015 05:43:58 -0000 1.105
+++ mame.spec 8 Jun 2015 06:11:45 -0000 1.106
@@ -35,7 +35,9 @@
BuildRequires: flac-devel
#BuildRequires: jsoncpp-devel
BuildRequires: libjpeg-turbo-devel
-BuildRequires: lua-devel
+%if 0%{?fedora} >= 22
+BuildRequires: lua-devel >= 5.3.0
+%endif
#BuildRequires: mongoose-devel
%if !0%{?svn}
BuildRequires: p7zip
@@ -51,6 +53,9 @@
Provides: bundled(bgfx)
Provides: bundled(bx)
Provides: bundled(jsoncpp)
+%if 0%{?fedora} < 22
+Provides: bundled(lua) = 5.3.0
+%endif
Provides: bundled(lzma-sdk) = 9.22
Provides: bundled(mongoose)
Provides: mess = %{version}-%{release}
@@ -178,10 +183,16 @@
%endif
#save some space
-#jsoncpp and mongoose in Fedora are too old
+#jsoncpp and mongoose in Fedora are too old, lua is only new enough on F22+
+%if 0%{?fedora} >= 22
MAME_FLAGS="NOWERROR=1 SYMBOLS=1 OPTIMIZE=2 VERBOSE=1 USE_SYSTEM_LIB_EXPAT=1 \
USE_SYSTEM_LIB_ZLIB=1 USE_SYSTEM_LIB_JPEG=1 USE_SYSTEM_LIB_FLAC=1 \
USE_SYSTEM_LIB_LUA=1 USE_SYSTEM_LIB_SQLITE3=1 USE_SYSTEM_LIB_PORTMIDI=1"
+%else
+MAME_FLAGS="NOWERROR=1 SYMBOLS=1 OPTIMIZE=2 VERBOSE=1 USE_SYSTEM_LIB_EXPAT=1 \
+ USE_SYSTEM_LIB_ZLIB=1 USE_SYSTEM_LIB_JPEG=1 USE_SYSTEM_LIB_FLAC=1 \
+ USE_SYSTEM_LIB_SQLITE3=1 USE_SYSTEM_LIB_PORTMIDI=1"
+%endif
#only use assembly on supported architectures
%ifnarch %{ix86} x86_64 ppc ppc64