286 lines
8.6 KiB
RPMSpec
286 lines
8.6 KiB
RPMSpec
# -*- rpm-spec -*-
|
|
|
|
# Default to skipping autoreconf. Distros can change just this one line
|
|
# (or provide a command-line override) if they backport any patches that
|
|
# touch configure.ac or Makefile.am.
|
|
%{!?enable_autotools:%define enable_autotools 0}
|
|
|
|
%define with_gtk3 0
|
|
%if 0%{?fedora} >= 15
|
|
%define with_gtk3 1
|
|
%endif
|
|
|
|
%define with_spice 0
|
|
%if 0%{?fedora} >= 17
|
|
%define with_spice 1
|
|
%endif
|
|
|
|
%define with_govirt 0
|
|
%if 0%{?fedora} >= 19
|
|
%define with_govirt 1
|
|
%endif
|
|
|
|
%if 0%{?rhel} >= 6
|
|
%define with_spice 1
|
|
%endif
|
|
|
|
# spice-gtk is x86 x86_64 arm only currently:
|
|
%ifnarch %{ix86} x86_64 %{arm}
|
|
%define with_spice 0
|
|
%endif
|
|
|
|
Name: virt-viewer
|
|
Version: 0.5.6
|
|
Release: 1%{?dist}%{?extra_release}
|
|
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)
|
|
Requires: openssh-clients
|
|
Requires(post): %{_sbindir}/update-alternatives
|
|
Requires(postun): %{_sbindir}/update-alternatives
|
|
Requires(post): desktop-file-utils
|
|
Requires(postun): desktop-file-utils
|
|
|
|
%if 0%{?enable_autotools}
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: gettext-devel
|
|
BuildRequires: libtool
|
|
%endif
|
|
|
|
BuildRequires: glib2-devel >= 2.22
|
|
%if %{with_gtk3}
|
|
BuildRequires: gtk3-devel >= 3.0.0
|
|
%else
|
|
BuildRequires: gtk2-devel >= 2.12.0
|
|
%endif
|
|
BuildRequires: libvirt-devel >= 0.9.7
|
|
BuildRequires: libxml2-devel
|
|
%if %{with_gtk3}
|
|
BuildRequires: gtk-vnc2-devel >= 0.4.0
|
|
%else
|
|
BuildRequires: gtk-vnc-devel >= 0.3.8
|
|
%endif
|
|
%if %{with_spice}
|
|
%if %{with_gtk3}
|
|
BuildRequires: spice-gtk3-devel >= 0.16.26
|
|
%else
|
|
BuildRequires: spice-gtk-devel >= 0.16.26
|
|
%endif
|
|
BuildRequires: spice-protocol >= 0.10.1
|
|
%endif
|
|
BuildRequires: /usr/bin/pod2man
|
|
BuildRequires: intltool
|
|
%if %{with_govirt}
|
|
BuildRequires: libgovirt-devel >= 0.0.3
|
|
%endif
|
|
|
|
%description
|
|
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.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
|
|
%if 0%{?enable_autotools}
|
|
autoreconf -if
|
|
%endif
|
|
|
|
%if %{with_spice}
|
|
%define spice_arg --with-spice-gtk
|
|
%else
|
|
%define spice_arg --without-spice-gtk
|
|
%endif
|
|
|
|
%if %{with_gtk3}
|
|
%define gtk_arg --with-gtk=3.0
|
|
%else
|
|
%define gtk_arg --with-gtk=2.0
|
|
%endif
|
|
|
|
%if %{with_govirt}
|
|
%define govirt_arg --with-ovirt
|
|
%endif
|
|
|
|
%configure %{spice_arg} %{gtk_arg} %{govirt_arg} --with-buildid=-%{release}
|
|
%__make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
%__make install DESTDIR=$RPM_BUILD_ROOT
|
|
mkdir -p %{buildroot}%{_libexecdir}
|
|
touch %{buildroot}%{_libexecdir}/spice-xpi-client
|
|
install -m 0755 data/spice-xpi-client-remote-viewer %{buildroot}%{_libexecdir}/
|
|
%find_lang %{name}
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%post
|
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
%{_sbindir}/update-alternatives --install %{_libexecdir}/spice-xpi-client \
|
|
spice-xpi-client %{_libexecdir}/spice-xpi-client-remote-viewer 25
|
|
update-desktop-database -q %{_datadir}/applications
|
|
|
|
%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
|
|
update-desktop-database -q %{_datadir}/applications
|
|
|
|
%posttrans
|
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root,-)
|
|
%doc README COPYING AUTHORS ChangeLog NEWS
|
|
%{_bindir}/%{name}
|
|
%{_bindir}/remote-viewer
|
|
%dir %{_datadir}/%{name}
|
|
%dir %{_datadir}/%{name}/ui/
|
|
%{_datadir}/%{name}/ui/virt-viewer.xml
|
|
%{_datadir}/%{name}/ui/virt-viewer-auth.xml
|
|
%{_datadir}/%{name}/ui/virt-viewer-about.xml
|
|
%{_datadir}/icons/hicolor/*/apps/*
|
|
%{_datadir}/applications/remote-viewer.desktop
|
|
%{_datadir}/mime/packages/virt-viewer-mime.xml
|
|
%ghost %{_libexecdir}/spice-xpi-client
|
|
%{_libexecdir}/spice-xpi-client-remote-viewer
|
|
%{_mandir}/man1/virt-viewer.1*
|
|
%{_mandir}/man1/remote-viewer.1*
|
|
|
|
%changelog
|
|
* Wed May 1 2013 Daniel P. Berrange <berrange@redhat.com> - 0.5.6-1
|
|
- Update to 0.5.6 release
|
|
|
|
* Wed Feb 13 2013 Daniel P. Berrange <berrange@redhat.com> - 0.5.5-1
|
|
- Update to 0.5.5 release
|
|
|
|
* Fri Dec 14 2012 Cole Robinson <crobinso@redhat.com> - 0.5.4-3
|
|
- Fix crash after entering spice password (bz #880381)
|
|
|
|
* Sat Oct 13 2012 Chris Tyler <chris@tylers.info> - 0.5.4-2
|
|
- Enabled spice support for ARM archs
|
|
|
|
* Mon Sep 17 2012 Daniel P. Berrange <berrange@redhat.com> - 0.5.4-1
|
|
- Update to 0.5.4 release
|
|
|
|
* Fri Sep 14 2012 Hans de Goede <hdegoede@redhat.com> - 0.5.3-6
|
|
- Rebuild for spice-gtk ABI breakage (previous spice-gtk build was borked)
|
|
|
|
* Tue Sep 11 2012 Hans de Goede <hdegoede@redhat.com> - 0.5.3-5
|
|
- Rebuild for spice-gtk ABI breakage
|
|
|
|
* Fri Sep 7 2012 Hans de Goede <hdegoede@redhat.com> - 0.5.3-4
|
|
- Rebuild for spice-gtk soname change
|
|
|
|
* Mon Aug 13 2012 Daniel P. Berrange <berrange@redhat.com> - 0.5.3-3
|
|
- Rebuild for spice-gtk soname change
|
|
|
|
* 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
|
|
|
|
* 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
|
|
- Update to 0.5.2 release
|
|
|
|
* 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
|
|
|
|
* 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
|
|
|
|
* Wed Nov 9 2011 Daniel P. Berrange <berrange@redhat.com> - 0.4.2-1
|
|
- Update to 0.4.2 release
|
|
|
|
* Sun Aug 14 2011 Daniel P. Berrange <berrange@redhat.com> - 0.4.1-3
|
|
- More ssh tunnelling port fixes
|
|
|
|
* Fri Aug 12 2011 Daniel P. Berrange <berrange@redhat.com> - 0.4.1-2
|
|
- Fix ssh tunnelling
|
|
|
|
* Thu Aug 4 2011 Daniel P. Berrange <berrange@redhat.com> - 0.4.1-1
|
|
- Update to 0.4.1 release
|
|
|
|
* Tue Aug 2 2011 Daniel P. Berrange <berrange@redhat.com> - 0.4.0-2
|
|
- Rebuild for accidental spice-glib soname change
|
|
|
|
* 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
|
|
- Rebuild for spice-glib ABI breakage
|
|
|
|
* 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
|
|
|
|
* Mon Feb 21 2011 Daniel P. Berrange <berrange@redhat.com> - 0.3.1-1
|
|
- Update to 0.3.1 release
|
|
|
|
* Mon Feb 21 2011 Daniel P. Berrange <berrange@redhat.com> - 0.3.0-1
|
|
- Update to 0.3.0 and enable SPICE
|
|
|
|
* 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
|
|
|
|
* Fri Jan 15 2010 Daniel P. Berrange <berrange@redhat.com> - 0.2.1-1
|
|
- Update to 0.2.1 release
|
|
|
|
* Wed Jul 29 2009 Daniel P. Berrange <berrange@redhat.com> - 0.2.0-1.fc12
|
|
- Update to 0.2.0 release
|
|
|
|
* 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
|
|
|
|
* 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)
|
|
|
|
* 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
|
|
|
|
* Mon Jul 7 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.0.3-3.fc10
|
|
- fix conditional comparison
|
|
- remove file dep
|
|
|
|
* Wed Jun 25 2008 Daniel P. Berrange <berrange@redhat.com> - 0.0.3-2.fc10
|
|
- Rebuild for GNU TLS ABI bump
|
|
|
|
* Mon Mar 10 2008 Daniel P. Berrange <berrange@redhat.com> - 0.0.3-1.fc9
|
|
- Updated to 0.0.3 release
|
|
|
|
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.0.2-4
|
|
- Autorebuild for GCC 4.3
|
|
|
|
* 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
|
|
|
|
* Mon Oct 15 2007 Daniel P. Berrange <berrange@redhat.com> - 0.0.2-2.fc8
|
|
- Change TLS x509 credential name to sync with libvirt
|
|
|
|
* Tue Aug 28 2007 Daniel P. Berrange <berrange@redhat.com> - 0.0.2-1.fc8
|
|
- Added support for remote console access
|
|
|
|
* 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
|
|
|
|
* Wed Aug 15 2007 Daniel P. Berrange <berrange@redhat.com> - 0.0.1-1.fc8
|
|
- First release
|