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
|
|
|
#
|
2012-01-05 20:39:49 +01:00
|
|
|
# Copyright (c) 2012 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/
|
|
|
|
#
|
|
|
|
|
2008-02-04 01:10:25 +01:00
|
|
|
%define _extra_release %{?dist:%{dist}}%{!?dist:%{?extra_release:%{extra_release}}}
|
2008-05-01 14:06:18 +02:00
|
|
|
%define gsysconfdir /etc
|
|
|
|
%define gconftool /usr/bin/gconftool-2
|
2010-02-26 19:34:04 +01:00
|
|
|
%define virtinst_maj 0
|
2011-09-20 17:08:57 +02:00
|
|
|
%define virtinst_min 600
|
|
|
|
%define virtinst_rel 0
|
2010-02-26 19:34:04 +01:00
|
|
|
%define virtinst_name virtinst-%{virtinst_maj}.%{virtinst_min}.%{virtinst_rel}
|
2010-03-19 18:23:36 +01:00
|
|
|
|
2010-05-14 01:01:26 +02:00
|
|
|
%define pysite %(python -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib()")
|
|
|
|
|
2010-03-19 18:23:36 +01:00
|
|
|
Name: virt-manager
|
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
|
|
|
|
Version: 0.9.0
|
|
|
|
Release: 0
|
2008-02-04 01:10:25 +01:00
|
|
|
Url: http://virt-manager.et.redhat.com
|
2009-06-12 20:41:44 +02:00
|
|
|
Source0: virt-manager-%{version}.tar.bz2
|
|
|
|
Source1: %{virtinst_name}.tar.bz2
|
2010-09-27 16:57:44 +02:00
|
|
|
# see https://bugzilla.redhat.com/show_bug.cgi?id=620216,
|
|
|
|
# https://bugzilla.novell.com/show_bug.cgi?id=641981
|
2012-01-05 20:39:49 +01:00
|
|
|
Patch0: virtman-git-reconnect.diff
|
|
|
|
Patch1: virtman-git-sata-support.diff
|
2010-02-16 17:11:41 +01:00
|
|
|
Patch50: virtman-desktop.diff
|
|
|
|
Patch51: virtman-vminstall.diff
|
2011-03-21 20:38:43 +01:00
|
|
|
Patch52: virtman-cdrom.diff
|
|
|
|
Patch53: virtman-kvm.diff
|
|
|
|
Patch54: virtman-help.diff
|
|
|
|
Patch55: virtman-keycombo.diff
|
|
|
|
Patch56: virtman-autoconnect.diff
|
2010-06-25 18:07:11 +02:00
|
|
|
Patch60: virtman-device-flags.diff
|
2010-08-02 23:45:48 +02:00
|
|
|
Patch61: virtman-autorestart.diff
|
2011-02-04 22:37:02 +01:00
|
|
|
Patch62: virtman-storage-pool.diff
|
2011-08-05 22:38:31 +02:00
|
|
|
Patch63: virtman-eepro100.diff
|
|
|
|
Patch64: virtman-qed.diff
|
2011-11-08 14:40:25 +01:00
|
|
|
Patch65: virtman-update-backend.diff
|
2011-12-15 14:52:04 +01:00
|
|
|
Patch66: virtman-reverse-git-tooltip.patch
|
2012-01-05 20:39:49 +01:00
|
|
|
Patch100: virtinst-git-sata-support.diff
|
2011-10-28 18:49:10 +02:00
|
|
|
Patch150: virtinst-cdrom.diff
|
|
|
|
Patch151: virtinst-storage-ocfs2.diff
|
|
|
|
Patch152: virtinst-qed.diff
|
2010-03-19 18:23:36 +01:00
|
|
|
ExclusiveArch: %{ix86} x86_64
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-04-03 00:21:37 +02:00
|
|
|
%gconf_schemas_prereq
|
2010-03-19 18:23:36 +01:00
|
|
|
#
|
|
|
|
#rpmlint BuildRequires: python
|
2012-01-05 20:39:49 +01:00
|
|
|
BuildRequires: gettext
|
2010-03-19 18:23:36 +01:00
|
|
|
BuildRequires: gtk2-devel
|
2012-01-05 20:39:49 +01:00
|
|
|
BuildRequires: intltool
|
2010-03-19 18:23:36 +01:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: scrollkeeper
|
|
|
|
#rpmlint BuildRequires: python-gtk
|
|
|
|
BuildRequires: python-gtk-devel
|
|
|
|
BuildRequires: python-gobject2-devel
|
|
|
|
BuildRequires: gconf2-devel
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
# virtinst BuildRequires
|
|
|
|
BuildRequires: libxml2-python
|
|
|
|
BuildRequires: python-urlgrabber
|
2010-04-26 23:49:49 +02:00
|
|
|
#BuildRequires: libvirt-python
|
2010-03-19 18:23:36 +01:00
|
|
|
#
|
2008-02-04 01:10:25 +01:00
|
|
|
# Requires: pygtk2 >= 1.99.12-6
|
2007-02-02 15:57:05 +01:00
|
|
|
Requires: python-gtk
|
2008-02-04 01:10:25 +01:00
|
|
|
# Requires: gnome-python2-gconf >= 1.99.11-7
|
2007-02-02 15:57:05 +01:00
|
|
|
Requires: python-gnome
|
2008-02-04 01:10:25 +01:00
|
|
|
# Absolutely require this version or newer
|
2012-01-05 23:01:07 +01:00
|
|
|
Requires: libvirt-python >= 0.7.0
|
2011-10-18 16:23:43 +02:00
|
|
|
Requires: vm-install >= 0.5.6
|
2008-02-04 01:10:25 +01:00
|
|
|
# Definitely does not work with earlier due to python API changes
|
|
|
|
# Requires: dbus-python >= 0.61
|
2007-02-02 15:57:05 +01:00
|
|
|
Requires: dbus-1-python
|
2009-05-04 18:36:17 +02:00
|
|
|
Requires: dbus-1-x11
|
2008-02-04 01:10:25 +01:00
|
|
|
#Requires: gnome-keyring >= 0.4.9
|
|
|
|
Requires: gnome-keyring
|
|
|
|
# Minimum we've tested with
|
|
|
|
# Although if you don't have this, comment it out and the app
|
|
|
|
# will work just fine - keyring functionality will simply be
|
|
|
|
# disabled
|
|
|
|
# Requires: gnome-python2-gnomekeyring >= 2.15.4
|
|
|
|
# Requires: gnome-python2-gnomevfs >= 2.15.4
|
|
|
|
Requires: libxml2-python >= 2.6.23
|
|
|
|
# Required to install Xen & QEMU guests
|
|
|
|
# Requires: python-virtinst >= 0.300.2
|
|
|
|
# Required for loading the glade UI
|
|
|
|
# Requires: pygtk2-libglade
|
|
|
|
# Required for our graphics which are currently SVG format
|
|
|
|
# Earlier vte had broken python binding module
|
|
|
|
# Requires: vte >= 0.12.2
|
2010-10-22 16:15:08 +02:00
|
|
|
%ifarch x86_64
|
2010-10-22 16:34:04 +02:00
|
|
|
Requires: vtemodule.so()(64bit)
|
2010-10-22 16:15:08 +02:00
|
|
|
%else
|
2010-10-22 16:34:04 +02:00
|
|
|
Requires: vtemodule.so
|
2010-10-22 16:15:08 +02:00
|
|
|
%endif
|
2008-02-04 01:10:25 +01:00
|
|
|
# For online help
|
|
|
|
Requires: scrollkeeper
|
|
|
|
# For console widget
|
|
|
|
# Requires: gtk-vnc-python
|
|
|
|
Requires: python-gtk-vnc
|
2009-05-04 18:36:17 +02:00
|
|
|
# Requires: librsvg added to avoid problems with minimal template
|
2008-11-07 15:52:18 +01:00
|
|
|
Requires: librsvg
|
2010-06-25 18:07:11 +02:00
|
|
|
Requires: netcat-openbsd
|
2008-11-18 13:52:08 +01:00
|
|
|
# Add requires for non Xen installations
|
|
|
|
Requires: python-urlgrabber
|
2009-05-04 18:36:17 +02:00
|
|
|
Requires: vm-install
|
2011-03-23 16:36:18 +01:00
|
|
|
#Requires: spice-gtk
|
2012-01-05 23:01:07 +01:00
|
|
|
Provides: python-virtinst
|
2007-04-02 02:05:33 +02:00
|
|
|
|
2007-02-02 15:57:05 +01:00
|
|
|
%description
|
2007-08-05 11:49:44 +02:00
|
|
|
Virtual Machine Manager provides a graphical tool for administering
|
|
|
|
virtual machines.
|
2007-02-02 15:57:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Daniel Berrange <berrange@redhat.com>
|
|
|
|
Hugh O. Brock <hbrock@redhat.com>
|
|
|
|
Jeremy Katz <katzj@redhat.com>
|
|
|
|
|
|
|
|
%prep
|
2008-02-04 01:10:25 +01:00
|
|
|
%setup -q
|
|
|
|
%setup -b 1
|
2012-01-05 20:39:49 +01:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
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
|
2011-03-21 20:38:43 +01:00
|
|
|
#%patch54 -p1
|
|
|
|
%patch55 -p1
|
|
|
|
%patch56 -p1
|
2010-02-16 17:11:41 +01:00
|
|
|
%patch60 -p1
|
2010-08-02 23:45:48 +02:00
|
|
|
%patch61 -p1
|
2011-03-21 20:38:43 +01: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
|
2011-12-15 14:52:04 +01:00
|
|
|
%patch66 -p1
|
2009-09-27 00:17:50 +02:00
|
|
|
pushd $RPM_BUILD_DIR/%{virtinst_name}
|
2012-01-05 20:39:49 +01:00
|
|
|
%patch100 -p1
|
2011-10-28 18:49:10 +02:00
|
|
|
%patch150 -p1
|
|
|
|
%patch151 -p1
|
|
|
|
%patch152 -p1
|
2008-04-12 21:33:47 +02:00
|
|
|
popd
|
2009-05-04 18:36:17 +02:00
|
|
|
# sed -i -e "s@sr\@Latn@sr\@latin@" configure
|
|
|
|
# mv po/sr@Latn.po po/sr@latin.po
|
2007-02-02 15:57:05 +01:00
|
|
|
|
|
|
|
%build
|
2008-02-04 01:10:25 +01:00
|
|
|
# autoreconf -i
|
|
|
|
%configure --sysconfdir=%{gsysconfdir}
|
|
|
|
make %{?_smp_mflags}
|
2008-05-01 14:06:18 +02:00
|
|
|
pushd $RPM_BUILD_DIR/%{virtinst_name}
|
2008-02-04 01:10:25 +01:00
|
|
|
python setup.py build
|
2008-05-01 14:06:18 +02:00
|
|
|
popd
|
2007-02-02 15:57:05 +01:00
|
|
|
|
|
|
|
%install
|
2008-02-04 01:10:25 +01:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2008-05-17 21:27:01 +02:00
|
|
|
pushd $RPM_BUILD_DIR/%{virtinst_name}
|
2010-05-14 01:01:26 +02:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --install-lib=%{pysite}/
|
2010-04-03 00:21:37 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT/var/scrollkeeper
|
2008-05-17 21:27:01 +02:00
|
|
|
popd
|
2008-02-04 01:10:25 +01:00
|
|
|
# Unsupport languages:
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/locale/or
|
2008-05-01 14:06:18 +02:00
|
|
|
%find_gconf_schemas
|
2010-03-23 22:38:51 +01:00
|
|
|
for lang_file in %{name} virtinst
|
|
|
|
do
|
|
|
|
%find_lang $lang_file single_lang_file.lang
|
|
|
|
done
|
|
|
|
cat %{name}.schemas_list single_lang_file.lang > %{name}.lst
|
2008-05-01 14:06:18 +02:00
|
|
|
sed -i '\^/usr/share/gnome/help/^d' %{name}.lst
|
2008-02-04 01:10:25 +01:00
|
|
|
%suse_update_desktop_file %{name} X-SuSE-YaST-Virtualization
|
|
|
|
sed -i -e 's/Categories=.*/Categories=Qt;X-SuSE-YaST;X-SuSE-YaST-Virtualization;/' $RPM_BUILD_ROOT/%{_datadir}/applications/YaST2/%{name}.desktop
|
2007-02-02 15:57:05 +01:00
|
|
|
|
|
|
|
%clean
|
2009-09-27 00:17:50 +02:00
|
|
|
# rm -rf $RPM_BUILD_ROOT
|
2008-02-04 01:10:25 +01:00
|
|
|
|
2008-05-01 14:06:18 +02:00
|
|
|
%pre -f %{name}.schemas_pre
|
2007-04-02 02:05:33 +02:00
|
|
|
|
2010-04-26 23:49:49 +02:00
|
|
|
%post
|
|
|
|
%run_suseconfig -m glib2
|
|
|
|
%run_suseconfig -m gtk2
|
|
|
|
|
2008-05-01 14:06:18 +02:00
|
|
|
%preun -f %{name}.schemas_preun
|
2009-08-01 11:46:10 +02:00
|
|
|
|
2008-05-01 14:06:18 +02:00
|
|
|
%posttrans -f %{name}.schemas_posttrans
|
2007-04-02 02:05:33 +02:00
|
|
|
|
2008-05-01 14:06:18 +02:00
|
|
|
%files -f %{name}.lst
|
2007-02-02 15:57:05 +01:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING AUTHORS ChangeLog
|
2008-02-04 01:10:25 +01:00
|
|
|
%{_bindir}/%{name}
|
2011-03-21 20:38:43 +01:00
|
|
|
%{_bindir}/%{name}-tui
|
2010-03-23 22:38:51 +01:00
|
|
|
%{_bindir}/virt-clone
|
|
|
|
%{_bindir}/virt-convert
|
|
|
|
%{_bindir}/virt-image
|
|
|
|
%{_bindir}/virt-install
|
2008-02-04 01:10:25 +01:00
|
|
|
%{_libexecdir}/%{name}-launch
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%{_datadir}/%{name}/*.glade
|
|
|
|
%dir %{_datadir}/%{name}/pixmaps
|
2011-09-20 17:08:57 +02:00
|
|
|
%dir %{_datadir}/%{name}/icons
|
|
|
|
%dir %{_datadir}/%{name}/icons/hicolor/
|
|
|
|
%dir %{_datadir}/%{name}/icons/hicolor/*/
|
|
|
|
%dir %{_datadir}/%{name}/icons/hicolor/*/*/
|
|
|
|
%dir %{_datadir}/icons/hicolor/
|
|
|
|
%dir %{_datadir}/icons/hicolor/*/
|
|
|
|
%dir %{_datadir}/icons/hicolor/*/*/
|
|
|
|
%{_datadir}/%{name}/icons/hicolor/*/*/*.png
|
|
|
|
%{_datadir}/icons/hicolor/*/*/*.png
|
2008-02-04 01:10:25 +01:00
|
|
|
%{_datadir}/%{name}/*.py
|
|
|
|
%dir %{_datadir}/%{name}/virtManager
|
2011-03-21 20:38:43 +01:00
|
|
|
%dir %{_datadir}/%{name}/virtManagerTui
|
2011-09-20 17:08:57 +02:00
|
|
|
%dir %{_datadir}/%{name}/virtManagerTui/importblacklist
|
2008-02-04 01:10:25 +01:00
|
|
|
%{_datadir}/%{name}/virtManager/*.py
|
2011-03-21 20:38:43 +01:00
|
|
|
%{_datadir}/%{name}/virtManagerTui/*.py
|
2011-09-20 17:08:57 +02:00
|
|
|
%{_datadir}/%{name}/virtManagerTui/importblacklist/*.py
|
2010-05-14 01:01:26 +02:00
|
|
|
%dir %{pysite}/virtinst
|
|
|
|
%{pysite}/virtinst/*.py
|
|
|
|
%{pysite}/virtinst/*.pyc
|
2008-02-04 01:10:25 +01:00
|
|
|
%{_datadir}/applications/YaST2/%{name}.desktop
|
|
|
|
%{_datadir}/dbus-1/services/%{name}.service
|
2010-03-23 22:38:51 +01:00
|
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
%{_mandir}/man1/virt-clone.1*
|
|
|
|
%{_mandir}/man1/virt-convert.1*
|
|
|
|
%{_mandir}/man1/virt-image.1*
|
|
|
|
%{_mandir}/man1/virt-install.1*
|
|
|
|
%{_mandir}/man5/virt-image.5*
|
2010-05-14 01:01:26 +02:00
|
|
|
%dir %{pysite}/virtconv
|
|
|
|
%{pysite}/virtconv/*.py
|
|
|
|
%{pysite}/virtconv/*.pyc
|
|
|
|
%dir %{pysite}/virtconv/parsers
|
|
|
|
%{pysite}/virtconv/parsers/*.py
|
|
|
|
%{pysite}/virtconv/parsers/*.pyc
|
2010-09-14 20:11:19 +02:00
|
|
|
%{pysite}/%{virtinst_name}-py2.?.egg-info
|
2008-02-04 01:10:25 +01:00
|
|
|
# FIXME: autobuild complains that these are unowned (not true...)
|
|
|
|
%dir %{_datadir}/dbus-1
|
|
|
|
%dir %{_datadir}/dbus-1/services
|
|
|
|
%dir %{_datadir}/applications/YaST2
|
2007-02-02 15:57:05 +01:00
|
|
|
|
2007-02-19 23:39:46 +01:00
|
|
|
%changelog
|