Fix spec file to correctly build Tumbleweed, Leap, and sle12sp1

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=256
This commit is contained in:
Charles Arnold 2015-09-08 21:00:39 +00:00 committed by Git OBS Bridge
parent 88ae24de3a
commit d550efe6c5

View File

@ -15,7 +15,6 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define with_guestfs 0
%define askpass_package "openssh-askpass"
%define qemu_user "qemu"
@ -95,31 +94,18 @@ Requires: dbus-1-x11
Requires: dconf
Requires: gtk3
Requires: python-gconf
Requires: virt-manager-common = %{verrel}
Recommends: vm-install >= 0.5.6
# Typelib's
Recommends: typelib(AppIndicator3)
Requires: typelib(GVnc)
Requires: typelib(GtkVnc)
Requires: typelib(LibvirtGLib)
Requires: typelib(SpiceClientGtk)
Requires: typelib(Vte)
# For console widget
Requires: python-gobject-cairo
Recommends: python-SpiceClientGtk
Requires: virt-install
Requires: virt-manager-common = %{verrel}
Recommends: vm-install >= 0.5.6
%if %{with_guestfs}
Requires: python-libguestfs
%endif
BuildRequires: glib2-devel
%if 0%{?suse_version} > 1315
BuildRequires: gobject-introspection
%endif
BuildRequires: intltool
BuildRequires: perl
BuildRequires: python
@ -143,7 +129,17 @@ Requires: libvirt-python >= 0.7.0
Requires: python-ipaddr
Requires: python-libxml2
Requires: python-urlgrabber
%if 0%{?is_opensuse}
BuildRequires: gobject-introspection
%else
Recommends: typelib(AppIndicator3)
Requires: typelib(GVnc)
Requires: typelib(GtkVnc)
Requires: typelib(Libosinfo)
Requires: typelib(LibvirtGLib)
Requires: typelib(SpiceClientGtk)
Requires: typelib(Vte)
%endif
%description common
Common files used by the different virt-manager interfaces, as well as