From 8a4e2a5b7b5011e93b9b73031c15d53f9d8cf1ff Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 17 Nov 2012 20:25:04 +0000 Subject: [PATCH] Add Lua bindings package (lua-guestfs). --- libguestfs.spec | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/libguestfs.spec b/libguestfs.spec index 02ba06e..b7b68d0 100644 --- a/libguestfs.spec +++ b/libguestfs.spec @@ -82,6 +82,8 @@ BuildRequires: perl(XML::XPath) BuildRequires: perl(XML::XPath::XMLParser) BuildRequires: libvirt-daemon-qemu BuildRequires: perl(Expect) +BuildRequires: lua +BuildRequires: lua-devel # This is only needed for RHEL 5 because readline-devel doesn't # properly depend on it, but doesn't do any harm on other platforms: @@ -345,6 +347,8 @@ For GObject bindings and GObject Introspection, install For Java bindings, install 'libguestfs-java-devel'. +For Lua bindings, install 'lua-guestfs' + For OCaml bindings, install 'ocaml-libguestfs-devel'. For Perl bindings, install 'perl-Sys-Guestfs'. @@ -635,6 +639,16 @@ erlang-%{name} contains Erlang bindings for %{name}. %endif +%package -n lua-guestfs +Summary: Lua bindings for %{name} +Group: Development/Libraries +Requires: %{name} = %{epoch}:%{version}-%{release} +Requires: lua + +%description -n lua-guestfs +lua-guestfs contains Lua bindings for %{name}. + + %package gobject Summary: GObject bindings for %{name} Group: Development/Libraries @@ -1001,6 +1015,13 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/libguestfs %endif +%files -n lua-guestfs +%doc lua/examples/*.lua +%doc lua/examples/LICENSE +%{_libdir}/lua/*/guestfs.so +%{_mandir}/man3/guestfs-lua.3* + + %files gobject %{_libdir}/libguestfs-gobject-1.0.so.0* %{_libdir}/girepository-1.0/Guestfs-1.0.typelib