]> 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)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 30 Oct 2013 11:49:23 +0000 (11:49 +0000)
commit0a25677126796e5279f271e8a9b114d23eeab5d3
treeda9610ade268ea431ccb527c20a5afc7faaf9427
parent050c432d1a753b0ada33e55f229d02521d390833
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>
(cherry picked from commit d42906fd004dc4cda34c1d2d4b4c18fce213ede2)
libvirt.spec.in