Add Lua bindings package (lua-guestfs).

This commit is contained in:
Richard W.M. Jones 2012-11-17 20:25:04 +00:00
parent f07b3d550a
commit 8a4e2a5b7b

View File

@ -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