2006-03-29 06:40:14 -05:00
|
|
|
# -*- rpm-spec -*-
|
|
|
|
|
|
2015-12-29 12:00:40 -05:00
|
|
|
%global with_guestfs 0
|
|
|
|
|
%global default_hvs "qemu,xen,lxc"
|
2013-04-16 16:42:25 -04:00
|
|
|
|
2012-07-09 16:07:32 -04:00
|
|
|
|
2013-04-16 16:42:25 -04:00
|
|
|
# End local config
|
2011-08-01 12:08:08 -04:00
|
|
|
|
2013-03-16 21:32:29 -04:00
|
|
|
Name: virt-manager
|
2020-07-17 14:27:53 -04:00
|
|
|
Version: 2.2.1
|
2015-02-22 11:32:02 -05:00
|
|
|
Release: 1%{?dist}
|
2015-12-29 12:00:40 -05:00
|
|
|
%global verrel %{version}-%{release}
|
2006-03-29 06:40:14 -05:00
|
|
|
|
2015-09-03 12:44:02 -04:00
|
|
|
Summary: Desktop tool for managing virtual machines via libvirt
|
2007-11-20 11:12:20 -05:00
|
|
|
License: GPLv2+
|
2016-05-20 17:15:18 -04:00
|
|
|
BuildArch: noarch
|
2018-04-30 13:56:53 +01:00
|
|
|
URL: https://virt-manager.org/
|
|
|
|
|
Source0: https://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz
|
2006-03-29 06:40:14 -05:00
|
|
|
|
2013-03-17 19:32:19 -04:00
|
|
|
|
2013-05-09 18:32:30 -04:00
|
|
|
Requires: virt-manager-common = %{verrel}
|
2018-01-27 15:52:55 -05:00
|
|
|
Requires: python3-gobject
|
2012-05-14 14:24:56 +01:00
|
|
|
Requires: gtk3
|
2013-04-17 16:38:34 +08:00
|
|
|
Requires: libvirt-glib >= 0.0.9
|
2018-04-03 15:25:25 -04:00
|
|
|
Requires: gtk-vnc2
|
|
|
|
|
Requires: spice-gtk3
|
2018-03-21 17:10:30 -04:00
|
|
|
|
2019-06-18 09:53:36 -04:00
|
|
|
# We can work with gtksourceview 3 or gtksourceview4, pick the latest one
|
|
|
|
|
Requires: gtksourceview4
|
|
|
|
|
|
2018-03-21 17:10:30 -04:00
|
|
|
# virt-manager is one of those apps that people will often install onto
|
|
|
|
|
# a headless machine for use over SSH. This means the virt-manager dep
|
|
|
|
|
# chain needs to provide everything we need to get a usable app experience.
|
|
|
|
|
# Unfortunately nothing in our chain has an explicit dep on some kind
|
|
|
|
|
# of usable gsettings backend, so we explicitly depend on dconf so that
|
|
|
|
|
# user settings actually persist across app runs.
|
2013-10-04 16:34:19 -04:00
|
|
|
Requires: dconf
|
2013-04-16 16:42:25 -04:00
|
|
|
|
2015-12-24 12:29:46 -05:00
|
|
|
# The vte291 package is actually the latest vte with API version 2.91, while
|
|
|
|
|
# the vte3 package is effectively a compat package with API version 2.90.
|
|
|
|
|
# virt-manager works fine with either, so pull the latest bits so there's
|
|
|
|
|
# no ambiguity.
|
|
|
|
|
Requires: vte291
|
|
|
|
|
|
2018-10-08 08:44:21 -04:00
|
|
|
# Weak dependencies for the common virt-manager usecase
|
|
|
|
|
Recommends: (libvirt-daemon-kvm or libvirt-daemon-qemu)
|
|
|
|
|
Recommends: libvirt-daemon-config-network
|
|
|
|
|
|
2019-04-17 18:49:53 +02:00
|
|
|
# Optional inspection of guests
|
|
|
|
|
Suggests: python3-libguestfs
|
|
|
|
|
|
2020-07-08 16:54:14 +02:00
|
|
|
BuildRequires: gettext
|
2013-03-01 12:40:48 -05:00
|
|
|
BuildRequires: /usr/bin/pod2man
|
2018-01-27 15:52:55 -05:00
|
|
|
BuildRequires: python3-devel
|
2006-03-29 06:40:14 -05:00
|
|
|
|
2013-04-16 16:42:25 -04:00
|
|
|
|
2006-03-29 06:40:14 -05:00
|
|
|
%description
|
2008-09-10 11:18:06 -04:00
|
|
|
Virtual Machine Manager provides a graphical tool for administering virtual
|
2013-09-23 20:40:43 -04:00
|
|
|
machines for KVM, Xen, and LXC. Start, stop, add or remove virtual devices,
|
2008-09-10 11:18:06 -04:00
|
|
|
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.
|
2006-03-29 06:40:14 -05:00
|
|
|
|
2013-03-17 19:32:19 -04:00
|
|
|
|
|
|
|
|
%package common
|
|
|
|
|
Summary: Common files used by the different Virtual Machine Manager interfaces
|
|
|
|
|
|
2018-12-18 11:59:42 -05:00
|
|
|
Requires: python3-argcomplete
|
2018-01-27 15:52:55 -05:00
|
|
|
Requires: python3-libvirt
|
|
|
|
|
Requires: python3-libxml2
|
|
|
|
|
Requires: python3-requests
|
2014-10-31 20:09:54 +01:00
|
|
|
Requires: libosinfo >= 0.2.10
|
2015-02-24 11:23:46 -05:00
|
|
|
# Required for gobject-introspection infrastructure
|
2018-01-27 15:52:55 -05:00
|
|
|
Requires: python3-gobject-base
|
2018-01-06 14:18:19 -05:00
|
|
|
# Required for pulling files from iso media with isoinfo
|
|
|
|
|
Requires: genisoimage
|
2013-03-17 19:32:19 -04: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
|
|
|
|
|
|
|
|
|
|
Requires: virt-manager-common = %{verrel}
|
2017-02-05 15:44:33 -05:00
|
|
|
# For 'virsh console'
|
|
|
|
|
Requires: libvirt-client
|
2013-03-17 19:32:19 -04:00
|
|
|
|
|
|
|
|
Provides: virt-install
|
|
|
|
|
Provides: virt-clone
|
2014-01-19 10:37:14 -05:00
|
|
|
Provides: virt-xml
|
2013-03-17 19:32:19 -04: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).
|
|
|
|
|
|
|
|
|
|
|
2006-03-29 06:40:14 -05:00
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
2016-06-17 12:56:14 -04:00
|
|
|
|
2006-03-29 06:40:14 -05:00
|
|
|
%build
|
2015-04-06 16:29:28 -04:00
|
|
|
%if %{default_hvs}
|
2015-12-29 12:00:40 -05:00
|
|
|
%global _default_hvs --default-hvs %{default_hvs}
|
2015-04-06 16:29:28 -04:00
|
|
|
%endif
|
|
|
|
|
|
2018-01-27 15:52:55 -05:00
|
|
|
./setup.py configure \
|
2015-04-06 16:29:28 -04:00
|
|
|
%{?_default_hvs}
|
2006-03-29 06:40:14 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
2018-01-27 15:52:55 -05:00
|
|
|
./setup.py \
|
2015-11-02 16:19:31 -05:00
|
|
|
--no-update-icon-cache --no-compile-schemas \
|
|
|
|
|
install -O1 --root=%{buildroot}
|
2006-08-08 12:02:00 -04:00
|
|
|
%find_lang %{name}
|
2006-03-29 06:40:14 -05:00
|
|
|
|
2020-05-26 11:17:32 -04:00
|
|
|
%if 0%{?py_byte_compile:1}
|
|
|
|
|
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python_Appendix/#manual-bytecompilation
|
|
|
|
|
%py_byte_compile %{python3} %{buildroot}%{_datadir}/virt-manager/
|
|
|
|
|
%endif
|
|
|
|
|
|
2018-01-27 15:52:55 -05:00
|
|
|
# Replace '#!/usr/bin/env python3' with '#!/usr/bin/python3'
|
2016-06-17 12:56:14 -04:00
|
|
|
# The format is ideal for upstream, but not a distro. See:
|
|
|
|
|
# https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython
|
|
|
|
|
for f in $(find %{buildroot} -type f -executable -print); do
|
2018-01-27 15:52:55 -05:00
|
|
|
sed -i "1 s|^#!/usr/bin/env python3|#!%{__python3}|" $f || :
|
2016-06-17 12:56:14 -04:00
|
|
|
done
|
|
|
|
|
|
2013-03-16 21:32:29 -04:00
|
|
|
|
2011-07-13 18:00:28 -04:00
|
|
|
%files
|
2016-12-26 12:52:26 +01:00
|
|
|
%doc README.md COPYING NEWS.md
|
2006-06-26 17:17:45 -04:00
|
|
|
%{_bindir}/%{name}
|
2006-07-25 07:24:09 -04:00
|
|
|
|
2008-09-10 18:51:18 -04:00
|
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
|
|
2013-03-16 21:32:29 -04:00
|
|
|
%{_datadir}/%{name}/ui/*.ui
|
2013-04-18 16:03:43 -04:00
|
|
|
%{_datadir}/%{name}/virtManager
|
2006-07-25 07:24:09 -04:00
|
|
|
|
2011-07-12 11:50:11 -04:00
|
|
|
%{_datadir}/%{name}/icons
|
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/*
|
2010-03-23 14:27:30 -04:00
|
|
|
|
2011-07-13 18:00:28 -04:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
2013-04-17 17:39:25 -04:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.virt-manager.virt-manager.gschema.xml
|
2020-01-06 14:43:17 +01:00
|
|
|
%{_datadir}/metainfo/%{name}.appdata.xml
|
2013-03-16 21:32:29 -04:00
|
|
|
|
2011-07-13 18:00:28 -04:00
|
|
|
|
|
|
|
|
%files common -f %{name}.lang
|
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
|
|
2013-03-17 19:32:19 -04:00
|
|
|
%{_datadir}/%{name}/virtinst
|
|
|
|
|
|
2006-07-25 07:24:09 -04:00
|
|
|
|
2013-03-17 19:32:19 -04:00
|
|
|
%files -n virt-install
|
|
|
|
|
%{_mandir}/man1/virt-install.1*
|
|
|
|
|
%{_mandir}/man1/virt-clone.1*
|
2014-01-19 10:37:14 -05:00
|
|
|
%{_mandir}/man1/virt-xml.1*
|
2013-03-17 19:32:19 -04:00
|
|
|
|
2018-12-18 11:59:42 -05:00
|
|
|
%{_datadir}/bash-completion/completions/virt-install
|
|
|
|
|
%{_datadir}/bash-completion/completions/virt-clone
|
|
|
|
|
%{_datadir}/bash-completion/completions/virt-xml
|
|
|
|
|
|
2013-03-17 19:32:19 -04:00
|
|
|
%{_bindir}/virt-install
|
|
|
|
|
%{_bindir}/virt-clone
|
2014-01-19 10:37:14 -05:00
|
|
|
%{_bindir}/virt-xml
|