File vboxgtk.spec of Package vboxgtk
#
# spec file for package vboxgtk
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: vboxgtk
Version: 0.8.2
Release: 0
Summary: Simple GTK+ frontend for VirtualBox
License: GPL-3.0+
Group: System/Emulators/PC
Url: http://code.google.com/p/vboxgtk/
Source: http://vboxgtk.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires: hicolor-icon-theme
BuildRequires: python-devel
BuildRequires: update-desktop-files
Requires: python-gobject >= 2.28.0
Requires: python-virtualbox
Provides: virtualbox-gui
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%py_requires
%description
VBoxGtk is a simple GTK+ frontend for VirtualBox. Its objective is to
support only the basic features of VirtualBox and keep the interface
simple and clean.
%lang_package
%prep
%setup -q
%build
%{__python} setup.py build
test ! -f data/vboxgtk.desktop
%__cp data/vboxgtk.desktop.in data/vboxgtk.desktop
%install
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file vboxgtk
%clean
rm -rf %{buildroot}
%post
%if 0%{?suse_version} > 1130
%desktop_database_post
%icon_theme_cache_post
%endif
%postun
%if 0%{?suse_version} > 1130
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files
%defattr(-, root, root)
%doc AUTHORS COPYING README
%{_bindir}/vboxgtk
%{_datadir}/applications/vboxgtk.desktop
%{_datadir}/icons/hicolor/*/apps/vboxgtk.*
%{_datadir}/vboxgtk/
%{python_sitelib}/vboxgtk-*.egg-info
%{python_sitelib}/vboxgtk/
%files lang -f %{name}.lang
%changelog