2007-02-02 15:57:05 +01:00
|
|
|
#
|
2012-01-05 20:39:49 +01:00
|
|
|
# spec file for package virt-manager
|
2007-02-02 15:57:05 +01:00
|
|
|
#
|
2017-01-06 23:04:32 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-02-02 15:57:05 +01:00
|
|
|
#
|
2008-09-10 12:17:53 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-02-02 15:57:05 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2016-03-23 21:49:48 +01:00
|
|
|
|
2013-11-26 22:23:05 +01:00
|
|
|
%define with_guestfs 0
|
|
|
|
%define askpass_package "openssh-askpass"
|
|
|
|
%define qemu_user "qemu"
|
2014-04-04 03:55:04 +02:00
|
|
|
%define libvirt_kvm_packages ""
|
|
|
|
%define libvirt_xen_packages ""
|
2017-01-18 19:49:48 +01:00
|
|
|
%define preferred_distros "sles12sp3,opensuse42.3"
|
2014-04-04 03:55:04 +02:00
|
|
|
%define kvm_packages ""
|
2017-09-20 16:28:03 +02:00
|
|
|
%define _version 1.4.3
|
2015-11-26 00:27:12 +01:00
|
|
|
%define _release 0
|
2010-05-14 01:01:26 +02:00
|
|
|
|
2010-03-19 18:23:36 +01:00
|
|
|
Name: virt-manager
|
2017-09-20 16:28:03 +02:00
|
|
|
Version: 1.4.3
|
2014-08-11 23:36:23 +02:00
|
|
|
Release: 0
|
2007-02-02 15:57:05 +01:00
|
|
|
Summary: Virtual Machine Manager
|
2011-12-06 19:11:51 +01:00
|
|
|
License: GPL-2.0+
|
2012-01-05 20:39:49 +01:00
|
|
|
Group: System/Monitoring
|
2013-11-26 22:23:05 +01:00
|
|
|
Url: http://virt-manager.org/
|
2013-12-04 22:33:56 +01:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2014-01-07 23:00:10 +01:00
|
|
|
Source1: virt-install.rb
|
2013-11-26 22:23:05 +01:00
|
|
|
Source2: virt-install.desktop
|
2017-08-09 21:02:00 +02:00
|
|
|
Source3: virt-manager-supportconfig
|
2015-05-04 22:15:01 +02:00
|
|
|
# Upstream Patches
|
2017-10-11 22:11:09 +02:00
|
|
|
Patch1: 3b769643-dont-add-URI-into-params-for-tunneled-migration.patch
|
|
|
|
Patch2: 6dfc4de1-add-support-for-parsing-formatting-SR-IOV-VFs.patch
|
|
|
|
Patch3: 083dfcc8-Show-details-about-the-network-of-SR-IOV-VF-pool.patch
|
2017-10-30 21:23:56 +01:00
|
|
|
Patch4: 9a9f9ecd-ignore-comments-in-keymap-conf-files.patch
|
|
|
|
Patch5: 9617d126-systray-Use-APPLICATION_STATUS-for-appindicator.patch
|
|
|
|
Patch6: e73abe5a-diskbackend-convert-to-long-the-calculated-size.patch
|
|
|
|
Patch7: 6e6f59e7-diskbackend-get-a-proper-size-of-existing-block-device-while-cloning.patch
|
|
|
|
Patch8: 23aaf852-network-Set-bridge-name-to-None-instead-of-blank.patch
|
|
|
|
Patch9: d1e1cf64-progress-remove-trailing-white-space.patch
|
|
|
|
Patch10: 63fce081-pycodestyle-Use-isinstance-for-type-checking.patch
|
|
|
|
Patch11: 08a58d61-pycodestyle-remove-description-of-fixed-errors.patch
|
|
|
|
Patch12: bc3c9a9d-progress-remove-unused-import.patch
|
|
|
|
Patch13: 2d276ebe-progress-dont-overwrite-format.patch
|
|
|
|
Patch14: e2ad4b2f-convert-iteritems-to-items.patch
|
|
|
|
Patch15: dff00d4f-remove-deprecated-statvfs-module.patch
|
|
|
|
Patch16: 75210ed3-replace-StringIO-with-io.patch
|
|
|
|
Patch17: a2bcd6c4-dont-compare-between-None-and-int.patch
|
|
|
|
Patch18: 44de92b7-use-reload-from-imp-module.patch
|
|
|
|
Patch19: 69c84bea-import-reduce-from-functools-module.patch
|
|
|
|
Patch20: 37ea5207-replace-StandardError-with-Exception.patch
|
|
|
|
Patch21: f41aafc7-Use-enumerate-instead-of-range-and-len.patch
|
|
|
|
Patch22: 91c0669c-cli-Fix-OrderedDict-mutated-during-iteration-on-python3.patch
|
|
|
|
Patch23: b8fa0c6b-xmlnsqemu-order-XML-output-like-libvirt-does.patch
|
|
|
|
Patch24: d2648d81-virtconv-dont-implicitly-depend-on-dict-hash-order.patch
|
|
|
|
Patch25: 999dbb36-cli-Make-VirtCLIArgument-instantiation-less-crazy.patch
|
|
|
|
Patch26: 7f1b4cee-pycodestyle-fix-all-E125-warnings.patch
|
|
|
|
Patch27: d82022bd-manager-drop-python2-only-cmp-usage.patch
|
|
|
|
Patch28: 374a3779-urlfetcher-write-test-file-as-binary-content.patch
|
|
|
|
Patch29: f7c8cf9f-devicepanic-dont-return-empty-model-list.patch
|
|
|
|
Patch30: 3be78d1f-addhardware-dont-allow-panic-option-where-not-supported.patch
|
|
|
|
Patch31: 73de8285-systray-remove-redundant-variable-assignment.patch
|
2017-11-28 17:06:53 +01:00
|
|
|
Patch32: b9bc3b60-undefine-only-persistent-domain.patch
|
|
|
|
Patch33: 7fc7e94f-fix-virtio-scsi-controller-target-calculation.patch
|
|
|
|
Patch34: 2eb455c9-correctly-calculate-virtio-scsi-controller-index.patch
|
|
|
|
Patch35: f836e47b-virtinst-Fix-URLFetcher-for-reading-files.patch
|
2015-01-05 19:16:33 +01:00
|
|
|
# SUSE Only
|
2014-07-18 01:22:14 +02:00
|
|
|
Patch70: virtman-desktop.patch
|
2015-01-05 19:16:33 +01:00
|
|
|
Patch71: virtman-kvm.patch
|
|
|
|
Patch72: virtman-keycombo.patch
|
2015-11-10 17:24:49 +01:00
|
|
|
Patch73: virtman-show-suse-install-repos.patch
|
|
|
|
Patch74: virtman-libvirtd-not-running.patch
|
|
|
|
Patch75: virtman-dont-allow-grub.xen-to-be-deleted.patch
|
|
|
|
Patch76: virtinst-pvgrub2-bootloader.patch
|
|
|
|
Patch77: virtinst-nfs-install-sanitize.patch
|
2015-01-05 19:16:33 +01:00
|
|
|
# Features or Enhancements
|
|
|
|
Patch101: virtman-default-guest-from-host-os.patch
|
|
|
|
Patch102: virtman-default-to-xen-pv.patch
|
2015-11-26 00:27:12 +01:00
|
|
|
Patch103: virtman-packages.patch
|
|
|
|
Patch104: virtman-load-stored-uris.patch
|
|
|
|
Patch105: virtman-add-connect-default.patch
|
2015-01-05 19:16:33 +01:00
|
|
|
Patch120: virtinst-storage-ocfs2.patch
|
2015-05-04 22:15:01 +02:00
|
|
|
Patch121: virtinst-default-xen-to-qcow2-format.patch
|
2015-09-11 00:13:47 +02:00
|
|
|
Patch122: virtinst-detect-oes-distros.patch
|
|
|
|
Patch123: virtinst-modify-gui-defaults.patch
|
|
|
|
Patch124: virtinst-vol-default-nocow.patch
|
|
|
|
Patch125: virtinst-set-cache-mode-unsafe-for-install.patch
|
2017-03-09 20:10:48 +01:00
|
|
|
Patch126: virtinst-set-qemu-emulator.patch
|
|
|
|
Patch127: virtinst-add-ppc64-arch-support.patch
|
|
|
|
Patch128: virtinst-s390x-disable-graphics.patch
|
2017-04-24 17:25:39 +02:00
|
|
|
Patch129: virtinst-add-caasp-support.patch
|
2015-01-05 19:16:33 +01:00
|
|
|
# Bug Fixes
|
2015-11-26 00:27:12 +01:00
|
|
|
Patch150: virtman-prevent-double-click-starting-vm-twice.patch
|
|
|
|
Patch151: virtman-increase-setKeepAlive-count.patch
|
|
|
|
Patch152: virtman-allow-destroy-from-shutdown-menu-of-crashed-vm.patch
|
|
|
|
Patch153: virtman-check-for-valid-display.patch
|
|
|
|
Patch154: virtman-allow-creating-i686-vm.patch
|
2016-06-22 00:34:03 +02:00
|
|
|
Patch155: virtman-dont-specify-vte-version.patch
|
2015-05-04 22:15:01 +02:00
|
|
|
Patch160: virtinst-xen-drive-type.patch
|
|
|
|
Patch161: virtinst-xenbus-disk-index-fix.patch
|
|
|
|
Patch162: virtinst-refresh_before_fetch_pool.patch
|
2016-06-22 00:34:03 +02:00
|
|
|
Patch163: virtinst-use-xenpae-kernel-for-32bit.patch
|
2016-08-23 18:40:23 +02:00
|
|
|
Patch164: virtinst-use-qemu-for-cdrom-device.patch
|
2017-06-07 19:33:45 +02:00
|
|
|
Patch165: virtinst-fix-sle-distro-parsing.patch
|
2017-08-09 21:02:00 +02:00
|
|
|
Patch166: virtinst-check-date-format.patch
|
|
|
|
Patch167: virtinst-no-usb-tablet-for-xenpv.patch
|
2017-08-25 00:03:36 +02:00
|
|
|
Patch168: virtinst-add-sle15-detection-support.patch
|
2017-08-25 23:12:42 +02:00
|
|
|
Patch169: virtinst-keep-install-iso-attached.patch
|
2017-12-04 13:59:19 +01:00
|
|
|
# Python2 to Python3 patches
|
|
|
|
Patch200: virtmisc-python2-to-python3-conversion.patch
|
|
|
|
Patch201: virtcli-python2-to-python3-conversion.patch
|
|
|
|
Patch202: virtconv-python2-to-python3-conversion.patch
|
|
|
|
Patch203: virtinst-python2-to-python3-conversion.patch
|
|
|
|
Patch204: virtman-python2-to-python3-conversion.patch
|
|
|
|
Patch205: virttests-python2-to-python3-conversion.patch
|
2017-12-07 18:12:07 +01:00
|
|
|
Patch206: 0001-virtinst-python3-terminal-width-should-be-int.patch
|
|
|
|
Patch207: 0002-virtinst-python3-avoid-comparison-of-None-and-int.patch
|
|
|
|
Patch208: 0003-virtinst-python3-avoid-using-long-type.patch
|
|
|
|
Patch209: 0004-virtinst-python3-use-binary-mode-for-kernel.patch
|
|
|
|
|
2013-11-26 22:23:05 +01:00
|
|
|
BuildArch: noarch
|
2010-03-19 18:23:36 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-11-26 22:23:05 +01:00
|
|
|
|
|
|
|
%define verrel %{version}-%{release}
|
2014-04-04 03:55:04 +02:00
|
|
|
Requires: dbus-1-x11
|
|
|
|
Requires: dconf
|
2013-11-26 22:23:05 +01:00
|
|
|
Requires: gtk3
|
2017-12-04 13:59:19 +01:00
|
|
|
Requires: python3-gobject-Gdk
|
2013-11-26 22:23:05 +01:00
|
|
|
# For console widget
|
2017-12-04 13:59:19 +01:00
|
|
|
Requires: python3-gobject-cairo
|
|
|
|
Recommends: python3-SpiceClientGtk
|
2014-01-23 00:48:08 +01:00
|
|
|
Requires: virt-install
|
2015-09-08 23:00:39 +02:00
|
|
|
Requires: virt-manager-common = %{verrel}
|
2017-03-03 22:13:59 +01:00
|
|
|
%if 0%{?is_opensuse} == 1
|
2016-04-05 16:07:32 +02:00
|
|
|
# virtman-desktop.patch changes the icon to be yast-vm-management, which is provided by yast2-branding
|
|
|
|
Requires: yast2-branding-openSUSE
|
2017-03-03 22:13:59 +01:00
|
|
|
%endif
|
2007-04-02 02:05:33 +02:00
|
|
|
|
2013-11-26 22:23:05 +01:00
|
|
|
%if %{with_guestfs}
|
2017-12-04 13:59:19 +01:00
|
|
|
Requires: python3-libguestfs
|
2013-11-26 22:23:05 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
BuildRequires: glib2-devel
|
2015-11-26 00:27:12 +01:00
|
|
|
BuildRequires: gtk2-tools
|
2013-11-26 22:23:05 +01:00
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: perl
|
2017-12-04 13:59:19 +01:00
|
|
|
BuildRequires: python3
|
2013-11-26 22:23:05 +01:00
|
|
|
|
2007-02-02 15:57:05 +01:00
|
|
|
%description
|
2012-02-03 21:08:14 +01:00
|
|
|
Virtual Machine Manager provides a graphical tool for administering virtual
|
|
|
|
machines for KVM, Xen, and QEmu. Start, stop, add or remove virtual devices,
|
|
|
|
connect to a graphical or serial console, and see resource usage statistics
|
|
|
|
for existing VMs on local or remote machines. Uses libvirt as the backend
|
|
|
|
management API.
|
2007-02-02 15:57:05 +01:00
|
|
|
|
|
|
|
|
2013-11-26 22:23:05 +01:00
|
|
|
%package common
|
|
|
|
Summary: Common files used by the different Virtual Machine Manager interfaces
|
|
|
|
Group: System/Monitoring
|
|
|
|
|
|
|
|
# This version not strictly required: virt-manager should work with older,
|
|
|
|
# however varying amounts of functionality will not be enabled.
|
2015-07-10 16:37:12 +02:00
|
|
|
Requires: libosinfo >= 0.2.10
|
2017-12-04 13:59:19 +01:00
|
|
|
Requires: python3-ipaddr
|
|
|
|
Requires: python3-libvirt-python >= 0.7.0
|
|
|
|
Requires: python3-libxml2-python
|
|
|
|
Requires: python3-pycurl
|
2015-09-16 18:04:33 +02:00
|
|
|
Requires: typelib(LibvirtGLib)
|
2017-10-11 22:11:09 +02:00
|
|
|
Recommends: python3-virt-bootstrap
|
2015-09-08 23:00:39 +02:00
|
|
|
BuildRequires: gobject-introspection
|
2016-01-27 19:36:28 +01:00
|
|
|
# No AppIndicator package on SLE
|
2017-09-14 19:56:47 +02:00
|
|
|
%if 0%{?is_opensuse} == 0
|
2016-02-01 20:00:29 +01:00
|
|
|
%define __requires_exclude typelib\\(AppIndicator3\\)
|
2015-09-08 23:00:39 +02:00
|
|
|
%endif
|
2013-11-26 22:23:05 +01:00
|
|
|
|
|
|
|
%description common
|
|
|
|
Common files used by the different virt-manager interfaces, as well as
|
|
|
|
virt-install related tools.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n virt-install
|
|
|
|
Summary: Utilities for installing virtual machines
|
|
|
|
Group: System/Monitoring
|
|
|
|
|
|
|
|
Requires: virt-manager-common = %{verrel}
|
|
|
|
|
2017-12-04 13:59:19 +01:00
|
|
|
Requires: python3-requests
|
|
|
|
Provides: python3-virtinst
|
2013-11-26 22:23:05 +01:00
|
|
|
Provides: virt-clone
|
2014-03-28 15:17:05 +01:00
|
|
|
Provides: virt-convert
|
2013-11-26 22:23:05 +01:00
|
|
|
Obsoletes: python-virtinst <= 0.600.4
|
- If connection is Xen, default to PV instead of HVM.
virtman-default-to-xen-pv.patch
- Update to virt-manager 1.0.0
* virt-manager: Snapshot support
* New tool virt-xml: Edit libvirt XML in one shot from the command line. Check out some examples: http://www.redhat.com/archives/libvir-list/2014-January/msg01226.html
* Improved defaults: qcow2, USB2, host CPU model, guest agent channel, …
* Introspect command line options like –disk=? or –network=help
* The virt-image tool will be removed before the next release, speak up if you have a good reason not to remove it.
* virt-manager: Support arm vexpress VM creation
* virt-manager: Add guest memory usage graphs (Thorsten Behrens)
* virt-manager: UI for editing devices (Cédric Bosdonnat)
* Spice USB redirection support (Guannan Ren)
* UI and command line support (Stefan Berger)
* UI and command line support (Giuseppe Scrivano)
* UI and command line support (Chen Hanxiao)
* command line support (Chen Hanxiao)
* virt-manager: support for glusterfs storage pools (Giuseppe Scrivano)
* cli: New options –memory, –features, –clock, –metadata, –pm
* Greatly improve app responsiveness when connecting to remote hosts
* Lots of UI cleanup and improvements
virt-manager-1.0.0.tar.bz2
- Dropped the following patches by taking a newer upstream tarball
virt-manager-0.10.0.tar.bz2
Add-memory-stats-widget-also-to-manager-tree-view.patch
Attempt-empty-path-on-virDomainBlockStats.patch
Base-mem-statistics-on-virDomainMemoryStats-if-avail.patch
virtinst-add-cache-modes.patch
virtinst-allow-ide-hdb.patch
virtinst-clone-disks.patch
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=143
2014-02-15 16:46:55 +01:00
|
|
|
Supplements: virt-manager
|
2013-11-26 22:23:05 +01:00
|
|
|
|
|
|
|
%description -n virt-install
|
|
|
|
Package includes several command line utilities, including virt-install
|
|
|
|
(build and install new VMs) and virt-clone (clone an existing virtual
|
|
|
|
machine).
|
2007-02-02 15:57:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2008-02-04 01:10:25 +01:00
|
|
|
%setup -q
|
2015-05-04 22:15:01 +02:00
|
|
|
# Upstream Patches
|
2017-10-11 22:11:09 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
2017-10-30 21:23:56 +01:00
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
|
|
|
%patch12 -p1
|
|
|
|
%patch13 -p1
|
|
|
|
%patch14 -p1
|
|
|
|
%patch15 -p1
|
|
|
|
%patch16 -p1
|
|
|
|
%patch17 -p1
|
|
|
|
%patch18 -p1
|
|
|
|
%patch19 -p1
|
|
|
|
%patch20 -p1
|
|
|
|
%patch21 -p1
|
|
|
|
%patch22 -p1
|
|
|
|
%patch23 -p1
|
|
|
|
%patch24 -p1
|
|
|
|
%patch25 -p1
|
|
|
|
%patch26 -p1
|
|
|
|
%patch27 -p1
|
|
|
|
%patch28 -p1
|
|
|
|
%patch29 -p1
|
|
|
|
%patch30 -p1
|
|
|
|
%patch31 -p1
|
2017-11-28 17:06:53 +01:00
|
|
|
%patch32 -p1
|
|
|
|
%patch33 -p1
|
|
|
|
%patch34 -p1
|
|
|
|
%patch35 -p1
|
2015-01-05 19:16:33 +01:00
|
|
|
# SUSE Only
|
2014-05-16 01:33:17 +02:00
|
|
|
%patch70 -p1
|
2014-05-22 17:22:21 +02:00
|
|
|
%patch71 -p1
|
|
|
|
%patch72 -p1
|
2014-07-01 21:11:34 +02:00
|
|
|
%patch73 -p1
|
|
|
|
%patch74 -p1
|
2014-07-18 01:22:14 +02:00
|
|
|
%patch75 -p1
|
2015-01-05 19:16:33 +01:00
|
|
|
%patch76 -p1
|
|
|
|
%patch77 -p1
|
|
|
|
# Enhancements
|
|
|
|
%patch101 -p1
|
|
|
|
%patch102 -p1
|
|
|
|
%patch103 -p1
|
|
|
|
%patch104 -p1
|
|
|
|
%patch105 -p1
|
|
|
|
%patch120 -p1
|
|
|
|
%patch121 -p1
|
2015-09-11 00:13:47 +02:00
|
|
|
%patch122 -p1
|
2015-01-05 19:16:33 +01:00
|
|
|
%patch123 -p1
|
|
|
|
%patch124 -p1
|
|
|
|
%patch125 -p1
|
|
|
|
%patch126 -p1
|
|
|
|
%patch127 -p1
|
|
|
|
%patch128 -p1
|
2015-09-11 00:13:47 +02:00
|
|
|
%patch129 -p1
|
2015-01-05 19:16:33 +01:00
|
|
|
# Bug Fixes
|
2015-12-02 08:14:40 +01:00
|
|
|
%patch150 -p1
|
2013-11-26 22:23:05 +01:00
|
|
|
%patch151 -p1
|
|
|
|
%patch152 -p1
|
|
|
|
%patch153 -p1
|
|
|
|
%patch154 -p1
|
2016-06-22 00:34:03 +02:00
|
|
|
%patch155 -p1
|
2014-04-04 03:55:04 +02:00
|
|
|
%patch160 -p1
|
2014-04-22 22:09:58 +02:00
|
|
|
%patch161 -p1
|
2015-01-23 15:19:51 +01:00
|
|
|
%patch162 -p1
|
2015-06-15 18:39:51 +02:00
|
|
|
%patch163 -p1
|
2016-08-23 18:40:23 +02:00
|
|
|
%patch164 -p1
|
2017-06-07 19:33:45 +02:00
|
|
|
%patch165 -p1
|
2017-08-09 21:02:00 +02:00
|
|
|
%patch166 -p1
|
|
|
|
%patch167 -p1
|
2017-08-25 00:03:36 +02:00
|
|
|
%patch168 -p1
|
2017-08-25 23:12:42 +02:00
|
|
|
%patch169 -p1
|
2017-12-04 13:59:19 +01:00
|
|
|
# Python2 to Python3 patches
|
|
|
|
%patch200 -p1
|
|
|
|
%patch201 -p1
|
|
|
|
%patch202 -p1
|
|
|
|
%patch203 -p1
|
|
|
|
%patch204 -p1
|
|
|
|
%patch205 -p1
|
2017-12-07 18:12:07 +01:00
|
|
|
%patch206 -p1
|
|
|
|
%patch207 -p1
|
|
|
|
%patch208 -p1
|
|
|
|
%patch209 -p1
|
2007-02-02 15:57:05 +01:00
|
|
|
|
|
|
|
%build
|
2013-11-26 22:23:05 +01:00
|
|
|
%if %{qemu_user}
|
|
|
|
%define _qemu_user --qemu-user=%{qemu_user}
|
|
|
|
%endif
|
2007-02-02 15:57:05 +01:00
|
|
|
|
2013-11-26 22:23:05 +01:00
|
|
|
%if %{kvm_packages}
|
|
|
|
%define _kvm_packages --kvm-package-names=%{kvm_packages}
|
|
|
|
%endif
|
2007-04-02 02:05:33 +02:00
|
|
|
|
2013-11-26 22:23:05 +01:00
|
|
|
%if %{preferred_distros}
|
|
|
|
%define _preferred_distros --preferred-distros=%{preferred_distros}
|
2012-06-25 20:17:34 +02:00
|
|
|
%endif
|
|
|
|
|
2014-03-14 00:44:08 +01:00
|
|
|
%if %{libvirt_kvm_packages}
|
|
|
|
%define _libvirt_kvm_packages --libvirt-kvm-package-names=%{libvirt_kvm_packages}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{libvirt_xen_packages}
|
|
|
|
%define _libvirt_xen_packages --libvirt-xen-package-names=%{libvirt_xen_packages}
|
2012-06-25 20:17:34 +02:00
|
|
|
%endif
|
2010-04-26 23:49:49 +02:00
|
|
|
|
2013-11-26 22:23:05 +01:00
|
|
|
%if %{askpass_package}
|
|
|
|
%define _askpass_package --askpass-package-names=%{askpass_package}
|
|
|
|
%endif
|
|
|
|
|
2017-12-04 13:59:19 +01:00
|
|
|
python3 setup.py configure \
|
2014-01-07 23:00:10 +01:00
|
|
|
--prefix=%{_prefix} \
|
2013-11-26 22:23:05 +01:00
|
|
|
--default-graphics="spice" \
|
|
|
|
%{?_qemu_user} \
|
|
|
|
%{?_kvm_packages} \
|
2014-03-14 00:44:08 +01:00
|
|
|
%{?_libvirt_kvm_packages} \
|
|
|
|
%{?_libvirt_xen_packages} \
|
2013-11-26 22:23:05 +01:00
|
|
|
%{?_askpass_package} \
|
|
|
|
%{?_preferred_distros} \
|
|
|
|
%{?_default_graphics}
|
|
|
|
|
|
|
|
%install
|
2017-12-04 13:59:19 +01:00
|
|
|
python3 setup.py \
|
2016-01-06 18:10:26 +01:00
|
|
|
--no-update-icon-cache \
|
|
|
|
--no-compile-schemas install \
|
2014-01-07 23:00:10 +01:00
|
|
|
--prefix=%{_prefix} \
|
|
|
|
-O1 --root=$RPM_BUILD_ROOT
|
2013-11-26 22:23:05 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/YaST2/clients/
|
2014-01-07 23:00:10 +01:00
|
|
|
install -m644 %SOURCE1 $RPM_BUILD_ROOT/%{_datadir}/YaST2/clients/virt-install.rb
|
2013-11-26 22:23:05 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications/YaST2/
|
|
|
|
install -m644 %SOURCE2 $RPM_BUILD_ROOT/%{_datadir}/applications/YaST2/virt-install.desktop
|
2017-08-09 21:02:00 +02:00
|
|
|
# Oddly, supportconfig doesn't execute plugins with '-' in the name, so use 'virt_manager'
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/lib/supportconfig/plugins
|
|
|
|
install -m 755 %SOURCE3 $RPM_BUILD_ROOT/usr/lib/supportconfig/plugins/virt_manager
|
2009-08-01 11:46:10 +02:00
|
|
|
|
2013-11-26 22:23:05 +01:00
|
|
|
%find_lang %{name}
|
2007-04-02 02:05:33 +02:00
|
|
|
|
2013-11-26 22:23:05 +01:00
|
|
|
%post
|
2014-11-10 17:01:19 +01:00
|
|
|
/bin/touch --no-create %{_datadir}/icons/hicolor >/dev/null 2>&1 || :
|
|
|
|
/usr/bin/update-desktop-database > /dev/null 2>&1 || :
|
2013-11-26 22:23:05 +01:00
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ $1 -eq 0 ] ; then
|
2014-11-10 17:01:19 +01:00
|
|
|
/bin/touch --no-create %{_datadir}/icons/hicolor >/dev/null 2>&1
|
|
|
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor >/dev/null 2>&1 || :
|
|
|
|
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas > /dev/null 2>&1 || :
|
2013-11-26 22:23:05 +01:00
|
|
|
fi
|
2014-11-10 17:01:19 +01:00
|
|
|
/usr/bin/update-desktop-database > /dev/null 2>&1 || :
|
2013-11-26 22:23:05 +01:00
|
|
|
|
|
|
|
%posttrans
|
2014-11-10 17:01:19 +01:00
|
|
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor >/dev/null 2>&1 || :
|
|
|
|
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas > /dev/null 2>&1 || :
|
2013-11-26 22:23:05 +01:00
|
|
|
|
|
|
|
%files
|
2007-02-02 15:57:05 +01:00
|
|
|
%defattr(-,root,root,-)
|
2008-02-04 01:10:25 +01:00
|
|
|
%{_bindir}/%{name}
|
2013-11-26 22:23:05 +01:00
|
|
|
|
|
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
|
|
|
|
%dir /usr/share/virt-manager/ui
|
|
|
|
%{_datadir}/%{name}/ui/*.ui
|
|
|
|
%{_datadir}/%{name}/virt-manager
|
|
|
|
%{_datadir}/%{name}/virtManager
|
|
|
|
|
|
|
|
%dir /usr/share/icons/hicolor
|
|
|
|
%dir /usr/share/icons/hicolor/*/
|
|
|
|
%dir /usr/share/icons/hicolor/*/apps
|
|
|
|
%{_datadir}/%{name}/icons
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*
|
|
|
|
|
- If connection is Xen, default to PV instead of HVM.
virtman-default-to-xen-pv.patch
- Update to virt-manager 1.0.0
* virt-manager: Snapshot support
* New tool virt-xml: Edit libvirt XML in one shot from the command line. Check out some examples: http://www.redhat.com/archives/libvir-list/2014-January/msg01226.html
* Improved defaults: qcow2, USB2, host CPU model, guest agent channel, …
* Introspect command line options like –disk=? or –network=help
* The virt-image tool will be removed before the next release, speak up if you have a good reason not to remove it.
* virt-manager: Support arm vexpress VM creation
* virt-manager: Add guest memory usage graphs (Thorsten Behrens)
* virt-manager: UI for editing devices (Cédric Bosdonnat)
* Spice USB redirection support (Guannan Ren)
* UI and command line support (Stefan Berger)
* UI and command line support (Giuseppe Scrivano)
* UI and command line support (Chen Hanxiao)
* command line support (Chen Hanxiao)
* virt-manager: support for glusterfs storage pools (Giuseppe Scrivano)
* cli: New options –memory, –features, –clock, –metadata, –pm
* Greatly improve app responsiveness when connecting to remote hosts
* Lots of UI cleanup and improvements
virt-manager-1.0.0.tar.bz2
- Dropped the following patches by taking a newer upstream tarball
virt-manager-0.10.0.tar.bz2
Add-memory-stats-widget-also-to-manager-tree-view.patch
Attempt-empty-path-on-virDomainBlockStats.patch
Base-mem-statistics-on-virDomainMemoryStats-if-avail.patch
virtinst-add-cache-modes.patch
virtinst-allow-ide-hdb.patch
virtinst-clone-disks.patch
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=143
2014-02-15 16:46:55 +01:00
|
|
|
%{_datadir}/appdata/%{name}.appdata.xml
|
2013-11-26 22:23:05 +01:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2016-03-18 22:27:01 +01:00
|
|
|
%{_datadir}/applications/YaST2/virt-install.desktop
|
2013-11-26 22:23:05 +01:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.virt-manager.virt-manager.gschema.xml
|
2015-05-04 22:15:01 +02:00
|
|
|
%{_datadir}/GConf/gsettings/org.virt-manager.virt-manager.convert
|
2017-08-09 21:02:00 +02:00
|
|
|
%dir /usr/lib/supportconfig
|
|
|
|
%dir /usr/lib/supportconfig/plugins
|
|
|
|
/usr/lib/supportconfig/plugins/virt_manager
|
2013-11-26 22:23:05 +01:00
|
|
|
|
|
|
|
%files common -f %{name}.lang
|
|
|
|
%defattr(-,root,root,-)
|
2008-02-04 01:10:25 +01:00
|
|
|
%dir %{_datadir}/%{name}
|
2013-11-26 22:23:05 +01:00
|
|
|
|
|
|
|
%{_datadir}/%{name}/virtcli
|
|
|
|
%{_datadir}/%{name}/virtconv
|
|
|
|
%{_datadir}/%{name}/virtinst
|
|
|
|
|
|
|
|
%files -n virt-install
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_mandir}/man1/virt-install.1*
|
|
|
|
%{_mandir}/man1/virt-clone.1*
|
|
|
|
%{_mandir}/man1/virt-convert.1*
|
- If connection is Xen, default to PV instead of HVM.
virtman-default-to-xen-pv.patch
- Update to virt-manager 1.0.0
* virt-manager: Snapshot support
* New tool virt-xml: Edit libvirt XML in one shot from the command line. Check out some examples: http://www.redhat.com/archives/libvir-list/2014-January/msg01226.html
* Improved defaults: qcow2, USB2, host CPU model, guest agent channel, …
* Introspect command line options like –disk=? or –network=help
* The virt-image tool will be removed before the next release, speak up if you have a good reason not to remove it.
* virt-manager: Support arm vexpress VM creation
* virt-manager: Add guest memory usage graphs (Thorsten Behrens)
* virt-manager: UI for editing devices (Cédric Bosdonnat)
* Spice USB redirection support (Guannan Ren)
* UI and command line support (Stefan Berger)
* UI and command line support (Giuseppe Scrivano)
* UI and command line support (Chen Hanxiao)
* command line support (Chen Hanxiao)
* virt-manager: support for glusterfs storage pools (Giuseppe Scrivano)
* cli: New options –memory, –features, –clock, –metadata, –pm
* Greatly improve app responsiveness when connecting to remote hosts
* Lots of UI cleanup and improvements
virt-manager-1.0.0.tar.bz2
- Dropped the following patches by taking a newer upstream tarball
virt-manager-0.10.0.tar.bz2
Add-memory-stats-widget-also-to-manager-tree-view.patch
Attempt-empty-path-on-virDomainBlockStats.patch
Base-mem-statistics-on-virDomainMemoryStats-if-avail.patch
virtinst-add-cache-modes.patch
virtinst-allow-ide-hdb.patch
virtinst-clone-disks.patch
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=143
2014-02-15 16:46:55 +01:00
|
|
|
%{_mandir}/man1/virt-xml.1*
|
2013-11-26 22:23:05 +01:00
|
|
|
|
|
|
|
%{_datadir}/%{name}/virt-install
|
|
|
|
%{_datadir}/%{name}/virt-clone
|
|
|
|
%{_datadir}/%{name}/virt-convert
|
- If connection is Xen, default to PV instead of HVM.
virtman-default-to-xen-pv.patch
- Update to virt-manager 1.0.0
* virt-manager: Snapshot support
* New tool virt-xml: Edit libvirt XML in one shot from the command line. Check out some examples: http://www.redhat.com/archives/libvir-list/2014-January/msg01226.html
* Improved defaults: qcow2, USB2, host CPU model, guest agent channel, …
* Introspect command line options like –disk=? or –network=help
* The virt-image tool will be removed before the next release, speak up if you have a good reason not to remove it.
* virt-manager: Support arm vexpress VM creation
* virt-manager: Add guest memory usage graphs (Thorsten Behrens)
* virt-manager: UI for editing devices (Cédric Bosdonnat)
* Spice USB redirection support (Guannan Ren)
* UI and command line support (Stefan Berger)
* UI and command line support (Giuseppe Scrivano)
* UI and command line support (Chen Hanxiao)
* command line support (Chen Hanxiao)
* virt-manager: support for glusterfs storage pools (Giuseppe Scrivano)
* cli: New options –memory, –features, –clock, –metadata, –pm
* Greatly improve app responsiveness when connecting to remote hosts
* Lots of UI cleanup and improvements
virt-manager-1.0.0.tar.bz2
- Dropped the following patches by taking a newer upstream tarball
virt-manager-0.10.0.tar.bz2
Add-memory-stats-widget-also-to-manager-tree-view.patch
Attempt-empty-path-on-virDomainBlockStats.patch
Base-mem-statistics-on-virDomainMemoryStats-if-avail.patch
virtinst-add-cache-modes.patch
virtinst-allow-ide-hdb.patch
virtinst-clone-disks.patch
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=143
2014-02-15 16:46:55 +01:00
|
|
|
%{_datadir}/%{name}/virt-xml
|
2015-05-04 22:15:01 +02:00
|
|
|
%dir %{_datadir}/YaST2
|
|
|
|
%dir %{_datadir}/YaST2/clients
|
|
|
|
%dir %{_datadir}/applications/YaST2
|
|
|
|
%dir %{_datadir}/GConf
|
|
|
|
%dir %{_datadir}/GConf/gsettings
|
2015-05-04 22:32:12 +02:00
|
|
|
%dir %{_datadir}/appdata
|
2014-01-07 23:00:10 +01:00
|
|
|
%{_datadir}/YaST2/clients/virt-install.rb
|
2013-11-26 22:23:05 +01:00
|
|
|
|
|
|
|
%{_bindir}/virt-install
|
|
|
|
%{_bindir}/virt-clone
|
|
|
|
%{_bindir}/virt-convert
|
- If connection is Xen, default to PV instead of HVM.
virtman-default-to-xen-pv.patch
- Update to virt-manager 1.0.0
* virt-manager: Snapshot support
* New tool virt-xml: Edit libvirt XML in one shot from the command line. Check out some examples: http://www.redhat.com/archives/libvir-list/2014-January/msg01226.html
* Improved defaults: qcow2, USB2, host CPU model, guest agent channel, …
* Introspect command line options like –disk=? or –network=help
* The virt-image tool will be removed before the next release, speak up if you have a good reason not to remove it.
* virt-manager: Support arm vexpress VM creation
* virt-manager: Add guest memory usage graphs (Thorsten Behrens)
* virt-manager: UI for editing devices (Cédric Bosdonnat)
* Spice USB redirection support (Guannan Ren)
* UI and command line support (Stefan Berger)
* UI and command line support (Giuseppe Scrivano)
* UI and command line support (Chen Hanxiao)
* command line support (Chen Hanxiao)
* virt-manager: support for glusterfs storage pools (Giuseppe Scrivano)
* cli: New options –memory, –features, –clock, –metadata, –pm
* Greatly improve app responsiveness when connecting to remote hosts
* Lots of UI cleanup and improvements
virt-manager-1.0.0.tar.bz2
- Dropped the following patches by taking a newer upstream tarball
virt-manager-0.10.0.tar.bz2
Add-memory-stats-widget-also-to-manager-tree-view.patch
Attempt-empty-path-on-virDomainBlockStats.patch
Base-mem-statistics-on-virDomainMemoryStats-if-avail.patch
virtinst-add-cache-modes.patch
virtinst-allow-ide-hdb.patch
virtinst-clone-disks.patch
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=143
2014-02-15 16:46:55 +01:00
|
|
|
%{_bindir}/virt-xml
|
2007-02-02 15:57:05 +01:00
|
|
|
|
2007-02-19 23:39:46 +01:00
|
|
|
%changelog
|