]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
spec: make client-only testing easier
authorEric Blake <eblake@redhat.com>
Wed, 4 Sep 2013 20:59:49 +0000 (14:59 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 5 Sep 2013 13:06:36 +0000 (07:06 -0600)
Several recent patches cleaned up 'make rpm' for the situation
when client_only is true; these were done by manual spec file
editing (since it's relatively hard to come by a RHEL 5 s390
box).  Make it easier to do in the future via a simpler command
line override.

* libvirt.spec.in (client_only): Allow for override.

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

index e4b832977fb7f38d013e3255d634cd38b7ebd11f..a55e87c0a5c30b2ac5edf5d90bf58f54dea40610 100644 (file)
@@ -15,8 +15,9 @@
 
 # A client only build will create a libvirt.so only containing
 # the generic RPC driver, and test driver and no libvirtd
-# Default to a full server + client build
-%define client_only        0
+# Default to a full server + client build, but with the possibility
+# of a command-line or ~/.rpmmacros override for client-only.
+%{!?client_only:%define client_only 0}
 
 # Now turn off server build in certain cases