[Pkg-libvirt-commits] [SCM] Libguestfs Debian packaging branch, master, updated. debian/1%1.16.18-1-89-g6038ece
Hilko Bengen
bengen at debian.org
Mon Jan 7 18:45:13 UTC 2013
The following commit has been merged in the master branch:
commit 4b06a38456d5670ebc29bf795f395064de18fa10
Author: Hilko Bengen <bengen at debian.org>
Date: Wed Dec 12 22:40:02 2012 +0100
Added Lua bindings
diff --git a/debian/control b/debian/control
index a91522d..ba694ff 100644
--- a/debian/control
+++ b/debian/control
@@ -15,6 +15,7 @@ Build-Depends: debhelper (>= 9~), autotools-dev, aptitude,
qemu-kvm (>= 0.13),
genisoimage, pkg-config,
erlang-dev,
+ dh-lua,
dh-ocaml, ocaml-nox, ocaml-findlib, libpcre-ocaml-dev, libgettext-ocaml-dev,
python (>= 2.6.6-3~), python-all-dev (>= 2.6.6-3~), python3-all-dev,
default-jdk,
@@ -311,3 +312,16 @@ Description: guest disk image management system - GObject introspection files
images.
.
This package contains the GObject introspection data.
+
+Package: lua-guestfs
+Architecture: i386 amd64
+Multi-Arch: same
+Pre-Depends: multiarch-support
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Provides: ${lua:Provides}
+XB-Lua-Versions: ${lua:Versions}
+Description: guest disk image management system - Lua bindings
+ The libguestfs library allows accessing and modifying guest disk
+ images.
+ .
+ This package contains the Lua bindings.
diff --git a/debian/lua-guestfs.examples b/debian/lua-guestfs.examples
new file mode 100644
index 0000000..873e02c
--- /dev/null
+++ b/debian/lua-guestfs.examples
@@ -0,0 +1 @@
+lua/examples/*.lua
diff --git a/debian/lua-guestfs.install b/debian/lua-guestfs.install
new file mode 100644
index 0000000..09270af
--- /dev/null
+++ b/debian/lua-guestfs.install
@@ -0,0 +1,2 @@
+/usr/lib/*-*/lua/*/*.so
+/usr/share/man/man3/guestfs-lua.3*
diff --git a/debian/rules b/debian/rules
index 0af78b6..d4feb6b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,8 @@ PYTHONS := $(filter-out python2.5, $(shell pyversions --installed; py3ver
PYTHON_DEFAULT := $(shell pyversions --default)
RUBIES := $(shell find /usr/bin/ -name ruby1\* | xargs -n1 readlink -f | xargs -n1 basename)
RUBY_DEFAULT := $(shell which ruby | xargs readlink -f | xargs basename)
+LUAS := lua5.1 lua5.2
+LUA_DEFAULT := lua5.1
DEFAULT_CONFIG_FLAGS = \
--disable-appliance \
@@ -25,6 +27,7 @@ override_dh_auto_clean:
default \
$(filter-out $(PYTHON_DEFAULT), $(PYTHONS)) \
$(filter-out $(RUBY_DEFAULT), $(RUBIES)) \
+ $(filter-out $(LUA_DEFAULT), $(LUAS)) \
; do \
dh_auto_clean --builddir=$(CURDIR)/debian/build-$$p ; \
done
@@ -38,6 +41,7 @@ override_dh_auto_configure:
RUBY=$(RUBY_DEFAULT) \
RAKE=$(patsubst ruby%,rake%,$(RUBY_DEFAULT)) \
PYTHON=$(PYTHON_DEFAULT) \
+ LUA=$(LUA_DEFAULT) \
JNI_INSTALL_DIR='$${libdir}/jni'
set -e; for v in $(patsubst ruby%,%,$(filter-out $(RUBY_DEFAULT), $(RUBIES))) \
@@ -46,6 +50,7 @@ override_dh_auto_configure:
dh_auto_configure --builddir=$(CURDIR)/debian/build-ruby$$v \
-- \
$(BARE_CONFIG_FLAGS) \
+ --disable-lua \
--disable-python \
RUBY=ruby$$v RAKE=$$rake ; \
done
@@ -55,10 +60,21 @@ override_dh_auto_configure:
dh_auto_configure --builddir=$(CURDIR)/debian/build-$$p \
-- \
$(BARE_CONFIG_FLAGS) \
+ --disable-lua \
--disable-ruby \
PYTHON=$$p ; \
done
+ set -e; for p in $(filter-out $(LUA_DEFAULT), $(LUAS)) \
+ ; do \
+ dh_auto_configure --builddir=$(CURDIR)/debian/build-$$p \
+ -- \
+ $(BARE_CONFIG_FLAGS) \
+ --disable-python \
+ --disable-ruby \
+ LUA=$$p ; \
+ done
+
override_dh_strip:
dh_strip --dbg-package=libguestfs0-dbg
@@ -75,6 +91,7 @@ override_dh_auto_build:
set -e; for p in \
$(filter-out $(PYTHON_DEFAULT), $(PYTHONS)) \
$(filter-out $(RUBY_DEFAULT), $(RUBIES)) \
+ $(filter-out $(LUA_DEFAULT), $(LUAS)) \
; do \
dh_auto_build --builddir=$(CURDIR)/debian/build-$$p ; \
done
@@ -84,6 +101,7 @@ override_dh_auto_test:
default \
$(filter-out $(PYTHON_DEFAULT), $(PYTHONS)) \
$(filter-out $(RUBY_DEFAULT), $(RUBIES)) \
+ $(filter-out $(LUA_DEFAULT), $(LUAS)) \
; do \
dh_auto_test --builddir=$(CURDIR)/debian/build-$$p \
-- CFLAGS="$(filter-out -Werror=format-security,$(CFLAGS))"; \
@@ -96,6 +114,7 @@ override_dh_auto_install:
set -e; for p in \
$(filter-out $(PYTHON_DEFAULT), $(PYTHONS)) \
$(filter-out $(RUBY_DEFAULT), $(RUBIES)) \
+ $(filter-out $(LUA_DEFAULT), $(LUAS)) \
default \
; do \
dh_auto_install --builddir=$(CURDIR)/debian/build-$$p ; \
@@ -144,4 +163,4 @@ override_dh_makeshlibs:
%:
dh $@ \
--without=python-support \
- --with=autoreconf,ocaml,python2,python3,bash-completion,ruby,gir
+ --with=autoreconf,ocaml,python2,python3,bash-completion,ruby,gir,lua
--
Libguestfs Debian packaging
More information about the Pkg-libvirt-commits
mailing list