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
|
|
|
#
|
2013-01-14 18:54:49 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
2013-11-26 22:23:05 +01:00
|
|
|
%define with_guestfs 0
|
|
|
|
%define askpass_package "openssh-askpass"
|
|
|
|
%define qemu_user "qemu"
|
|
|
|
%define libvirt_packages "libvirt-daemon-qemu,libvirt-daemon-driver-network"
|
|
|
|
%define preferred_distros "opensuse,sles"
|
|
|
|
%define kvm_packages "qemu"
|
|
|
|
%define _version 0.10.0
|
|
|
|
%define _release 1
|
2010-05-14 01:01:26 +02:00
|
|
|
|
2010-03-19 18:23:36 +01:00
|
|
|
Name: virt-manager
|
2013-11-26 22:23:05 +01:00
|
|
|
Version: %{_version}
|
|
|
|
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
|
2013-11-26 22:23:05 +01:00
|
|
|
Source1: virt-install.ycp
|
|
|
|
Source2: virt-install.desktop
|
2013-05-31 23:10:54 +02:00
|
|
|
Patch50: virtman-desktop.patch
|
2013-07-03 23:44:06 +02:00
|
|
|
Patch51: virtman-cdrom.patch
|
|
|
|
Patch52: virtman-kvm.patch
|
|
|
|
Patch53: virtman-keycombo.patch
|
|
|
|
Patch54: virtman-autoconnect.patch
|
2013-05-31 23:10:54 +02:00
|
|
|
Patch60: virtman-device-flags.patch
|
|
|
|
Patch61: virtman-autorestart.patch
|
2013-07-03 23:44:06 +02:00
|
|
|
Patch62: virtman-eepro100.patch
|
|
|
|
Patch63: virtman-qed.patch
|
|
|
|
Patch64: virtman-update-backend.patch
|
|
|
|
Patch65: virtman-slow-mouse.patch
|
2013-11-26 22:23:05 +01:00
|
|
|
Patch66: virtman-reverse-serialcon.patch
|
|
|
|
Patch67: virtman-default-guest-from-host-os.patch
|
|
|
|
Patch68: virtman-allow-pv-iso-install.patch
|
|
|
|
Patch69: virtman-autoyast-support.patch
|
|
|
|
Patch70: virtman-vminstall.patch
|
|
|
|
Patch150: virtinst-cdrom.patch
|
|
|
|
Patch151: virtinst-storage-ocfs2.patch
|
|
|
|
Patch152: virtinst-qed.patch
|
|
|
|
Patch153: virtinst-add-cache-modes.patch
|
|
|
|
Patch154: virtinst-none-arch-fix.patch
|
|
|
|
Patch155: virtinst-allow-pv-iso-install.patch
|
|
|
|
Patch156: virtinst-support-suse-distros.patch
|
|
|
|
Patch157: virtinst-detect-suse-distros.patch
|
|
|
|
Patch158: virtinst-allow-ide-hdb.patch
|
|
|
|
Patch159: virtinst-xen-drive-type.patch
|
|
|
|
Patch160: virtinst-clone-disks.patch
|
|
|
|
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}
|
|
|
|
Requires: virt-manager-common = %{verrel}
|
|
|
|
Requires: gtk3
|
2012-04-28 11:55:40 +02:00
|
|
|
Requires: python-gconf
|
2013-11-26 22:23:05 +01:00
|
|
|
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
|
2012-04-28 11:55:40 +02:00
|
|
|
Recommends: python-SpiceClientGtk
|
2007-04-02 02:05:33 +02:00
|
|
|
|
2013-11-26 22:23:05 +01:00
|
|
|
%if %{with_guestfs}
|
|
|
|
Requires: python-libguestfs
|
|
|
|
%endif
|
|
|
|
|
|
|
|
BuildRequires: glib2-devel
|
|
|
|
BuildRequires: intltool
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: python
|
|
|
|
|
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.
|
|
|
|
Requires: libvirt-python >= 0.7.0
|
|
|
|
Requires: python-urlgrabber
|
|
|
|
Requires: python-ipaddr
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
%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
|
2010-02-16 17:11:41 +01:00
|
|
|
%patch50 -p1
|
2009-09-27 00:17:48 +02:00
|
|
|
%patch51 -p1
|
2011-03-21 20:38:43 +01:00
|
|
|
%patch52 -p1
|
2010-06-25 18:07:11 +02:00
|
|
|
%patch53 -p1
|
2012-02-03 21:08:14 +01:00
|
|
|
%patch54 -p1
|
2010-02-16 17:11:41 +01:00
|
|
|
%patch60 -p1
|
2010-08-02 23:45:48 +02:00
|
|
|
%patch61 -p1
|
2013-07-03 23:44:06 +02:00
|
|
|
%patch62 -p1
|
2011-08-05 22:38:31 +02:00
|
|
|
%patch63 -p1
|
|
|
|
%patch64 -p1
|
2011-11-08 14:40:25 +01:00
|
|
|
%patch65 -p1
|
2012-02-03 21:08:14 +01:00
|
|
|
%patch66 -p1
|
2012-08-09 23:26:39 +02:00
|
|
|
%patch67 -p1
|
2012-09-21 16:55:06 +02:00
|
|
|
%patch68 -p1
|
2013-07-03 23:44:06 +02:00
|
|
|
%patch69 -p1
|
2013-11-26 22:23:05 +01:00
|
|
|
#%patch70 -p1
|
|
|
|
%patch150 -p1
|
|
|
|
%patch151 -p1
|
|
|
|
%patch152 -p1
|
|
|
|
%patch153 -p1
|
|
|
|
%patch154 -p1
|
|
|
|
%patch155 -p1
|
|
|
|
%patch156 -p1
|
|
|
|
%patch157 -p1
|
|
|
|
%patch158 -p1
|
|
|
|
%patch159 -p1
|
|
|
|
%patch160 -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
|
|
|
|
|
2013-11-26 22:23:05 +01:00
|
|
|
%if %{libvirt_packages}
|
|
|
|
%define _libvirt_packages --libvirt-package-names=%{libvirt_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
|
|
|
|
|
|
|
|
python setup.py configure \
|
|
|
|
--pkgversion="%{version}" \
|
|
|
|
--default-graphics="spice" \
|
|
|
|
%{?_qemu_user} \
|
|
|
|
%{?_kvm_packages} \
|
|
|
|
%{?_libvirt_packages} \
|
|
|
|
%{?_askpass_package} \
|
|
|
|
%{?_preferred_distros} \
|
|
|
|
%{?_default_graphics}
|
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install -O1 --root=$RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/YaST2/clients/
|
|
|
|
install -m644 %SOURCE1 $RPM_BUILD_ROOT/%{_datadir}/YaST2/clients/virt-install.ycp
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications/YaST2/
|
|
|
|
install -m644 %SOURCE2 $RPM_BUILD_ROOT/%{_datadir}/applications/YaST2/virt-install.desktop
|
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
|
|
|
|
/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
|
2007-02-02 15:57:05 +01:00
|
|
|
%defattr(-,root,root,-)
|
2013-11-26 22:23:05 +01:00
|
|
|
%doc README COPYING NEWS
|
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/*
|
|
|
|
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/glib-2.0/schemas/org.virt-manager.virt-manager.gschema.xml
|
|
|
|
|
|
|
|
%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*
|
|
|
|
%{_mandir}/man1/virt-image.1*
|
|
|
|
%{_mandir}/man5/virt-image.5*
|
|
|
|
|
|
|
|
%{_datadir}/%{name}/virt-install
|
|
|
|
%{_datadir}/%{name}/virt-clone
|
|
|
|
%{_datadir}/%{name}/virt-image
|
|
|
|
%{_datadir}/%{name}/virt-convert
|
|
|
|
%dir %{_datadir}/*
|
|
|
|
%dir %{_datadir}/*/*
|
|
|
|
%{_datadir}/YaST2/clients/virt-install.ycp
|
|
|
|
%{_datadir}/applications/YaST2/virt-install.desktop
|
|
|
|
|
|
|
|
%{_bindir}/virt-install
|
|
|
|
%{_bindir}/virt-clone
|
|
|
|
%{_bindir}/virt-image
|
|
|
|
%{_bindir}/virt-convert
|
2007-02-02 15:57:05 +01:00
|
|
|
|
2007-02-19 23:39:46 +01:00
|
|
|
%changelog
|