mirror of
https://src.fedoraproject.org/rpms/virt-manager.git
synced 2025-07-17 01:24:54 +00:00
Update to git snapshot for next release
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -7,3 +7,4 @@ virt-manager-0.8.4.tar.gz
|
|||||||
/virt-manager-0.9.3.tar.gz
|
/virt-manager-0.9.3.tar.gz
|
||||||
/virt-manager-0.9.4.tar.gz
|
/virt-manager-0.9.4.tar.gz
|
||||||
/virt-manager-0.9.5.tar.gz
|
/virt-manager-0.9.5.tar.gz
|
||||||
|
/virt-manager-d3f9bc8e.tar.gz
|
||||||
|
2
sources
2
sources
@@ -1 +1 @@
|
|||||||
2b622a0f4cd53f83665d9841b5a3cefa virt-manager-0.9.5.tar.gz
|
0189909a03f0af234dfa2a92709dce47 virt-manager-d3f9bc8e.tar.gz
|
||||||
|
@@ -1,28 +1,26 @@
|
|||||||
# -*- rpm-spec -*-
|
# -*- rpm-spec -*-
|
||||||
|
|
||||||
%define _package virt-manager
|
|
||||||
%define _version 0.9.5
|
|
||||||
%define _release 1
|
|
||||||
%define virtinst_version 0.600.4
|
|
||||||
|
|
||||||
%define qemu_user "qemu"
|
|
||||||
%define preferred_distros "fedora,rhel"
|
|
||||||
%define kvm_packages "qemu-system-x86"
|
|
||||||
%define libvirt_packages "libvirt-daemon-kvm"
|
|
||||||
%define askpass_package "openssh-askpass"
|
|
||||||
%define disable_unsupported_rhel 0
|
|
||||||
|
|
||||||
%define with_guestfs 0
|
%define with_guestfs 0
|
||||||
%define with_tui 1
|
%define disable_unsupported_rhel 0
|
||||||
|
%define askpass_package "openssh-askpass"
|
||||||
|
%define qemu_user "qemu"
|
||||||
|
%define libvirt_packages "libvirt-daemon-kvm"
|
||||||
|
%define preferred_distros "fedora,rhel"
|
||||||
|
%define kvm_packages "qemu-system-x86"
|
||||||
|
|
||||||
|
%if 0%{?rhel}
|
||||||
|
%define preferred_distros "rhel,fedora"
|
||||||
|
%define kvm_packages "qemu-kvm"
|
||||||
|
%define disable_unsupported_rhel 1
|
||||||
|
%endif
|
||||||
|
|
||||||
%define with_spice 1
|
|
||||||
|
|
||||||
# End local config
|
# End local config
|
||||||
# Default option handling
|
|
||||||
|
|
||||||
%if %{with_spice}
|
%global gitcommit d3f9bc8e
|
||||||
%define default_graphics "spice"
|
%define _version 0.10.0
|
||||||
%endif
|
%define _release 0.1.git%{gitcommit}
|
||||||
|
|
||||||
|
|
||||||
# This macro is used for the continuous automated builds. It just
|
# This macro is used for the continuous automated builds. It just
|
||||||
@@ -31,7 +29,7 @@
|
|||||||
# Fedora RPM builds
|
# Fedora RPM builds
|
||||||
%define _extra_release %{?dist:%{dist}}%{?extra_release:%{extra_release}}
|
%define _extra_release %{?dist:%{dist}}%{?extra_release:%{extra_release}}
|
||||||
|
|
||||||
Name: %{_package}
|
Name: virt-manager
|
||||||
Version: %{_version}
|
Version: %{_version}
|
||||||
Release: %{_release}%{_extra_release}
|
Release: %{_release}%{_extra_release}
|
||||||
%define verrel %{version}-%{release}
|
%define verrel %{version}-%{release}
|
||||||
@@ -40,65 +38,36 @@ Summary: Virtual Machine Manager
|
|||||||
Group: Applications/Emulators
|
Group: Applications/Emulators
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://virt-manager.org/
|
URL: http://virt-manager.org/
|
||||||
Source0: http://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
# These two are just the oldest version tested
|
#Source0: http://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz
|
||||||
Requires: pygtk2 >= 1.99.12-6
|
# Generate source with
|
||||||
Requires: gnome-python2-gconf >= 1.99.11-7
|
# git clone git://git.fedorahosted.org/git/virt-manager.git
|
||||||
# This version not strictly required: virt-manager should work with older,
|
# cd virt-manager
|
||||||
# however varying amounts of functionality will not be enabled.
|
# git archive --output virt-manager-%{gitcommit}.tar.gz --prefix virt-manager-%{gitcommit}/ %{gitcommit}
|
||||||
Requires: libvirt-python >= 0.7.0
|
Source: virt-manager-%{gitcommit}.tar.gz
|
||||||
# Definitely does not work with earlier due to python API changes
|
|
||||||
Requires: dbus-python >= 0.61
|
|
||||||
Requires: dbus-x11
|
Requires: pygobject3
|
||||||
%if 0%{?rhel} > 6
|
Requires: gtk3
|
||||||
# Might work with earlier, but this is what we've tested
|
Requires: libvirt-glib >= 0.0.9
|
||||||
Requires: gnome-keyring >= 0.4.9
|
Requires: gnome-python2-gconf
|
||||||
%else
|
Requires: libxml2-python
|
||||||
Requires: libgnome-keyring
|
Requires: vte
|
||||||
%endif
|
|
||||||
# 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
|
|
||||||
# Minimum we've tested with
|
|
||||||
Requires: libxml2-python >= 2.6.23
|
|
||||||
# Absolutely require this version or later
|
|
||||||
Requires: python-virtinst >= %{virtinst_version}
|
|
||||||
# Earlier vte had broken python binding module
|
|
||||||
Requires: vte >= 0.12.2
|
|
||||||
# For online help
|
|
||||||
Requires: scrollkeeper
|
|
||||||
# For console widget
|
# For console widget
|
||||||
Requires: gtk-vnc-python >= 0.3.8
|
Requires: gtk-vnc2
|
||||||
%if %{with_spice}
|
Requires: spice-gtk3
|
||||||
Requires: spice-gtk-python
|
|
||||||
%endif
|
|
||||||
%if %{with_guestfs}
|
%if %{with_guestfs}
|
||||||
Requires: python-libguestfs
|
Requires: python-libguestfs
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with_tui} == 0
|
|
||||||
Obsoletes: virt-manager-common <= %{verrel}
|
|
||||||
Conflicts: virt-manager-common > %{verrel}
|
|
||||||
%else
|
|
||||||
Requires: virt-manager-common = %{verrel}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
BuildRequires: gettext
|
|
||||||
BuildRequires: scrollkeeper
|
|
||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
BuildRequires: GConf2
|
|
||||||
BuildRequires: /usr/bin/pod2man
|
BuildRequires: /usr/bin/pod2man
|
||||||
|
|
||||||
Requires(pre): GConf2
|
|
||||||
Requires(post): GConf2
|
|
||||||
Requires(preun): GConf2
|
|
||||||
Requires(post): desktop-file-utils
|
|
||||||
Requires(postun): desktop-file-utils
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Virtual Machine Manager provides a graphical tool for administering virtual
|
Virtual Machine Manager provides a graphical tool for administering virtual
|
||||||
@@ -107,19 +76,6 @@ 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
|
for existing VMs on local or remote machines. Uses libvirt as the backend
|
||||||
management API.
|
management API.
|
||||||
|
|
||||||
# TUI package setup
|
|
||||||
%if %{with_tui}
|
|
||||||
%package tui
|
|
||||||
Summary: Virtual Machine Manager text user interface
|
|
||||||
Group: Applications/Emulators
|
|
||||||
|
|
||||||
Requires: virt-manager-common = %{verrel}
|
|
||||||
Requires: python-newt_syrup >= 0.1.2
|
|
||||||
Requires: libuser-python
|
|
||||||
Requires: python-IPy
|
|
||||||
|
|
||||||
%description tui
|
|
||||||
An interactive text user interface for Virtual Machine Manager.
|
|
||||||
|
|
||||||
%package common
|
%package common
|
||||||
Summary: Common files used by the different Virtual Machine Manager interfaces
|
Summary: Common files used by the different Virtual Machine Manager interfaces
|
||||||
@@ -128,140 +84,148 @@ Group: Applications/Emulators
|
|||||||
# This version not strictly required: virt-manager should work with older,
|
# This version not strictly required: virt-manager should work with older,
|
||||||
# however varying amounts of functionality will not be enabled.
|
# however varying amounts of functionality will not be enabled.
|
||||||
Requires: libvirt-python >= 0.7.0
|
Requires: libvirt-python >= 0.7.0
|
||||||
Requires: dbus-python
|
Requires: libxml2-python
|
||||||
# Minimum we've tested with
|
Requires: python-urlgrabber
|
||||||
Requires: libxml2-python >= 2.6.23
|
Requires: python-ipaddr
|
||||||
# Absolutely require this version or later
|
|
||||||
Requires: python-virtinst >= %{virtinst_version}
|
|
||||||
|
|
||||||
%description common
|
%description common
|
||||||
Common files used by the different Virtual Machine Manager interfaces.
|
Common files used by the different virt-manager interfaces, as well as
|
||||||
%endif
|
virt-install related tools.
|
||||||
|
|
||||||
|
|
||||||
|
%package -n virt-install
|
||||||
|
Summary: Utilities for installing virtual machines
|
||||||
|
|
||||||
|
Requires: virt-manager-common = %{verrel}
|
||||||
|
|
||||||
|
Provides: virt-install
|
||||||
|
Provides: virt-clone
|
||||||
|
Provides: virt-image
|
||||||
|
Provides: virt-convert
|
||||||
|
Obsoletes: python-virtinst
|
||||||
|
|
||||||
|
%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
|
%prep
|
||||||
%setup -q
|
%setup -q -n virt-manager-%{gitcommit}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if %{qemu_user}
|
%if %{qemu_user}
|
||||||
%define _qemu_user --with-qemu_user=%{qemu_user}
|
%define _qemu_user --qemu-user=%{qemu_user}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{kvm_packages}
|
%if %{kvm_packages}
|
||||||
%define _kvm_packages --with-kvm-packages=%{kvm_packages}
|
%define _kvm_packages --kvm-package-names=%{kvm_packages}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{preferred_distros}
|
%if %{preferred_distros}
|
||||||
%define _preferred_distros --with-preferred-distros=%{preferred_distros}
|
%define _preferred_distros --preferred-distros=%{preferred_distros}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{libvirt_packages}
|
%if %{libvirt_packages}
|
||||||
%define _libvirt_packages --with-libvirt-package-names=%{libvirt_packages}
|
%define _libvirt_packages --libvirt-package-names=%{libvirt_packages}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{askpass_package}
|
%if %{askpass_package}
|
||||||
%define _askpass_package --with-askpass-package=%{askpass_package}
|
%define _askpass_package --askpass-package-names=%{askpass_package}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{disable_unsupported_rhel}
|
%if %{disable_unsupported_rhel}
|
||||||
%define _disable_unsupported_rhel --disable-unsupported-rhel-options
|
%define _disable_unsupported_rhel --hide-unsupported-rhel-options
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?default_graphics:1}
|
%if 0%{?default_graphics:1}
|
||||||
%define _default_graphics --with-default-graphics=%{default_graphics}
|
%define _default_graphics --default-graphics=%{default_graphics}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with_tui}
|
|
||||||
%define _tui_opt --with-tui
|
|
||||||
%else
|
|
||||||
%define _tui_opt --without-tui
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%configure %{?_tui_opt} \
|
python setup.py configure \
|
||||||
%{?_qemu_user} \
|
--pkgversion="%{version}" \
|
||||||
%{?_kvm_packages} \
|
%{?_qemu_user} \
|
||||||
%{?_libvirt_packages} \
|
%{?_kvm_packages} \
|
||||||
%{?_askpass_package} \
|
%{?_libvirt_packages} \
|
||||||
%{?_preferred_distros} \
|
%{?_askpass_package} \
|
||||||
%{?_disable_unsupported_rhel} \
|
%{?_preferred_distros} \
|
||||||
%{?_default_graphics}
|
%{?_disable_unsupported_rhel} \
|
||||||
make %{?_smp_mflags}
|
%{?_default_graphics}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
python setup.py install -O1 --root=$RPM_BUILD_ROOT
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%pre
|
|
||||||
%gconf_schema_prepare %{name}
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
update-desktop-database -q %{_datadir}/applications
|
/usr/bin/update-desktop-database &> /dev/null || :
|
||||||
%gconf_schema_upgrade %{name}
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
||||||
/usr/bin/gtk-update-icon-cache %{_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
|
fi
|
||||||
update-desktop-database -q %{_datadir}/applications
|
/usr/bin/update-desktop-database &> /dev/null || :
|
||||||
|
|
||||||
%preun
|
|
||||||
%gconf_schema_remove %{name}
|
|
||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
/usr/bin/gtk-update-icon-cache %{_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 || :
|
||||||
|
|
||||||
|
|
||||||
%if %{with_tui}
|
|
||||||
%files
|
%files
|
||||||
%else
|
%doc README COPYING NEWS
|
||||||
%files -f %{name}.lang
|
|
||||||
%endif
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc README COPYING COPYING-DOCS AUTHORS ChangeLog NEWS
|
|
||||||
%{_sysconfdir}/gconf/schemas/%{name}.schemas
|
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_libexecdir}/%{name}-launch
|
|
||||||
|
|
||||||
%{_mandir}/man1/%{name}.1*
|
%{_mandir}/man1/%{name}.1*
|
||||||
|
|
||||||
%if %{with_tui} == 0
|
%{_datadir}/%{name}/ui/*.ui
|
||||||
%dir %{_datadir}/%{name}
|
%{_datadir}/%{name}/virt-manager
|
||||||
%dir %{_datadir}/%{name}/virtManager/
|
%{_datadir}/%{name}/virtManager
|
||||||
%{_datadir}/%{name}/virtManager/*.py*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%{_datadir}/%{name}/*.ui
|
|
||||||
%{_datadir}/%{name}/%{name}.py*
|
|
||||||
|
|
||||||
%{_datadir}/%{name}/icons
|
%{_datadir}/%{name}/icons
|
||||||
%{_datadir}/icons/hicolor/*/apps/*
|
%{_datadir}/icons/hicolor/*/apps/*
|
||||||
|
|
||||||
%{_datadir}/applications/%{name}.desktop
|
%{_datadir}/applications/%{name}.desktop
|
||||||
%{_datadir}/dbus-1/services/%{name}.service
|
%{_datadir}/glib-2.0/schemas/org.virt-manager.virt-manager.gschema.xml
|
||||||
|
|
||||||
|
|
||||||
%if %{with_tui}
|
|
||||||
%files common -f %{name}.lang
|
%files common -f %{name}.lang
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_datadir}/%{name}
|
%dir %{_datadir}/%{name}
|
||||||
%dir %{_datadir}/%{name}/virtManager/
|
|
||||||
|
|
||||||
%{_datadir}/%{name}/virtManager/*.py*
|
%{_datadir}/%{name}/virtcli
|
||||||
|
%{_datadir}/%{name}/virtconv
|
||||||
|
%{_datadir}/%{name}/virtinst
|
||||||
|
|
||||||
%files tui
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
|
|
||||||
%{_bindir}/%{name}-tui
|
%files -n virt-install
|
||||||
%{_datadir}/%{name}/%{name}-tui.py*
|
%{_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
|
||||||
|
|
||||||
|
%{_bindir}/virt-install
|
||||||
|
%{_bindir}/virt-clone
|
||||||
|
%{_bindir}/virt-image
|
||||||
|
%{_bindir}/virt-convert
|
||||||
|
|
||||||
%{_datadir}/%{name}/virtManagerTui
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 29 2013 Cole Robinson <crobinso@redhat.com> - 0.10.0-0.1.gitd3f9bc8e
|
||||||
|
- Update to git snapshot for next release
|
||||||
|
|
||||||
* Mon Apr 01 2013 Cole Robinson <crobinso@redhat.com> - 0.9.5-1
|
* Mon Apr 01 2013 Cole Robinson <crobinso@redhat.com> - 0.9.5-1
|
||||||
- Rebased to version 0.9.5
|
- Rebased to version 0.9.5
|
||||||
- Enable adding virtio-scsi disks (Chen Hanxiao) (bz 887584)
|
- Enable adding virtio-scsi disks (Chen Hanxiao) (bz 887584)
|
||||||
|
Reference in New Issue
Block a user