2007-08-17 19:42:14 +00:00
|
|
|
# -*- rpm-spec -*-
|
|
|
|
|
2008-03-10 14:58:12 +00:00
|
|
|
# Plugin isn't ready for real world use yet - it needs
|
|
|
|
# a security audit at very least
|
|
|
|
%define _with_plugin %{?with_plugin:1}%{!?with_plugin:0}
|
|
|
|
|
2011-07-12 12:17:17 +00:00
|
|
|
%define with_gtk3 0
|
|
|
|
%if 0%{?fedora} >= 15
|
|
|
|
%define with_gtk3 1
|
|
|
|
%endif
|
|
|
|
|
2011-02-21 12:45:54 +00:00
|
|
|
%define with_spice 0
|
2012-05-16 12:07:02 +00:00
|
|
|
%if 0%{?fedora} >= 17
|
2011-02-21 12:45:54 +00:00
|
|
|
%define with_spice 1
|
|
|
|
%endif
|
2011-07-12 12:17:17 +00:00
|
|
|
|
2012-03-09 13:54:20 +00:00
|
|
|
%if 0%{?rhel} >= 6
|
|
|
|
%define with_spice 1
|
|
|
|
%endif
|
|
|
|
|
2011-07-12 12:17:17 +00:00
|
|
|
# spice-gtk is x86 x86_64 only currently:
|
2011-05-11 19:28:05 +00:00
|
|
|
%ifnarch %{ix86} x86_64
|
|
|
|
%define with_spice 0
|
|
|
|
%endif
|
2011-02-21 12:45:54 +00:00
|
|
|
|
2007-08-17 19:42:14 +00:00
|
|
|
Name: virt-viewer
|
2012-05-16 12:07:02 +00:00
|
|
|
Version: 0.5.3
|
2012-09-11 19:01:23 +00:00
|
|
|
Release: 5%{?dist}%{?extra_release}
|
2007-08-17 19:42:14 +00:00
|
|
|
Summary: Virtual Machine Viewer
|
|
|
|
Group: Applications/System
|
|
|
|
License: GPLv2+
|
|
|
|
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)
|
2008-03-10 14:58:12 +00:00
|
|
|
Requires: openssh-clients
|
2012-02-14 16:31:03 +00:00
|
|
|
Requires(post): %{_sbindir}/update-alternatives
|
|
|
|
Requires(postun): %{_sbindir}/update-alternatives
|
2012-05-16 12:07:02 +00:00
|
|
|
Requires(post): desktop-file-utils
|
|
|
|
Requires(postun): desktop-file-utils
|
2007-08-17 19:42:14 +00:00
|
|
|
|
2011-07-12 12:17:17 +00:00
|
|
|
%if %{with_gtk3}
|
|
|
|
BuildRequires: gtk3-devel >= 3.0.0
|
|
|
|
%else
|
|
|
|
BuildRequires: gtk2-devel >= 2.12.0
|
|
|
|
%endif
|
2012-03-09 13:54:20 +00:00
|
|
|
BuildRequires: libvirt-devel >= 0.9.7
|
2007-08-17 19:42:14 +00:00
|
|
|
BuildRequires: libxml2-devel
|
2011-07-12 12:17:17 +00:00
|
|
|
%if %{with_gtk3}
|
2012-02-17 12:11:27 +00:00
|
|
|
BuildRequires: gtk-vnc2-devel >= 0.4.0
|
2011-07-12 12:17:17 +00:00
|
|
|
%else
|
2012-02-17 12:11:27 +00:00
|
|
|
BuildRequires: gtk-vnc-devel >= 0.3.8
|
2011-07-12 12:17:17 +00:00
|
|
|
%endif
|
2011-02-21 12:45:54 +00:00
|
|
|
%if %{with_spice}
|
2011-07-12 12:17:17 +00:00
|
|
|
%if %{with_gtk3}
|
2012-03-09 13:54:20 +00:00
|
|
|
BuildRequires: spice-gtk3-devel >= 0.11
|
2011-07-12 12:17:17 +00:00
|
|
|
%else
|
2012-03-09 13:54:20 +00:00
|
|
|
BuildRequires: spice-gtk-devel >= 0.11
|
2011-07-12 12:17:17 +00:00
|
|
|
%endif
|
2012-03-09 13:54:20 +00:00
|
|
|
BuildRequires: spice-protocol >= 0.10.1
|
2011-02-21 12:45:54 +00:00
|
|
|
%endif
|
2009-07-29 14:33:14 +00:00
|
|
|
BuildRequires: /usr/bin/pod2man
|
2010-01-15 13:08:22 +00:00
|
|
|
BuildRequires: intltool
|
2008-03-10 14:58:12 +00:00
|
|
|
%if %{_with_plugin}
|
2008-07-07 19:29:36 +00:00
|
|
|
%if 0%{?fedora} > 8
|
2008-03-10 14:58:12 +00:00
|
|
|
BuildRequires: xulrunner-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: firefox-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
2007-08-17 19:42:14 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Virtual Machine Viewer provides a graphical console client for connecting
|
2011-07-12 12:17:17 +00:00
|
|
|
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.
|
2007-08-17 19:42:14 +00:00
|
|
|
|
2008-03-10 14:58:12 +00:00
|
|
|
%if %{_with_plugin}
|
|
|
|
%package plugin
|
|
|
|
Summary: Mozilla plugin for the gtk-vnc library
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description plugin
|
2011-07-12 12:17:17 +00:00
|
|
|
Virtual Machine Viewer provides a graphical console client for connecting
|
|
|
|
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.
|
2008-03-10 14:58:12 +00:00
|
|
|
|
|
|
|
This package provides a web browser plugin for Mozilla compatible
|
|
|
|
browsers.
|
|
|
|
%endif
|
|
|
|
|
2007-08-17 19:42:14 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2011-02-21 12:45:54 +00:00
|
|
|
|
2008-03-10 14:58:12 +00:00
|
|
|
%if %{_with_plugin}
|
2011-02-21 12:45:54 +00:00
|
|
|
%define plugin_arg --enable-plugin
|
2008-03-10 14:58:12 +00:00
|
|
|
%else
|
2011-02-21 12:45:54 +00:00
|
|
|
%define plugin_arg --disable-plugin
|
2008-03-10 14:58:12 +00:00
|
|
|
%endif
|
2011-02-21 12:45:54 +00:00
|
|
|
|
|
|
|
%if %{with_spice}
|
2011-11-09 15:22:54 +00:00
|
|
|
%define spice_arg --with-spice-gtk
|
2011-02-21 12:45:54 +00:00
|
|
|
%else
|
2011-11-09 15:22:54 +00:00
|
|
|
%define spice_arg --without-spice-gtk
|
2011-02-21 12:45:54 +00:00
|
|
|
%endif
|
|
|
|
|
2011-07-12 12:17:17 +00:00
|
|
|
%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}
|
2008-03-10 14:58:12 +00:00
|
|
|
%__make %{?_smp_mflags}
|
2007-08-17 19:42:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2008-03-10 14:58:12 +00:00
|
|
|
%__make install DESTDIR=$RPM_BUILD_ROOT
|
2012-02-14 16:31:03 +00:00
|
|
|
mkdir -p %{buildroot}%{_libexecdir}
|
|
|
|
touch %{buildroot}%{_libexecdir}/spice-xpi-client
|
|
|
|
install -m 0755 data/spice-xpi-client-remote-viewer %{buildroot}%{_libexecdir}/
|
2008-03-10 14:58:12 +00:00
|
|
|
%if %{_with_plugin}
|
|
|
|
rm -f %{buildroot}%{_libdir}/mozilla/plugins/%{name}-plugin.a
|
|
|
|
rm -f %{buildroot}%{_libdir}/mozilla/plugins/%{name}-plugin.la
|
|
|
|
%endif
|
2010-01-15 13:02:08 +00:00
|
|
|
%find_lang %{name}
|
|
|
|
|
2007-08-17 19:42:14 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2012-02-14 16:31:03 +00:00
|
|
|
%post
|
|
|
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
%{_sbindir}/update-alternatives --install %{_libexecdir}/spice-xpi-client \
|
2012-05-16 12:07:02 +00:00
|
|
|
spice-xpi-client %{_libexecdir}/spice-xpi-client-remote-viewer 25
|
|
|
|
update-desktop-database -q %{_datadir}/applications
|
2012-02-14 16:31:03 +00:00
|
|
|
|
|
|
|
%postun
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
|
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
%{_sbindir}/update-alternatives --remove spice-xpi-client %{_libexecdir}/spice-xpi-client-remote-viewer
|
|
|
|
fi
|
2012-05-16 12:07:02 +00:00
|
|
|
update-desktop-database -q %{_datadir}/applications
|
2012-02-14 16:31:03 +00:00
|
|
|
|
|
|
|
%posttrans
|
|
|
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
2010-01-15 13:02:08 +00:00
|
|
|
%files -f %{name}.lang
|
2007-08-17 19:42:14 +00:00
|
|
|
%defattr(-,root,root,-)
|
2008-03-10 14:58:12 +00:00
|
|
|
%doc README COPYING AUTHORS ChangeLog NEWS
|
2007-08-17 19:42:14 +00:00
|
|
|
%{_bindir}/%{name}
|
2012-02-14 16:31:03 +00:00
|
|
|
%{_bindir}/remote-viewer
|
2009-07-29 14:33:14 +00:00
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
%dir %{_datadir}/%{name}/ui/
|
2011-07-12 12:17:17 +00:00
|
|
|
%{_datadir}/%{name}/ui/virt-viewer.xml
|
|
|
|
%{_datadir}/%{name}/ui/virt-viewer-auth.xml
|
|
|
|
%{_datadir}/%{name}/ui/virt-viewer-about.xml
|
2012-02-14 16:31:03 +00:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/*
|
2012-05-16 12:07:02 +00:00
|
|
|
%{_datadir}/applications/remote-viewer.desktop
|
2012-02-14 16:31:03 +00:00
|
|
|
%ghost %{_libexecdir}/spice-xpi-client
|
|
|
|
%{_libexecdir}/spice-xpi-client-remote-viewer
|
|
|
|
%{_mandir}/man1/virt-viewer.1*
|
|
|
|
%{_mandir}/man1/remote-viewer.1*
|
2007-08-17 19:42:14 +00:00
|
|
|
|
2008-03-10 14:58:12 +00:00
|
|
|
%if %{_with_plugin}
|
|
|
|
%files plugin
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/mozilla/plugins/%{name}-plugin.so
|
|
|
|
%endif
|
|
|
|
|
2007-08-17 19:42:14 +00:00
|
|
|
%changelog
|
2012-09-11 19:01:23 +00:00
|
|
|
* Tue Sep 11 2012 Hans de Goede <hdegoede@redhat.com> - 0.5.3-5
|
|
|
|
- Rebuild for spice-gtk ABI breakage
|
|
|
|
|
2012-09-07 18:36:18 +00:00
|
|
|
* Fri Sep 7 2012 Hans de Goede <hdegoede@redhat.com> - 0.5.3-4
|
|
|
|
- Rebuild for spice-gtk soname change
|
|
|
|
|
2012-08-13 10:30:55 +00:00
|
|
|
* Mon Aug 13 2012 Daniel P. Berrange <berrange@redhat.com> - 0.5.3-3
|
|
|
|
- Rebuild for spice-gtk soname change
|
|
|
|
|
2012-07-22 02:50:08 +00:00
|
|
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-05-16 12:07:02 +00:00
|
|
|
* Wed May 16 2012 Daniel P. Berrange <berrange@redhat.com> - 0.5.3-1
|
|
|
|
- Update to 0.5.3 release
|
|
|
|
|
|
|
|
* Fri Mar 9 2012 Daniel P. Berrange <berrange@redhat.com> - 0.5.2-1
|
2012-03-09 13:54:20 +00:00
|
|
|
- Update to 0.5.2 release
|
|
|
|
|
2012-02-17 12:11:27 +00:00
|
|
|
* Thu Feb 17 2012 Daniel P. Berrange <berrange@redhat.com> - 0.5.1-1
|
|
|
|
- Update to 0.5.1 release
|
|
|
|
|
|
|
|
* Tue Feb 14 2012 Daniel P. Berrange <berrange@redhat.com> - 0.5.0-1
|
|
|
|
- Update to 0.5.0 release
|
|
|
|
|
2012-01-14 07:59:07 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-11-09 15:22:54 +00:00
|
|
|
* Wed Nov 9 2011 Daniel P. Berrange <berrange@redhat.com> - 0.4.2-1
|
|
|
|
- Update to 0.4.2 release
|
|
|
|
|
2011-08-14 20:57:59 +00:00
|
|
|
* Sun Aug 14 2011 Daniel P. Berrange <berrange@redhat.com> - 0.4.1-3
|
|
|
|
- More ssh tunnelling port fixes
|
|
|
|
|
2011-08-12 14:44:16 +00:00
|
|
|
* Fri Aug 12 2011 Daniel P. Berrange <berrange@redhat.com> - 0.4.1-2
|
|
|
|
- Fix ssh tunnelling
|
|
|
|
|
2011-08-04 10:37:54 +00:00
|
|
|
* Thu Aug 4 2011 Daniel P. Berrange <berrange@redhat.com> - 0.4.1-1
|
|
|
|
- Update to 0.4.1 release
|
|
|
|
|
2011-08-02 13:31:00 +00:00
|
|
|
* Tue Aug 2 2011 Daniel P. Berrange <berrange@redhat.com> - 0.4.0-2
|
|
|
|
- Rebuild for accidental spice-glib soname change
|
|
|
|
|
2011-07-12 12:17:17 +00:00
|
|
|
* 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
|
|
|
|
|
2011-05-31 17:28:03 +00:00
|
|
|
* Tue May 31 2011 Daniel P. Berrange <berrange@redhat.com> - 0.3.1-2
|
|
|
|
- Rebuild for spice-glib ABI breakage
|
|
|
|
|
2011-05-11 19:28:05 +00:00
|
|
|
* Wed May 11 2011 Karsten Hopp <karsten@redhat.com> 0.3.1-1.1
|
|
|
|
- spice-gtk is x86 x86_64 only, don't require it on other archs
|
|
|
|
|
2011-02-21 15:39:02 +00:00
|
|
|
* Mon Feb 21 2011 Daniel P. Berrange <berrange@redhat.com> - 0.3.1-1
|
|
|
|
- Update to 0.3.1 release
|
|
|
|
|
2011-02-21 12:45:54 +00:00
|
|
|
* Mon Feb 21 2011 Daniel P. Berrange <berrange@redhat.com> - 0.3.0-1
|
|
|
|
- Update to 0.3.0 and enable SPICE
|
|
|
|
|
2011-02-08 01:39:18 +00:00
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-01-15 13:02:08 +00:00
|
|
|
* Fri Jan 15 2010 Daniel P. Berrange <berrange@redhat.com> - 0.2.1-1
|
|
|
|
- Update to 0.2.1 release
|
|
|
|
|
2009-07-29 14:33:14 +00:00
|
|
|
* Wed Jul 29 2009 Daniel P. Berrange <berrange@redhat.com> - 0.2.0-1.fc12
|
|
|
|
- Update to 0.2.0 release
|
|
|
|
|
2009-07-27 06:55:48 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.3-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-05-07 11:55:21 +00:00
|
|
|
* Thu May 7 2009 Daniel P. Berrange <berrange@redhat.com> - 0.0.3-5.fc12
|
|
|
|
- Fix auth against libvirt (rhbz #499594)
|
|
|
|
- Fix confusion of VNC credentials (rhbz #499595)
|
|
|
|
- Correct keyboard grab handling (rhbz #499362)
|
|
|
|
|
2009-02-26 00:36:09 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.3-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-07-07 19:29:36 +00:00
|
|
|
* Mon Jul 7 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.0.3-3.fc10
|
|
|
|
- fix conditional comparison
|
|
|
|
- remove file dep
|
|
|
|
|
2008-06-25 10:03:02 +00:00
|
|
|
* Wed Jun 25 2008 Daniel P. Berrange <berrange@redhat.com> - 0.0.3-2.fc10
|
|
|
|
- Rebuild for GNU TLS ABI bump
|
|
|
|
|
2008-03-10 14:58:12 +00:00
|
|
|
* Mon Mar 10 2008 Daniel P. Berrange <berrange@redhat.com> - 0.0.3-1.fc9
|
|
|
|
- Updated to 0.0.3 release
|
|
|
|
|
2008-02-18 21:14:10 +00:00
|
|
|
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.0.2-4
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2008-01-11 22:47:40 +00:00
|
|
|
* Fri Jan 11 2008 Daniel P. Berrange <berrange@redhat.com> - 0.0.2-3.fc9
|
|
|
|
- Set domain name as window title
|
|
|
|
- Hide input for passwd fields during auth
|
|
|
|
|
2007-10-15 21:07:34 +00:00
|
|
|
* Mon Oct 15 2007 Daniel P. Berrange <berrange@redhat.com> - 0.0.2-2.fc8
|
|
|
|
- Change TLS x509 credential name to sync with libvirt
|
|
|
|
|
2007-08-29 00:40:26 +00:00
|
|
|
* Tue Aug 28 2007 Daniel P. Berrange <berrange@redhat.com> - 0.0.2-1.fc8
|
|
|
|
- Added support for remote console access
|
|
|
|
|
2007-08-17 21:21:10 +00:00
|
|
|
* Fri Aug 17 2007 Daniel P. Berrange <berrange@redhat.com> - 0.0.1-2.fc8
|
|
|
|
- Restrict built to x86 & ia64 because libvirt is only on those arches
|
|
|
|
|
2007-08-17 19:42:14 +00:00
|
|
|
* Wed Aug 15 2007 Daniel P. Berrange <berrange@redhat.com> - 0.0.1-1.fc8
|
|
|
|
- First release
|