]> git.ipfire.org Git - thirdparty/libvirt.git/commit
spec: fix rpm build when lxc disabled
authorEric Blake <eblake@redhat.com>
Tue, 3 Sep 2013 21:10:01 +0000 (15:10 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 4 Sep 2013 17:30:18 +0000 (11:30 -0600)
commitd42906fd004dc4cda34c1d2d4b4c18fce213ede2
tree111cc6a4ede6e1e8cf81a0ecf5e7be09f725f743
parent4c7d1eab6e0d5fca56a0d7e2c67ee9e71836f111
spec: fix rpm build when lxc disabled

'make rpm' failed if ~/.rpmmacros contains '%_without_lxc 1',
which simulates the case of not having lxc available.

RPM build errors:
    File not found: /home/eblake/rpmbuild/BUILDROOT/libvirt-1.1.1-1.fc19.x86_64/etc/libvirt/virt-login-shell.conf
    File not found by glob: /home/eblake/rpmbuild/BUILDROOT/libvirt-1.1.1-1.fc19.x86_64/usr/share/man/man1/virt-login-shell.1*
    File not found: /home/eblake/rpmbuild/BUILDROOT/libvirt-1.1.1-1.fc19.x86_64/usr/bin/virt-login-shell
make: *** [rpm] Error 1

Reported by Dan Berrange.

* libvirt.spec.in: Mark virt-login-shell as conditional on lxc.

Signed-off-by: Eric Blake <eblake@redhat.com>
libvirt.spec.in