Compare commits
21 Commits
F-10-start
...
libvirt-0_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
48b90fefc1 | ||
|
|
bc4bbabdf6 | ||
|
|
905627c8fd | ||
|
|
a16d752c10 | ||
|
|
29b1292019 | ||
|
|
f3546be64b | ||
|
|
fb9044931e | ||
|
|
03c5fec4d2 | ||
|
|
ce373a25b6 | ||
|
|
996d0e4709 | ||
|
|
8c01426c44 | ||
|
|
e859f7e59e | ||
|
|
25ea2f59bd | ||
|
|
c80b7f0d5a | ||
|
|
958f1c3dff | ||
|
|
4a8ca1017f | ||
|
|
1e122ee5dc | ||
|
|
6a6307bcdc | ||
|
|
6e8332946a | ||
|
|
982683e56f | ||
|
|
7244d1a339 |
@@ -3,4 +3,5 @@
|
|||||||
i686
|
i686
|
||||||
x86_64
|
x86_64
|
||||||
libvirt-*.tar.gz
|
libvirt-*.tar.gz
|
||||||
libvirt-0.4.6.tar.gz
|
libvirt-0.6.0.tar.gz
|
||||||
|
libvirt-0.6.1.tar.gz
|
||||||
|
|||||||
11
libvirt-0.6.1-storage-delete-fail.patch
Normal file
11
libvirt-0.6.1-storage-delete-fail.patch
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
diff -rup libvirt-0.6.1.orig/src/storage_driver.c libvirt-0.6.1.new/src/storage_driver.c
|
||||||
|
--- libvirt-0.6.1.orig/src/storage_driver.c 2009-02-16 03:43:41.000000000 -0500
|
||||||
|
+++ libvirt-0.6.1.new/src/storage_driver.c 2009-03-06 08:02:51.000000000 -0500
|
||||||
|
@@ -1296,7 +1296,6 @@ storageVolumeDelete(virStorageVolPtr obj
|
||||||
|
ret = 0;
|
||||||
|
|
||||||
|
cleanup:
|
||||||
|
- virStorageVolDefFree(vol);
|
||||||
|
if (pool)
|
||||||
|
virStoragePoolObjUnlock(pool);
|
||||||
|
return ret;
|
||||||
277
libvirt-0.6.1-vnc-sasl-auth.patch
Normal file
277
libvirt-0.6.1-vnc-sasl-auth.patch
Normal file
@@ -0,0 +1,277 @@
|
|||||||
|
diff -r 961d4b1ca1d3 qemud/libvirtd_qemu.aug
|
||||||
|
--- a/qemud/libvirtd_qemu.aug Wed Mar 04 13:17:44 2009 +0000
|
||||||
|
+++ b/qemud/libvirtd_qemu.aug Thu Mar 05 14:22:50 2009 +0000
|
||||||
|
@@ -27,6 +27,8 @@ module Libvirtd_qemu =
|
||||||
|
| str_entry "vnc_tls_x509_cert_dir"
|
||||||
|
| bool_entry "vnc_tls_x509_verify"
|
||||||
|
| str_entry "vnc_password"
|
||||||
|
+ | bool_entry "vnc_sasl"
|
||||||
|
+ | str_entry "vnc_sasl_dir"
|
||||||
|
|
||||||
|
(* Each enty in the config is one of the following three ... *)
|
||||||
|
let entry = vnc_entry
|
||||||
|
diff -r 961d4b1ca1d3 qemud/test_libvirtd_qemu.aug
|
||||||
|
--- a/qemud/test_libvirtd_qemu.aug Wed Mar 04 13:17:44 2009 +0000
|
||||||
|
+++ b/qemud/test_libvirtd_qemu.aug Thu Mar 05 14:22:50 2009 +0000
|
||||||
|
@@ -60,6 +60,25 @@ vnc_tls_x509_verify = 1
|
||||||
|
# example here before you set this
|
||||||
|
#
|
||||||
|
vnc_password = \"XYZ12345\"
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+# Enable use of SASL encryption on the VNC server. This requires
|
||||||
|
+# a VNC client which supports the SASL protocol extension.
|
||||||
|
+# Examples include vinagre, virt-viewer and virt-manager
|
||||||
|
+# itself. UltraVNC, RealVNC, TightVNC do not support this
|
||||||
|
+#
|
||||||
|
+# It is necessary to configure /etc/sasl2/qemu.conf to choose
|
||||||
|
+# the desired SASL plugin (eg, GSSPI for Kerberos)
|
||||||
|
+#
|
||||||
|
+vnc_sasl = 1
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+# The default SASL configuration file is located in /etc/sasl2/
|
||||||
|
+# When running libvirtd unprivileged, it may be desirable to
|
||||||
|
+# override the configs in this location. Set this parameter to
|
||||||
|
+# point to the directory, and create a qemu.conf in that location
|
||||||
|
+#
|
||||||
|
+vnc_sasl_dir = \"/some/directory/sasl2\"
|
||||||
|
"
|
||||||
|
|
||||||
|
test Libvirtd_qemu.lns get conf =
|
||||||
|
@@ -123,3 +142,22 @@ vnc_password = \"XYZ12345\"
|
||||||
|
{ "#comment" = "example here before you set this" }
|
||||||
|
{ "#comment" = "" }
|
||||||
|
{ "vnc_password" = "XYZ12345" }
|
||||||
|
+{ "#empty" }
|
||||||
|
+{ "#empty" }
|
||||||
|
+{ "#comment" = "Enable use of SASL encryption on the VNC server. This requires" }
|
||||||
|
+{ "#comment" = "a VNC client which supports the SASL protocol extension." }
|
||||||
|
+{ "#comment" = "Examples include vinagre, virt-viewer and virt-manager" }
|
||||||
|
+{ "#comment" = "itself. UltraVNC, RealVNC, TightVNC do not support this" }
|
||||||
|
+{ "#comment" = "" }
|
||||||
|
+{ "#comment" = "It is necessary to configure /etc/sasl2/qemu.conf to choose" }
|
||||||
|
+{ "#comment" = "the desired SASL plugin (eg, GSSPI for Kerberos)" }
|
||||||
|
+{ "#comment" = "" }
|
||||||
|
+{ "vnc_sasl" = "1" }
|
||||||
|
+{ "#empty" }
|
||||||
|
+{ "#empty" }
|
||||||
|
+{ "#comment" = "The default SASL configuration file is located in /etc/sasl2/" }
|
||||||
|
+{ "#comment" = "When running libvirtd unprivileged, it may be desirable to" }
|
||||||
|
+{ "#comment" = "override the configs in this location. Set this parameter to" }
|
||||||
|
+{ "#comment" = "point to the directory, and create a qemu.conf in that location" }
|
||||||
|
+{ "#comment" = "" }
|
||||||
|
+{ "vnc_sasl_dir" = "/some/directory/sasl2" }
|
||||||
|
diff -r 961d4b1ca1d3 src/qemu.conf
|
||||||
|
--- a/src/qemu.conf Wed Mar 04 13:17:44 2009 +0000
|
||||||
|
+++ b/src/qemu.conf Thu Mar 05 14:22:50 2009 +0000
|
||||||
|
@@ -60,6 +60,27 @@
|
||||||
|
# vnc_password = "XYZ12345"
|
||||||
|
|
||||||
|
|
||||||
|
+# Enable use of SASL encryption on the VNC server. This requires
|
||||||
|
+# a VNC client which supports the SASL protocol extension.
|
||||||
|
+# Examples include vinagre, virt-viewer and virt-manager
|
||||||
|
+# itself. UltraVNC, RealVNC, TightVNC do not support this
|
||||||
|
+#
|
||||||
|
+# It is necessary to configure /etc/sasl2/qemu.conf to choose
|
||||||
|
+# the desired SASL plugin (eg, GSSPI for Kerberos)
|
||||||
|
+#
|
||||||
|
+# vnc_sasl = 1
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+# The default SASL configuration file is located in /etc/sasl2/
|
||||||
|
+# When running libvirtd unprivileged, it may be desirable to
|
||||||
|
+# override the configs in this location. Set this parameter to
|
||||||
|
+# point to the directory, and create a qemu.conf in that location
|
||||||
|
+#
|
||||||
|
+# vnc_sasl_dir = "/some/directory/sasl2"
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+
|
||||||
|
# The default security driver is SELinux. If SELinux is disabled
|
||||||
|
# on the host, then the security driver will automatically disable
|
||||||
|
# itself. If you wish to disable QEMU SELinux security driver while
|
||||||
|
diff -r 961d4b1ca1d3 src/qemu_conf.c
|
||||||
|
--- a/src/qemu_conf.c Wed Mar 04 13:17:44 2009 +0000
|
||||||
|
+++ b/src/qemu_conf.c Thu Mar 05 14:22:50 2009 +0000
|
||||||
|
@@ -161,6 +161,21 @@ int qemudLoadDriverConfig(struct qemud_d
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
+ p = virConfGetValue (conf, "vnc_sasl");
|
||||||
|
+ CHECK_TYPE ("vnc_sasl", VIR_CONF_LONG);
|
||||||
|
+ if (p) driver->vncSASL = p->l;
|
||||||
|
+
|
||||||
|
+ p = virConfGetValue (conf, "vnc_sasl_dir");
|
||||||
|
+ CHECK_TYPE ("vnc_sasl_dir", VIR_CONF_STRING);
|
||||||
|
+ if (p && p->str) {
|
||||||
|
+ VIR_FREE(driver->vncSASLdir);
|
||||||
|
+ if (!(driver->vncSASLdir = strdup(p->str))) {
|
||||||
|
+ virReportOOMError(NULL);
|
||||||
|
+ virConfFree(conf);
|
||||||
|
+ return -1;
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
virConfFree (conf);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
@@ -838,15 +853,20 @@ int qemudBuildCommandLine(virConnectPtr
|
||||||
|
goto no_memory; \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
|
+#define ADD_ENV_PAIR(envname, val) \
|
||||||
|
+ do { \
|
||||||
|
+ char *envval; \
|
||||||
|
+ ADD_ENV_SPACE; \
|
||||||
|
+ if (virAsprintf(&envval, "%s=%s", envname, val) < 0) \
|
||||||
|
+ goto no_memory; \
|
||||||
|
+ qenv[qenvc++] = envval; \
|
||||||
|
+ } while (0)
|
||||||
|
+
|
||||||
|
#define ADD_ENV_COPY(envname) \
|
||||||
|
do { \
|
||||||
|
char *val = getenv(envname); \
|
||||||
|
- char *envval; \
|
||||||
|
- ADD_ENV_SPACE; \
|
||||||
|
if (val != NULL) { \
|
||||||
|
- if (virAsprintf(&envval, "%s=%s", envname, val) < 0) \
|
||||||
|
- goto no_memory; \
|
||||||
|
- qenv[qenvc++] = envval; \
|
||||||
|
+ ADD_ENV_PAIR(envname, val); \
|
||||||
|
} \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
|
@@ -1295,6 +1315,15 @@ int qemudBuildCommandLine(virConnectPtr
|
||||||
|
driver->vncTLSx509certdir);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
+
|
||||||
|
+ if (driver->vncSASL) {
|
||||||
|
+ virBufferAddLit(&opt, ",sasl");
|
||||||
|
+
|
||||||
|
+ if (driver->vncSASLdir)
|
||||||
|
+ ADD_ENV_PAIR("SASL_CONF_DIR", driver->vncSASLdir);
|
||||||
|
+
|
||||||
|
+ /* TODO: Support ACLs later */
|
||||||
|
+ }
|
||||||
|
} else {
|
||||||
|
virBufferVSprintf(&opt, "%d",
|
||||||
|
vm->def->graphics->data.vnc.port - 5900);
|
||||||
|
diff -r 961d4b1ca1d3 src/qemu_conf.h
|
||||||
|
--- a/src/qemu_conf.h Wed Mar 04 13:17:44 2009 +0000
|
||||||
|
+++ b/src/qemu_conf.h Thu Mar 05 14:22:50 2009 +0000
|
||||||
|
@@ -73,9 +73,11 @@ struct qemud_driver {
|
||||||
|
char *stateDir;
|
||||||
|
unsigned int vncTLS : 1;
|
||||||
|
unsigned int vncTLSx509verify : 1;
|
||||||
|
+ unsigned int vncSASL : 1;
|
||||||
|
char *vncTLSx509certdir;
|
||||||
|
char *vncListen;
|
||||||
|
char *vncPassword;
|
||||||
|
+ char *vncSASLdir;
|
||||||
|
|
||||||
|
virCapsPtr caps;
|
||||||
|
|
||||||
|
diff -r 961d4b1ca1d3 src/qemu_driver.c
|
||||||
|
--- a/src/qemu_driver.c Wed Mar 04 13:17:44 2009 +0000
|
||||||
|
+++ b/src/qemu_driver.c Thu Mar 05 14:22:50 2009 +0000
|
||||||
|
@@ -620,6 +620,7 @@ qemudShutdown(void) {
|
||||||
|
VIR_FREE(qemu_driver->vncTLSx509certdir);
|
||||||
|
VIR_FREE(qemu_driver->vncListen);
|
||||||
|
VIR_FREE(qemu_driver->vncPassword);
|
||||||
|
+ VIR_FREE(qemu_driver->vncSASLdir);
|
||||||
|
|
||||||
|
/* Free domain callback list */
|
||||||
|
virDomainEventCallbackListFree(qemu_driver->domainEventCallbacks);
|
||||||
|
diff -r 961d4b1ca1d3 tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-sasl.args
|
||||||
|
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
|
||||||
|
+++ b/tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-sasl.args Thu Mar 05 14:22:50 2009 +0000
|
||||||
|
@@ -0,0 +1,1 @@
|
||||||
|
+LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test SASL_CONF_DIR=/root/.sasl2 /usr/bin/qemu -S -M pc -m 214 -smp 1 -monitor pty -pidfile /nowhere/QEMUGuest1.pid -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb -vnc 127.0.0.1:3,sasl
|
||||||
|
diff -r 961d4b1ca1d3 tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-sasl.xml
|
||||||
|
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
|
||||||
|
+++ b/tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-sasl.xml Thu Mar 05 14:22:50 2009 +0000
|
||||||
|
@@ -0,0 +1,24 @@
|
||||||
|
+<domain type='qemu'>
|
||||||
|
+ <name>QEMUGuest1</name>
|
||||||
|
+ <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||||
|
+ <memory>219200</memory>
|
||||||
|
+ <currentMemory>219200</currentMemory>
|
||||||
|
+ <vcpu>1</vcpu>
|
||||||
|
+ <os>
|
||||||
|
+ <type arch='i686' machine='pc'>hvm</type>
|
||||||
|
+ <boot dev='hd'/>
|
||||||
|
+ </os>
|
||||||
|
+ <clock offset='utc'/>
|
||||||
|
+ <on_poweroff>destroy</on_poweroff>
|
||||||
|
+ <on_reboot>restart</on_reboot>
|
||||||
|
+ <on_crash>destroy</on_crash>
|
||||||
|
+ <devices>
|
||||||
|
+ <emulator>/usr/bin/qemu</emulator>
|
||||||
|
+ <disk type='block' device='disk'>
|
||||||
|
+ <source dev='/dev/HostVG/QEMUGuest1'/>
|
||||||
|
+ <target dev='hda' bus='ide'/>
|
||||||
|
+ </disk>
|
||||||
|
+ <input type='mouse' bus='ps2'/>
|
||||||
|
+ <graphics type='vnc' port='5903' autoport='no' listen='127.0.0.1'/>
|
||||||
|
+ </devices>
|
||||||
|
+</domain>
|
||||||
|
diff -r 961d4b1ca1d3 tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-tls.args
|
||||||
|
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
|
||||||
|
+++ b/tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-tls.args Thu Mar 05 14:22:50 2009 +0000
|
||||||
|
@@ -0,0 +1,1 @@
|
||||||
|
+LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test SASL_CONF_DIR=/root/.sasl2 /usr/bin/qemu -S -M pc -m 214 -smp 1 -monitor pty -pidfile /nowhere/QEMUGuest1.pid -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb -vnc 127.0.0.1:3,tls,x509verify=/etc/pki/tls/qemu,sasl
|
||||||
|
diff -r 961d4b1ca1d3 tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-tls.xml
|
||||||
|
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
|
||||||
|
+++ b/tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-tls.xml Thu Mar 05 14:22:50 2009 +0000
|
||||||
|
@@ -0,0 +1,24 @@
|
||||||
|
+<domain type='qemu'>
|
||||||
|
+ <name>QEMUGuest1</name>
|
||||||
|
+ <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||||
|
+ <memory>219200</memory>
|
||||||
|
+ <currentMemory>219200</currentMemory>
|
||||||
|
+ <vcpu>1</vcpu>
|
||||||
|
+ <os>
|
||||||
|
+ <type arch='i686' machine='pc'>hvm</type>
|
||||||
|
+ <boot dev='hd'/>
|
||||||
|
+ </os>
|
||||||
|
+ <clock offset='utc'/>
|
||||||
|
+ <on_poweroff>destroy</on_poweroff>
|
||||||
|
+ <on_reboot>restart</on_reboot>
|
||||||
|
+ <on_crash>destroy</on_crash>
|
||||||
|
+ <devices>
|
||||||
|
+ <emulator>/usr/bin/qemu</emulator>
|
||||||
|
+ <disk type='block' device='disk'>
|
||||||
|
+ <source dev='/dev/HostVG/QEMUGuest1'/>
|
||||||
|
+ <target dev='hda' bus='ide'/>
|
||||||
|
+ </disk>
|
||||||
|
+ <input type='mouse' bus='ps2'/>
|
||||||
|
+ <graphics type='vnc' port='5903' autoport='no' listen='127.0.0.1'/>
|
||||||
|
+ </devices>
|
||||||
|
+</domain>
|
||||||
|
diff -r 961d4b1ca1d3 tests/qemuxml2argvtest.c
|
||||||
|
--- a/tests/qemuxml2argvtest.c Wed Mar 04 13:17:44 2009 +0000
|
||||||
|
+++ b/tests/qemuxml2argvtest.c Thu Mar 05 14:22:50 2009 +0000
|
||||||
|
@@ -213,6 +213,19 @@ mymain(int argc, char **argv)
|
||||||
|
QEMUD_CMD_FLAG_DRIVE_CACHE_V2);
|
||||||
|
DO_TEST("disk-usb", 0);
|
||||||
|
DO_TEST("graphics-vnc", 0);
|
||||||
|
+
|
||||||
|
+ driver.vncSASL = 1;
|
||||||
|
+ driver.vncSASLdir = strdup("/root/.sasl2");
|
||||||
|
+ DO_TEST("graphics-vnc-sasl", 0);
|
||||||
|
+ driver.vncTLS = 1;
|
||||||
|
+ driver.vncTLSx509verify = 1;
|
||||||
|
+ driver.vncTLSx509certdir = strdup("/etc/pki/tls/qemu");
|
||||||
|
+ DO_TEST("graphics-vnc-tls", 0);
|
||||||
|
+ driver.vncSASL = driver.vncTLSx509verify = driver.vncTLS = 0;
|
||||||
|
+ free(driver.vncSASLdir);
|
||||||
|
+ free(driver.vncTLSx509certdir);
|
||||||
|
+ driver.vncSASLdir = driver.vncTLSx509certdir = NULL;
|
||||||
|
+
|
||||||
|
DO_TEST("graphics-sdl", 0);
|
||||||
|
DO_TEST("graphics-sdl-fullscreen", 0);
|
||||||
|
DO_TEST("input-usbmouse", 0);
|
||||||
183
libvirt.spec
183
libvirt.spec
@@ -10,9 +10,11 @@
|
|||||||
%define with_polkit 0%{!?_without_polkit:0}
|
%define with_polkit 0%{!?_without_polkit:0}
|
||||||
%define with_python 0%{!?_without_python:1}
|
%define with_python 0%{!?_without_python:1}
|
||||||
%define with_libvirtd 0%{!?_without_libvirtd:1}
|
%define with_libvirtd 0%{!?_without_libvirtd:1}
|
||||||
|
%define with_uml 0%{!?_without_uml:1}
|
||||||
|
%define with_network 0%{!?_without_network:1}
|
||||||
|
|
||||||
# Xen is available only on i386 x86_64 ia64
|
# Xen is available only on i386 x86_64 ia64
|
||||||
%ifnarch i386 i686 x86_64 ia64
|
%ifnarch i386 i586 i686 x86_64 ia64
|
||||||
%define with_xen 0
|
%define with_xen 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@@ -20,7 +22,7 @@
|
|||||||
%define with_xen_proxy 0
|
%define with_xen_proxy 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if "%{fedora}"
|
%if 0%{?fedora}
|
||||||
%ifarch ppc64
|
%ifarch ppc64
|
||||||
%define with_qemu 0
|
%define with_qemu 0
|
||||||
%endif
|
%endif
|
||||||
@@ -31,23 +33,38 @@
|
|||||||
%define with_xen_proxy 0
|
%define with_xen_proxy 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
#
|
||||||
|
# If building on RHEL switch on the specific support
|
||||||
|
# for the specific Xen version
|
||||||
|
#
|
||||||
|
%if 0%{?fedora}
|
||||||
|
%define with_rhel5 0
|
||||||
|
%else
|
||||||
|
%define with_rhel5 1
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
Summary: Library providing a simple API virtualization
|
Summary: Library providing a simple API virtualization
|
||||||
Name: libvirt
|
Name: libvirt
|
||||||
Version: 0.4.6
|
Version: 0.6.1
|
||||||
Release: 3%{?dist}%{?extra_release}
|
Release: 3%{?dist}%{?extra_release}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Source: libvirt-%{version}.tar.gz
|
Source: libvirt-%{version}.tar.gz
|
||||||
Patch0: python_make.patch
|
Patch1: libvirt-%{version}-storage-delete-fail.patch
|
||||||
|
|
||||||
|
# Not upstream yet - pending QEMU merge
|
||||||
|
Patch100: libvirt-%{version}-vnc-sasl-auth.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
URL: http://libvirt.org/
|
URL: http://libvirt.org/
|
||||||
BuildRequires: python python-devel
|
BuildRequires: python python-devel
|
||||||
Requires: libxml2
|
|
||||||
Requires: readline
|
Requires: readline
|
||||||
Requires: ncurses
|
Requires: ncurses
|
||||||
Requires: dnsmasq
|
Requires: dnsmasq
|
||||||
Requires: bridge-utils
|
Requires: bridge-utils
|
||||||
Requires: iptables
|
Requires: iptables
|
||||||
|
# needed for device enumeration
|
||||||
|
Requires: hal
|
||||||
# So remote clients can access libvirt over SSH tunnel
|
# So remote clients can access libvirt over SSH tunnel
|
||||||
# (client invokes 'nc' against the UNIX socket on the server)
|
# (client invokes 'nc' against the UNIX socket on the server)
|
||||||
Requires: nc
|
Requires: nc
|
||||||
@@ -80,6 +97,8 @@ Requires: lvm2
|
|||||||
Requires: iscsi-initiator-utils
|
Requires: iscsi-initiator-utils
|
||||||
# For disk driver
|
# For disk driver
|
||||||
Requires: parted
|
Requires: parted
|
||||||
|
# For svirt support
|
||||||
|
Requires: libselinux
|
||||||
%if %{with_xen}
|
%if %{with_xen}
|
||||||
BuildRequires: xen-devel
|
BuildRequires: xen-devel
|
||||||
%endif
|
%endif
|
||||||
@@ -89,6 +108,7 @@ BuildRequires: readline-devel
|
|||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
BuildRequires: gnutls-devel
|
BuildRequires: gnutls-devel
|
||||||
|
BuildRequires: hal-devel
|
||||||
%if %{with_avahi}
|
%if %{with_avahi}
|
||||||
BuildRequires: avahi-devel
|
BuildRequires: avahi-devel
|
||||||
%endif
|
%endif
|
||||||
@@ -121,7 +141,10 @@ BuildRequires: lvm2
|
|||||||
BuildRequires: iscsi-initiator-utils
|
BuildRequires: iscsi-initiator-utils
|
||||||
# For disk driver
|
# For disk driver
|
||||||
BuildRequires: parted-devel
|
BuildRequires: parted-devel
|
||||||
Obsoletes: libvir
|
# For QEMU/LXC numa info
|
||||||
|
BuildRequires: numactl-devel
|
||||||
|
Obsoletes: libvir <= 0.2
|
||||||
|
Provides: libvir = %{version}-%{release}
|
||||||
|
|
||||||
# Fedora build root suckage
|
# Fedora build root suckage
|
||||||
BuildRequires: gawk
|
BuildRequires: gawk
|
||||||
@@ -133,12 +156,13 @@ of recent versions of Linux (and other OSes).
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Libraries, includes, etc. to compile with the libvirt library
|
Summary: Libraries, includes, etc. to compile with the libvirt library
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: libvirt = %{version}
|
Requires: libvirt = %{version}-%{release}
|
||||||
Requires: pkgconfig
|
Requires: pkgconfig
|
||||||
%if %{with_xen}
|
%if %{with_xen}
|
||||||
Requires: xen-devel
|
Requires: xen-devel
|
||||||
%endif
|
%endif
|
||||||
Obsoletes: libvir-devel
|
Obsoletes: libvir-devel <= 0.2
|
||||||
|
Provides: libvir-devel = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Includes and documentations for the C library providing an API to use
|
Includes and documentations for the C library providing an API to use
|
||||||
@@ -148,8 +172,9 @@ the virtualization capabilities of recent versions of Linux (and other OSes).
|
|||||||
%package python
|
%package python
|
||||||
Summary: Python bindings for the libvirt library
|
Summary: Python bindings for the libvirt library
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: libvirt = %{version}
|
Requires: libvirt = %{version}-%{release}
|
||||||
Obsoletes: libvir-python
|
Obsoletes: libvir-python <= 0.2
|
||||||
|
Provides: libvir-python = %{version}-%{release}
|
||||||
|
|
||||||
%description python
|
%description python
|
||||||
The libvirt-python package contains a module that permits applications
|
The libvirt-python package contains a module that permits applications
|
||||||
@@ -160,7 +185,12 @@ of recent versions of Linux (and other OSes).
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p0
|
%patch1 -p1
|
||||||
|
|
||||||
|
%patch100 -p1
|
||||||
|
|
||||||
|
mv NEWS NEWS.old
|
||||||
|
iconv -f ISO-8859-1 -t UTF-8 < NEWS.old > NEWS
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if ! %{with_xen}
|
%if ! %{with_xen}
|
||||||
@@ -199,6 +229,18 @@ of recent versions of Linux (and other OSes).
|
|||||||
%define _without_libvirtd --without-libvirtd
|
%define _without_libvirtd --without-libvirtd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if ! %{with_uml}
|
||||||
|
%define _without_uml --without-uml
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with_rhel5}
|
||||||
|
%define _with_rhel5_api --with-rhel5-api
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if ! %{with_network}
|
||||||
|
%define _without_network --without-network
|
||||||
|
%endif
|
||||||
|
|
||||||
%configure %{?_without_xen} \
|
%configure %{?_without_xen} \
|
||||||
%{?_without_qemu} \
|
%{?_without_qemu} \
|
||||||
%{?_without_openvz} \
|
%{?_without_openvz} \
|
||||||
@@ -208,17 +250,23 @@ of recent versions of Linux (and other OSes).
|
|||||||
%{?_without_polkit} \
|
%{?_without_polkit} \
|
||||||
%{?_without_python} \
|
%{?_without_python} \
|
||||||
%{?_without_libvirtd} \
|
%{?_without_libvirtd} \
|
||||||
|
%{?_without_uml} \
|
||||||
|
%{?_without_network} \
|
||||||
|
%{?_with_rhel5_api} \
|
||||||
--with-init-script=redhat \
|
--with-init-script=redhat \
|
||||||
--with-qemud-pid-file=%{_localstatedir}/run/libvirt_qemud.pid \
|
--with-qemud-pid-file=%{_localstatedir}/run/libvirt_qemud.pid \
|
||||||
--with-remote-file=%{_localstatedir}/run/libvirtd.pid
|
--with-remote-file=%{_localstatedir}/run/libvirtd.pid
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -fr %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%makeinstall
|
%makeinstall
|
||||||
(cd docs/examples ; make clean ; rm -rf .deps Makefile Makefile.in)
|
(cd docs/examples ; make clean ; rm -rf .deps Makefile Makefile.in)
|
||||||
(cd docs/examples/python ; rm -f Makefile Makefile.in)
|
(cd docs/examples/python ; rm -rf .deps Makefile Makefile.in)
|
||||||
|
(cd examples/hellolibvirt ; make clean ; rm -rf .deps .libs Makefile Makefile.in)
|
||||||
|
(cd examples/domain-events/events-c ; make clean ;rm -rf .deps .libs Makefile Makefile.in)
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la
|
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la
|
||||||
@@ -256,6 +304,10 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libvirt-python-%{version}
|
|||||||
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu.conf
|
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu.conf
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{with_libvirtd}
|
||||||
|
chmod 0644 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/libvirtd
|
||||||
|
%endif
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -fr %{buildroot}
|
rm -fr %{buildroot}
|
||||||
|
|
||||||
@@ -268,7 +320,7 @@ rm -fr %{buildroot}
|
|||||||
# or on the first upgrade from a non-network aware libvirt only.
|
# or on the first upgrade from a non-network aware libvirt only.
|
||||||
# We check this by looking to see if the daemon is already installed
|
# We check this by looking to see if the daemon is already installed
|
||||||
/sbin/chkconfig --list libvirtd 1>/dev/null 2>&1
|
/sbin/chkconfig --list libvirtd 1>/dev/null 2>&1
|
||||||
if [ $? != 0 ]
|
if [ $? != 0 -a ! -f %{_sysconfdir}/libvirt/qemu/networks/default.xml ]
|
||||||
then
|
then
|
||||||
UUID=`/usr/bin/uuidgen`
|
UUID=`/usr/bin/uuidgen`
|
||||||
sed -e "s,</name>,</name>\n <uuid>$UUID</uuid>," \
|
sed -e "s,</name>,</name>\n <uuid>$UUID</uuid>," \
|
||||||
@@ -289,8 +341,7 @@ if [ $1 = 0 ]; then
|
|||||||
fi
|
fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%postun
|
%postun -p /sbin/ldconfig
|
||||||
/sbin/ldconfig
|
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
@@ -311,6 +362,7 @@ fi
|
|||||||
%{_sysconfdir}/rc.d/init.d/libvirtd
|
%{_sysconfdir}/rc.d/init.d/libvirtd
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/libvirtd
|
%config(noreplace) %{_sysconfdir}/sysconfig/libvirtd
|
||||||
%config(noreplace) %{_sysconfdir}/libvirt/libvirtd.conf
|
%config(noreplace) %{_sysconfdir}/libvirt/libvirtd.conf
|
||||||
|
%config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with_qemu}
|
%if %{with_qemu}
|
||||||
@@ -327,11 +379,42 @@ fi
|
|||||||
%{_datadir}/libvirt/networks/default.xml
|
%{_datadir}/libvirt/networks/default.xml
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%dir %{_datadir}/libvirt/
|
||||||
|
%dir %{_datadir}/libvirt/schemas/
|
||||||
|
|
||||||
|
%{_datadir}/libvirt/schemas/domain.rng
|
||||||
|
%{_datadir}/libvirt/schemas/network.rng
|
||||||
|
%{_datadir}/libvirt/schemas/storagepool.rng
|
||||||
|
%{_datadir}/libvirt/schemas/storagevol.rng
|
||||||
|
%{_datadir}/libvirt/schemas/nodedev.rng
|
||||||
|
%{_datadir}/libvirt/schemas/capability.rng
|
||||||
|
|
||||||
%dir %{_localstatedir}/run/libvirt/
|
%dir %{_localstatedir}/run/libvirt/
|
||||||
|
|
||||||
%dir %{_localstatedir}/lib/libvirt/
|
%dir %{_localstatedir}/lib/libvirt/
|
||||||
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/images/
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/images/
|
||||||
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/boot/
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/boot/
|
||||||
|
|
||||||
|
%if %{with_qemu}
|
||||||
|
%dir %{_localstatedir}/run/libvirt/qemu/
|
||||||
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/qemu/
|
||||||
|
%endif
|
||||||
|
%if %{with_lxc}
|
||||||
|
%dir %{_localstatedir}/run/libvirt/lxc/
|
||||||
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/lxc/
|
||||||
|
%endif
|
||||||
|
%if %{with_uml}
|
||||||
|
%dir %{_localstatedir}/run/libvirt/uml/
|
||||||
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/uml/
|
||||||
|
%endif
|
||||||
|
%if %{with_network}
|
||||||
|
%dir %{_localstatedir}/run/libvirt/network/
|
||||||
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/network/
|
||||||
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/iptables/
|
||||||
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/iptables/filter/
|
||||||
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/iptables/nat/
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{with_qemu}
|
%if %{with_qemu}
|
||||||
%{_datadir}/augeas/lenses/libvirtd_qemu.aug
|
%{_datadir}/augeas/lenses/libvirtd_qemu.aug
|
||||||
%{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
|
%{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
|
||||||
@@ -346,6 +429,7 @@ fi
|
|||||||
%{_datadir}/PolicyKit/policy/org.libvirt.unix.policy
|
%{_datadir}/PolicyKit/policy/org.libvirt.unix.policy
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/
|
||||||
%if %{with_qemu}
|
%if %{with_qemu}
|
||||||
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/qemu/
|
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/qemu/
|
||||||
%endif
|
%endif
|
||||||
@@ -363,7 +447,6 @@ fi
|
|||||||
%attr(0755, root, root) %{_sbindir}/libvirtd
|
%attr(0755, root, root) %{_sbindir}/libvirtd
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%doc docs/*.rng
|
|
||||||
%doc docs/*.xml
|
%doc docs/*.xml
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
@@ -381,6 +464,7 @@ fi
|
|||||||
%doc docs/*.html docs/html docs/*.gif
|
%doc docs/*.html docs/html docs/*.gif
|
||||||
%doc docs/examples
|
%doc docs/examples
|
||||||
%doc docs/libvirt-api.xml
|
%doc docs/libvirt-api.xml
|
||||||
|
%doc examples
|
||||||
|
|
||||||
%if %{with_python}
|
%if %{with_python}
|
||||||
%files python
|
%files python
|
||||||
@@ -396,6 +480,67 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 9 2009 Cole Robinson <crobinso@redhat.com> - 0.6.1-3.fc11
|
||||||
|
- Add Requires: libselinux
|
||||||
|
|
||||||
|
* Fri Mar 6 2009 Daniel P. Berrange <berrange@redhat.com> - 0.6.1-2.fc11
|
||||||
|
- Fix crash after storage vol deletion fails
|
||||||
|
- Add patch to enable VNC SASL authentication
|
||||||
|
|
||||||
|
* Wed Mar 4 2009 Daniel Veillard <veillard@redhat.com> - 0.6.1-1.fc11
|
||||||
|
- upstream release 0.6.1
|
||||||
|
- support for node device detach reattach and reset
|
||||||
|
- sVirt mandatory access control support
|
||||||
|
- many bug fixes and small improvements
|
||||||
|
|
||||||
|
* Mon Mar 2 2009 Daniel Veillard <veillard@redhat.com> - 0.6.0-6.fc11
|
||||||
|
- make sure Xen is handled in i586 new default 32bits x86 packages
|
||||||
|
|
||||||
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-5.fc11
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Feb 18 2009 Daniel P. Berrange <berrange@redhat.com> - 0.6.0-4.fc11
|
||||||
|
- Fix QEMU startup timeout/race (rhbz #484649)
|
||||||
|
- Setup DBus threading. Don't allow dbus to call _exit / change SIGPIPE (rhbz #484553)
|
||||||
|
- Fix timeout when autostarting session daemon
|
||||||
|
|
||||||
|
* Wed Feb 11 2009 Richard W.M. Jones <rjones@redhat.com> - 0.6.0-3.fc11
|
||||||
|
- Multiple fixes to remove rpmlint warnings/errors (rhbz #226055)
|
||||||
|
|
||||||
|
* Fri Feb 6 2009 Daniel P. Berrange <berrange@redhat.com> - 0.6.0-2.fc11
|
||||||
|
- Fix libvirtd --timeout usage
|
||||||
|
- Fix RPC call problems and QEMU startup handling (rhbz #484414)
|
||||||
|
- Fix unowned directories (rhbz #483442)
|
||||||
|
|
||||||
|
* Sat Jan 31 2009 Daniel Veillard <veillard@redhat.com> - 0.6.0-1.fc11
|
||||||
|
- upstream release 0.6.0
|
||||||
|
- thread safety of API
|
||||||
|
- allow QEmu/KVM domains to survive daemon restart
|
||||||
|
- extended logging capabilities
|
||||||
|
- support copy on write storage volumes for QEmu/KVM
|
||||||
|
- support of storage cache control options for QEmu/KVM
|
||||||
|
- a lot of bug fixes
|
||||||
|
|
||||||
|
* Wed Dec 17 2008 Daniel Veillard <veillard@redhat.com> - 0.5.1-2.fc11
|
||||||
|
- fix missing read-only access checks, fixes CVE-2008-5086
|
||||||
|
|
||||||
|
* Fri Dec 5 2008 Daniel Veillard <veillard@redhat.com> - 0.5.1-1.fc11
|
||||||
|
- upstream release 0.5.1
|
||||||
|
- mostly bugfixes e.g #473071
|
||||||
|
- some driver improvments
|
||||||
|
|
||||||
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5.0-2
|
||||||
|
- Rebuild for Python 2.6
|
||||||
|
|
||||||
|
* Wed Nov 26 2008 Daniel Veillard <veillard@redhat.com> - 0.5.0-1.fc11
|
||||||
|
- upstream release 0.5.0
|
||||||
|
- domain lifecycle event support
|
||||||
|
- node device enumeration
|
||||||
|
- KVM/QEmu migration support
|
||||||
|
- improved LXC support
|
||||||
|
- SDL display configuration
|
||||||
|
- User Mode Linux driver (Daniel Berrange)
|
||||||
|
|
||||||
* Wed Sep 24 2008 Daniel Veillard <veillard@redhat.com> - 0.4.6-3.fc10
|
* Wed Sep 24 2008 Daniel Veillard <veillard@redhat.com> - 0.4.6-3.fc10
|
||||||
- apply the python makefile patch for #463733
|
- apply the python makefile patch for #463733
|
||||||
|
|
||||||
@@ -430,7 +575,7 @@ fi
|
|||||||
|
|
||||||
* Wed Jun 4 2008 Mark McLoughlin <markmc@redhat.com> - 0.4.2-6.fc10
|
* Wed Jun 4 2008 Mark McLoughlin <markmc@redhat.com> - 0.4.2-6.fc10
|
||||||
- Disable lokkit support again (#449996, #447633)
|
- Disable lokkit support again (#449996, #447633)
|
||||||
- Ensure %{fedora} is evaluated correctly
|
- Ensure %-fedora is evaluated correctly
|
||||||
|
|
||||||
* Thu May 15 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.2-5.fc10
|
* Thu May 15 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.2-5.fc10
|
||||||
- Rebuild with policy enabled (rhbz #446616)
|
- Rebuild with policy enabled (rhbz #446616)
|
||||||
@@ -615,7 +760,7 @@ fi
|
|||||||
- it's pkgconfig not pgkconfig !
|
- it's pkgconfig not pgkconfig !
|
||||||
|
|
||||||
* Mon Nov 6 2006 Daniel Veillard <veillard@redhat.com> 0.1.8-2
|
* Mon Nov 6 2006 Daniel Veillard <veillard@redhat.com> 0.1.8-2
|
||||||
- fixing spec file, added %dist, -devel requires pkgconfig and xen-devel
|
- fixing spec file, added %-dist, -devel requires pkgconfig and xen-devel
|
||||||
- Resolves: rhbz#202320
|
- Resolves: rhbz#202320
|
||||||
|
|
||||||
* Mon Oct 16 2006 Daniel Veillard <veillard@redhat.com> 0.1.8-1
|
* Mon Oct 16 2006 Daniel Veillard <veillard@redhat.com> 0.1.8-1
|
||||||
|
|||||||
@@ -1,35 +0,0 @@
|
|||||||
Index: python/Makefile.am
|
|
||||||
===================================================================
|
|
||||||
RCS file: /data/cvs/libxen/python/Makefile.am,v
|
|
||||||
retrieving revision 1.13
|
|
||||||
diff -u -p -r1.13 Makefile.am
|
|
||||||
--- python/Makefile.am 5 Feb 2008 19:27:37 -0000 1.13
|
|
||||||
+++ python/Makefile.am 24 Sep 2008 13:21:06 -0000
|
|
||||||
@@ -50,7 +50,7 @@ GENERATED= libvirt-export.c \
|
|
||||||
$(GENERATED): $(srcdir)/$(GENERATE) $(API_DESC)
|
|
||||||
$(PYTHON) $(srcdir)/$(GENERATE) $(srcdir)
|
|
||||||
|
|
||||||
-libvirt.py: $(srcdir)/libvir.py libvirtclass.py
|
|
||||||
+libvirt.py: $(srcdir)/libvir.py $(GENERATED)
|
|
||||||
cat $(srcdir)/libvir.py libvirtclass.py > $@-t
|
|
||||||
mv $@-t $@
|
|
||||||
|
|
||||||
*** python/Makefile.in.orig 2008-09-24 15:19:20.000000000 +0200
|
|
||||||
--- python/Makefile.in 2008-09-24 15:20:07.000000000 +0200
|
|
||||||
*************** uninstall-am: uninstall-local uninstall-
|
|
||||||
*** 1027,1033 ****
|
|
||||||
@WITH_PYTHON_TRUE@$(GENERATED): $(srcdir)/$(GENERATE) $(API_DESC)
|
|
||||||
@WITH_PYTHON_TRUE@ $(PYTHON) $(srcdir)/$(GENERATE) $(srcdir)
|
|
||||||
|
|
||||||
! @WITH_PYTHON_TRUE@libvirt.py: $(srcdir)/libvir.py libvirtclass.py
|
|
||||||
@WITH_PYTHON_TRUE@ cat $(srcdir)/libvir.py libvirtclass.py > $@-t
|
|
||||||
@WITH_PYTHON_TRUE@ mv $@-t $@
|
|
||||||
|
|
||||||
--- 1027,1033 ----
|
|
||||||
@WITH_PYTHON_TRUE@$(GENERATED): $(srcdir)/$(GENERATE) $(API_DESC)
|
|
||||||
@WITH_PYTHON_TRUE@ $(PYTHON) $(srcdir)/$(GENERATE) $(srcdir)
|
|
||||||
|
|
||||||
! @WITH_PYTHON_TRUE@libvirt.py: $(srcdir)/libvir.py $(GENERATED)
|
|
||||||
@WITH_PYTHON_TRUE@ cat $(srcdir)/libvir.py libvirtclass.py > $@-t
|
|
||||||
@WITH_PYTHON_TRUE@ mv $@-t $@
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user