[packages/xapian-bindings] - added lua binding

qboosh qboosh at pld-linux.org
Sat Sep 15 09:42:15 CEST 2012


commit b8d8b44874e9c6b67d670905fa3eddf7a2d5c73d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Sep 15 09:42:59 2012 +0200

    - added lua binding

 xapian-bindings.spec | 36 ++++++++++++++++++++++++++++++------
 1 file changed, 30 insertions(+), 6 deletions(-)
---
diff --git a/xapian-bindings.spec b/xapian-bindings.spec
index 7f02a7c..033acd3 100644
--- a/xapian-bindings.spec
+++ b/xapian-bindings.spec
@@ -1,9 +1,9 @@
-# TODO: lua
 # NOTE: for perl binding, see perl-Search-Xapian.spec
 #
 # Conditional build:
 %bcond_without	dotnet		# C# bindings
 %bcond_without	java		# Java bindings
+%bcond_without	lua		# Lua bindings
 %bcond_without	php		# PHP bindings
 %bcond_without	python		# Python bindings
 %bcond_without	ruby		# Ruby bindings
@@ -21,6 +21,7 @@ Source0:	http://oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.gz
 URL:		http://www.xapian.org/
 %{?with_java:BuildRequires:	jdk}
 %{?with_java:BuildRequires:	jpackage-utils}
+%{?with_lua:BuildRequires:	lua51-devel >= 5.1}
 # 2.6.x should be sufficient, but 2.11.1 complaints about write permissions to /usr/share/.mono/keypairs
 %{?with_csharp:BuildRequires:	mono-devel >= 2.11.4}
 %{?with_php:BuildRequires:	php-devel >= 4:5.0.4}
@@ -91,6 +92,26 @@ programistom łatwo dodawać do aplikacji zaawansowane możliwości
 indeksowania i wyszukiwania. Ten pakiet zawiera pliki potrzebne przy
 tworzeniu aplikacji Javy wykorzystujących Xapiana.
 
+%package -n lua-xapian
+Summary:	Files needed for developing Lua scripts which use Xapian
+Summary(pl.UTF-8):	Pliki do tworzenia skryptów w języku Lua wykorzystujących Xapiana
+Group:		Development/Languages
+Requires:	lua51-libs
+
+%description -n lua-xapian
+Xapian is an Open Source Probabilistic Information Retrieval
+framework. It offers a highly adaptable toolkit that allows developers
+to easily add advanced indexing and search facilities to applications.
+This package provides the files needed for developing Lua scripts
+which use Xapian.
+
+%description -n lua-xapian -l pl.UTF-8
+Xapian to mająca otwarte źródła biblioteka do uzyskiwania informacji
+probabilistycznych. Oferuje wysoce adoptowalne narzędzia pozwalające
+programistom łatwo dodawać do aplikacji zaawansowane możliwości
+indeksowania i wyszukiwania. Ten pakiet zawiera pliki potrzebne przy
+tworzeniu skryptów w języku Lua wykorzystujących Xapiana.
+
 %package -n php-xapian
 Summary:	Files needed for developing PHP scripts which use Xapian
 Summary(pl.UTF-8):	Pliki do tworzenia skryptów w PHP wykorzystujących Xapiana
@@ -176,18 +197,15 @@ tworzeniu skryptów w Tcl-u wykorzystujących Xapiana.
 
 %build
 %configure \
+	%{?with_lua:LUA=/usr/bin/lua51 LUA_INC=/usr/include/lua51} \
 	%{?with_dotnet:--with-csharp} \
 	%{?with_java:--with-java} \
+	%{?with_lua:--with-lua} \
 	%{?with_python:--with-python} \
 	%{?with_php:--with-php} \
 	%{?with_ruby:--with-ruby} \
 	%{?with_tcl:--with-tcl}
 
-# PATH=. hack needed:
-# /bin/sh ../libtool  --config > libtoolconfig.tmp
-# . libtoolconfig.tmp; cp $objdir/_xapian.so .
-# /bin/sh: .: libtoolconfig.tmp: not found
-#PATH=$PATH:.
 %{__make}
 
 %install
@@ -237,6 +255,12 @@ rm -rf $RPM_BUILD_ROOT
 %{_javadir}/xapian_jni.jar
 %endif
 
+%if %{with lua}
+%files -n lua-xapian
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lua/5.1/xapian.so
+%endif
+
 %if %{with php}
 %files -n php-xapian
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xapian-bindings.git/commitdiff/b8d8b44874e9c6b67d670905fa3eddf7a2d5c73d



More information about the pld-cvs-commit mailing list