From 8296f9e96dd4d9745427a6a80e61444a102bf6421aa98facbe9234bd60feb0ed Mon Sep 17 00:00:00 2001 From: James Fehlig Date: Tue, 22 Oct 2013 18:29:21 +0000 Subject: [PATCH] - Spec file fixes to only package libvirt-login-shell when building the LXC driver OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=317 --- libvirt.changes | 6 ++++++ libvirt.spec | 13 ++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/libvirt.changes b/libvirt.changes index 23ce6fc..f87efc8 100644 --- a/libvirt.changes +++ b/libvirt.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Oct 22 12:28:03 MDT 2013 - jfehlig@suse.com + +- Spec file fixes to only package libvirt-login-shell when + building the LXC driver + ------------------------------------------------------------------- Mon Oct 21 11:33:03 MDT 2013 - jfehlig@suse.com diff --git a/libvirt.spec b/libvirt.spec index 964fe05..7b6610f 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -900,14 +900,18 @@ Requires: augeas Includes the Sanlock lock manager plugin for the QEMU driver %endif +%if %{with_lxc} + %package login-shell -Summary: Login shell for containers +Summary: Login shell for connecting users to an LXC container Group: Development/Libraries/C and C++ Requires: %{name}-client = %{version}-%{release} %description login-shell -Povides virt-login-shell, a tool to execute a shell within a container -matching the users name +Provides the set-uid virt-login-shell binary that is used to +connect a user to an LXC container when they login, by switching +namespaces. +%endif %if %{with_python} @@ -1680,6 +1684,8 @@ fi %attr(0755, root, root) %{_libdir}/%{name}/libvirt_sanlock_helper %endif +%if %{with_lxc} + %files login-shell %defattr(-, root, root) %config(noreplace) %{_sysconfdir}/libvirt/virt-login-shell.conf @@ -1688,6 +1694,7 @@ fi # In the meantime, don't install setuid #%attr(4755, root, root) %{_bindir}/virt-login-shell %{_bindir}/virt-login-shell +%endif %if %{with_python}