Update to 0.4.0 release

This commit is contained in:
Daniel P. Berrange 2011-07-12 13:17:17 +01:00
parent 5c4a59c0df
commit c1b1e1b7ae
2 changed files with 44 additions and 16 deletions

View File

@ -1 +1 @@
f7416e4d6b3e04e2d4bdfabe9ef442b2 virt-viewer-0.3.1.tar.gz 392a32a650dd07bed2c858faa85208ba virt-viewer-0.4.0.tar.gz

View File

@ -4,18 +4,24 @@
# a security audit at very least # a security audit at very least
%define _with_plugin %{?with_plugin:1}%{!?with_plugin:0} %define _with_plugin %{?with_plugin:1}%{!?with_plugin:0}
%define with_gtk3 0
%if 0%{?fedora} >= 15
%define with_gtk3 1
%endif
%define with_spice 0 %define with_spice 0
%if 0%{?fedora} >= 14 %if 0%{?fedora} >= 16
%define with_spice 1 %define with_spice 1
%endif %endif
# spice-gtk is x86 x86_64 only:
# spice-gtk is x86 x86_64 only currently:
%ifnarch %{ix86} x86_64 %ifnarch %{ix86} x86_64
%define with_spice 0 %define with_spice 0
%endif %endif
Name: virt-viewer Name: virt-viewer
Version: 0.3.1 Version: 0.4.0
Release: 2%{?dist}%{?extra_release} Release: 1%{?dist}%{?extra_release}
Summary: Virtual Machine Viewer Summary: Virtual Machine Viewer
Group: Applications/System Group: Applications/System
License: GPLv2+ License: GPLv2+
@ -24,13 +30,24 @@ Source0: http://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: openssh-clients Requires: openssh-clients
BuildRequires: gtk2-devel %if %{with_gtk3}
BuildRequires: gtk3-devel >= 3.0.0
%else
BuildRequires: gtk2-devel >= 2.12.0
%endif
BuildRequires: libvirt-devel >= 0.6.0 BuildRequires: libvirt-devel >= 0.6.0
BuildRequires: libxml2-devel BuildRequires: libxml2-devel
BuildRequires: libglade2-devel %if %{with_gtk3}
BuildRequires: gtk-vnc2-devel >= 0.4.3
%else
BuildRequires: gtk-vnc-devel >= 0.3.8 BuildRequires: gtk-vnc-devel >= 0.3.8
%endif
%if %{with_spice} %if %{with_spice}
BuildRequires: spice-gtk-devel >= 0.5 %if %{with_gtk3}
BuildRequires: spice-gtk3-devel >= 0.6
%else
BuildRequires: spice-gtk-devel >= 0.6
%endif
%endif %endif
BuildRequires: /usr/bin/pod2man BuildRequires: /usr/bin/pod2man
BuildRequires: intltool BuildRequires: intltool
@ -44,8 +61,8 @@ BuildRequires: firefox-devel
%description %description
Virtual Machine Viewer provides a graphical console client for connecting Virtual Machine Viewer provides a graphical console client for connecting
to virtual machines. It uses the GTK-VNC widget to provide the display, to virtual machines. It uses the GTK-VNC or SPICE-GTK widgets to provide
and libvirt for looking up VNC server details. the display, and libvirt for looking up VNC/SPICE server details.
%if %{_with_plugin} %if %{_with_plugin}
%package plugin %package plugin
@ -54,8 +71,9 @@ Group: Development/Libraries
Requires: %{name} = %{version} Requires: %{name} = %{version}
%description plugin %description plugin
gtk-vnc is a VNC viewer widget for GTK. It is built using coroutines Virtual Machine Viewer provides a graphical console client for connecting
allowing it to be completely asynchronous while remaining single threaded. to virtual machines. It uses the GTK-VNC or SPICE-GTK widgets to provide
the display, and libvirt for looking up VNC/SPICE server details.
This package provides a web browser plugin for Mozilla compatible This package provides a web browser plugin for Mozilla compatible
browsers. browsers.
@ -78,7 +96,13 @@ browsers.
%define spice_arg --disable-spice %define spice_arg --disable-spice
%endif %endif
%configure %{spice_arg} %{plugin_arg} %if %{with_gtk3}
%define gtk_arg --with-gtk=3.0
%else
%define gtk_arg --with-gtk=2.0
%endif
%configure %{spice_arg} %{plugin_arg} %{gtk_arg}
%__make %{?_smp_mflags} %__make %{?_smp_mflags}
@ -100,9 +124,9 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/%{name} %{_bindir}/%{name}
%dir %{_datadir}/%{name} %dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/ui/ %dir %{_datadir}/%{name}/ui/
%{_datadir}/%{name}/ui/auth.glade %{_datadir}/%{name}/ui/virt-viewer.xml
%{_datadir}/%{name}/ui/about.glade %{_datadir}/%{name}/ui/virt-viewer-auth.xml
%{_datadir}/%{name}/ui/viewer.glade %{_datadir}/%{name}/ui/virt-viewer-about.xml
%{_mandir}/man1/%{name}* %{_mandir}/man1/%{name}*
%if %{_with_plugin} %if %{_with_plugin}
@ -112,6 +136,10 @@ rm -rf $RPM_BUILD_ROOT
%endif %endif
%changelog %changelog
* Tue Jul 12 2011 Daniel P. Berrange <berrange@redhat.com> - 0.4.0-1
- Update to 0.4.0 release
- Switch build to GTK3 instead of GTK2
* Tue May 31 2011 Daniel P. Berrange <berrange@redhat.com> - 0.3.1-2 * Tue May 31 2011 Daniel P. Berrange <berrange@redhat.com> - 0.3.1-2
- Rebuild for spice-glib ABI breakage - Rebuild for spice-glib ABI breakage