virt-manager/virt-manager.spec

169 lines
5.0 KiB
RPMSpec

#
# spec file for package virt-manager (Version 0.3.0)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: virt-manager
URL: http://virt-manager.et.redhat.com
BuildRequires: autoconf automake gconf2 gettext gtk2-devel python-devel python-gtk update-desktop-files
%if %suse_version > 1010
BuildRequires: python-gobject2-devel python-gtk-devel
%define gsysconfdir /etc
%define gconftool /usr/bin/gconftool-2
%else
%define gsysconfdir /etc/opt/gnome
%define gconftool /opt/gnome/bin/gconftool-2
%endif
License: GNU General Public License (GPL)
Group: System/Monitoring
Autoreqprov: yes
Version: 0.3.0
Release: 8
Summary: Virtual Machine Manager
Source0: virt-manager-0.3.0.tar.bz2
Source1: rhpl-exception.py
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: python-gtk
Requires: python-gnome
# Absolutely require this version or newer
Requires: libvirt-python >= 0.1.4-3
# FIXME: Check dbus-1-python 0.60 vs. 0.61 API changes
Requires: dbus-1-python
# Minimum we've tested with
Requires: libxml2-python >= 2.6.23
Requires: vte
Requires: xen-tools >= 3.0.4_13100
ExclusiveArch: %ix86 x86_64
Patch0: virtman-desktop.diff
Patch1: virtman-install.diff
Patch2: virtman-type-register.diff
Patch3: virtman-deprecated-raise.diff
Patch5: virtman-console-keys.diff
Patch6: virtman-detach-yast.diff
Patch7: virtman-no-ungrab.diff
Patch8: virtman-limit-popup.diff
Patch9: virtman-error.diff
Requires: gconf2
%gconf_schemas_prereq
%description
Virt Manager provides a graphical tool for administering virtual
machines.
Authors:
--------
Daniel Berrange <berrange@redhat.com>
Hugh O. Brock <hbrock@redhat.com>
Jeremy Katz <katzj@redhat.com>
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%build
#automake
#autoconf
autoreconf -i
%configure --sysconfdir=%{gsysconfdir}
make
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_libdir}/virt-manager/sparkline.a
rm -f $RPM_BUILD_ROOT%{_libdir}/virt-manager/sparkline.la
install -m755 %SOURCE1 $RPM_BUILD_ROOT%{_datadir}/virt-manager/exception.py
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
# Unsupported languages:
rm -rf $RPM_BUILD_ROOT/usr/share/locale/as
rm -rf $RPM_BUILD_ROOT/usr/share/locale/or
%find_lang virt-manager
%find_gconf_schemas
cat %{name}.schemas_list %{name}.lang >%{name}.lst
%suse_update_desktop_file virt-manager
%clean
rm -rf $RPM_BUILD_ROOT
%pre -f %{name}.schemas_pre
%preun -f %{name}.schemas_preun
%posttrans -f %{name}.schemas_posttrans
%files -f virt-manager.lst
%defattr(-,root,root,-)
%doc COPYING AUTHORS ChangeLog
%{gsysconfdir}/gconf/schemas/virt-manager.schemas
%{_bindir}/virt-manager
%{_libexecdir}/virt-manager-launch
%{_libdir}/virt-manager/
%dir %{_datadir}/virt-manager
%{_datadir}/virt-manager/*.glade
%dir %{_datadir}/virt-manager/pixmaps
%{_datadir}/virt-manager/pixmaps/*.png
%{_datadir}/virt-manager/pixmaps/*.svg
%{_datadir}/virt-manager/*.py
%dir %{_datadir}/virt-manager/virtManager
%{_datadir}/virt-manager/virtManager/*.py
%dir %{_datadir}/virt-manager/vncViewer
%{_datadir}/virt-manager/vncViewer/*.py
%{_datadir}/applications/YaST2/virt-manager.desktop
%{_datadir}/dbus-1/services/virt-manager.service
# FIXME: autobuild complains that these are unowned (not true...)
%dir %{_datadir}/dbus-1
%dir %{_datadir}/dbus-1/services
%dir %{_datadir}/applications/YaST2
%changelog
* Mon Apr 02 2007 - ro@suse.de
- updated gconf scriptlets
* Tue Feb 13 2007 - ccoffing@novell.com
- Update to latest hg; grabs mouse for better mouse tracking.
(#240387)
- Don't lose mouse grab on every keystroke
- Disable menubar & toolbar when pointer is in VM window, to avoid
key conflicts. (#240001)
- Fix syntax to avoid deprecation warnings (don't raise strings).
- YaST integration: default to managing on-box; detach from yast
control center.
* Mon Jan 29 2007 - ccoffing@novell.com
- Fix desktop file. (#239275)
- Update to 0.3.0 (updated translations; no code changes)
* Mon Jan 22 2007 - ccoffing@novell.com
- Fix desktop file, so icon shows in YaST. (#237046)
- Clean up macros in spec file.
* Fri Jan 19 2007 - ccoffing@novell.com
- Use temporary icon until real ones arrive.
- Update to changeset 371 to fix VNC issues.
* Wed Jan 17 2007 - ccoffing@novell.com
- Fix BuildRequires and paths to work with both SLES10 and STABLE.
* Fri Jan 12 2007 - ccoffing@novell.com
- Fix sysconfdir path.
- Add desktop file.
* Thu Jan 11 2007 - ccoffing@novell.com
- Add to SLES 10 SP1 (fate #301181)
- Update to virt-manager 0.2.6.
- Fix type_register deprecation warnings.
* Tue Oct 24 2006 - ccoffing@novell.com
- Initial package.
- Replace virt-inst with xen-vm-install (part of xen-tools-install)