[packages/libpeas] - handle luajit vs lua51

qboosh qboosh at pld-linux.org
Thu Apr 23 21:05:07 CEST 2015


commit 0f09eec75d60a420924b418a50dcc051d6eb5b6c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Apr 23 21:07:11 2015 +0200

    - handle luajit vs lua51

 libpeas.spec | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/libpeas.spec b/libpeas.spec
index a5136f1..0c8abe6 100644
--- a/libpeas.spec
+++ b/libpeas.spec
@@ -1,6 +1,7 @@
 #
 # Conditional build:
 %bcond_without	apidocs		# do not build and package API docs
+%bcond_without	luajit		# LuaJIT implementation of lua 5.1
 %bcond_without	static_libs	# don't build static libraries
 %bcond_without	glade		# don't package glade catalog file
 
@@ -26,7 +27,8 @@ BuildRequires:	gtk-doc >= 1.11
 BuildRequires:	intltool >= 0.40.0
 BuildRequires:	libtool >= 2:2.2.6
 BuildRequires:	lua-lgi
-BuildRequires:	lua51-devel
+%{!?with_luajit:BuildRequires:	lua51-devel >= 5.1.0}
+%{?with_luajit:BuildRequires:	luajit-devel >= 2.0}
 BuildRequires:	python >= 1:2.5.2
 BuildRequires:	python-pygobject3-devel >= 3.2.0
 BuildRequires:	python3-devel >= 1:3.2.0
@@ -225,6 +227,7 @@ Aplikacja demonstracyjna libpeas.
 %{__autoheader}
 %{__automake}
 %configure \
+	%{!?with_luajit:--disable-luajit} \
 	--disable-silent-rules \
 	%{__enable_disable apidocs gtk-doc} \
 	%{__enable_disable glade glade-catalog} \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libpeas.git/commitdiff/0f09eec75d60a420924b418a50dcc051d6eb5b6c



More information about the pld-cvs-commit mailing list