virt-manager/virt-manager.spec

314 lines
9.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package virt-manager
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define with_guestfs 0
%define askpass_package "openssh-askpass"
%define qemu_user "qemu"
%define libvirt_kvm_packages "libvirt-daemon-qemu"
%define libvirt_xen_packages "libvirt-daemon-xen"
%define preferred_distros "sles,opensuse"
%define kvm_packages "qemu-x86"
%define _version 1.0.1
%define _release 1
Name: virt-manager
Version: %{_version}
Release: 0
Summary: Virtual Machine Manager
License: GPL-2.0+
Group: System/Monitoring
Url: http://virt-manager.org/
Source0: %{name}-%{version}.tar.bz2
Source1: virt-install.rb
Source2: virt-install.desktop
Patch1: 5332ee4d-enable-media-detection-for-ISO-images.patch
Patch2: 53341e7e-hide-hardware-removal-for-non-devices.patch
Patch3: 53342f31-set-right-ip-address-for-ipv6.patch
Patch50: virtman-desktop.patch
Patch51: virtman-cdrom.patch
Patch52: virtman-kvm.patch
Patch53: virtman-keycombo.patch
Patch60: virtman-device-flags.patch
Patch61: virtman-autorestart.patch
Patch62: virtman-eepro100.patch
Patch63: virtman-qed.patch
Patch64: virtman-update-backend.patch
Patch65: virtman-slow-mouse.patch
Patch66: virtman-reverse-serialcon.patch
Patch67: virtman-default-guest-from-host-os.patch
- 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
Patch68: virtman-default-to-xen-pv.patch
Patch69: virtman-autoyast-support.patch
Patch70: virtman-vminstall.patch
Patch71: virtman-show-suse-install-repos.patch
Patch72: virtman-packages.patch
Patch73: virtman-load-stored-uris.patch
Patch74: virtman-libvirtd-not-running.patch
Patch75: virtman-stable-os-support.patch
Patch76: virtman-init-vm-processor-topology.patch
Patch150: virtinst-cdrom.patch
Patch151: virtinst-storage-ocfs2.patch
Patch152: virtinst-qed.patch
- 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
Patch153: virtinst-support-suse-distros.patch
Patch154: virtinst-detect-suse-distros.patch
Patch155: virtinst-xen-drive-type.patch
Patch156: virtinst-modify-gui-defaults.patch
Patch157: virtinst-pvgrub2-bootloader.patch
Patch158: virtinst-set-qemu-emulator.patch
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define verrel %{version}-%{release}
Requires: virt-manager-common = %{verrel}
Requires: avahi
Requires: gtk3
Requires: python-gconf
Requires: dconf
Requires: dbus-1-x11
Requires: vm-install >= 0.5.6
# Libvirt-glib
Requires: libvirt-glib-1_0-0 >= 0.0.9
Requires: typelib-1_0-LibvirtGLib-1_0
# Virtual Terminal Emulator (vte)
Requires: libvte2_90-9
Requires: typelib-1_0-Vte-2_90
# For console widget
Requires: gtk-vnc2
Requires: libspice-client-glib-2_0-8
Requires: libspice-client-gtk-3_0-4
Requires: typelib-1_0-SpiceClientGlib-2_0
Requires: typelib-1_0-SpiceClientGtk-3_0
Requires: typelib-1_0-Gtk-3_0
Requires: typelib-1_0-GVnc-1_0
Requires: typelib-1_0-GtkVnc-2_0
Requires: python-gobject-cairo
Recommends: python-SpiceClientGtk
Requires: virt-install
%if %{with_guestfs}
Requires: python-libguestfs
%endif
BuildRequires: glib2-devel
BuildRequires: intltool
BuildRequires: perl
BuildRequires: python
%description
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.
%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.
Requires: libvirt-python >= 0.7.0
Requires: python-urlgrabber
Requires: python-ipaddr
Requires: python-libxml2
%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}
Provides: virt-clone
Provides: virt-image
Provides: virt-convert
Provides: python-virtinst
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
%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).
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch50 -p1
%patch51 -p1
%patch52 -p1
%patch53 -p1
%patch60 -p1
%patch61 -p1
%patch62 -p1
%patch63 -p1
%patch64 -p1
%patch65 -p1
%patch66 -p1
%patch67 -p1
%patch68 -p1
%patch69 -p1
%patch70 -p1
%patch71 -p1
%patch72 -p1
%patch73 -p1
%patch74 -p1
%patch75 -p1
%patch76 -p1
- 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
#%patch150 -p1 use 'c' for cdrom
%patch151 -p1
%patch152 -p1
%patch153 -p1
%patch154 -p1
%patch155 -p1
%patch156 -p1
%patch157 -p1
%patch158 -p1
%build
%if %{qemu_user}
%define _qemu_user --qemu-user=%{qemu_user}
%endif
%if %{kvm_packages}
%define _kvm_packages --kvm-package-names=%{kvm_packages}
%endif
%if %{preferred_distros}
%define _preferred_distros --preferred-distros=%{preferred_distros}
%endif
%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}
%endif
%if %{askpass_package}
%define _askpass_package --askpass-package-names=%{askpass_package}
%endif
python setup.py configure \
--prefix=%{_prefix} \
--pkgversion="%{version}" \
--default-graphics="spice" \
%{?_qemu_user} \
%{?_kvm_packages} \
%{?_libvirt_kvm_packages} \
%{?_libvirt_xen_packages} \
%{?_askpass_package} \
%{?_preferred_distros} \
%{?_default_graphics}
%install
python setup.py install \
--prefix=%{_prefix} \
-O1 --root=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/YaST2/clients/
install -m644 %SOURCE1 $RPM_BUILD_ROOT/%{_datadir}/YaST2/clients/virt-install.rb
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications/YaST2/
install -m644 %SOURCE2 $RPM_BUILD_ROOT/%{_datadir}/applications/YaST2/virt-install.desktop
%find_lang %{name}
%post
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
/usr/bin/update-desktop-database &> /dev/null || :
%postun
if [ $1 -eq 0 ] ; then
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
fi
/usr/bin/update-desktop-database &> /dev/null || :
%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%files
%defattr(-,root,root,-)
%doc README COPYING NEWS
%{_bindir}/%{name}
%{_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
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.virt-manager.virt-manager.gschema.xml
%files common -f %{name}.lang
%defattr(-,root,root,-)
%dir %{_datadir}/%{name}
%{_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*
%{_mandir}/man1/virt-image.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*
%{_mandir}/man5/virt-image.5*
%{_datadir}/%{name}/virt-install
%{_datadir}/%{name}/virt-clone
%{_datadir}/%{name}/virt-image
%{_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
%dir %{_datadir}/*
%dir %{_datadir}/*/*
%{_datadir}/YaST2/clients/virt-install.rb
%{_datadir}/applications/YaST2/virt-install.desktop
%{_bindir}/virt-install
%{_bindir}/virt-clone
%{_bindir}/virt-image
%{_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
%changelog