File gnome-boxes.spec of Package gnome-boxes

#
# spec file for package gnome-boxes
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Dominique Leuenberger, Amsterdam, The Netherlands.
#
# 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:           gnome-boxes
Version:        3.12.2
Release:        0
Summary:        A simple GNOME 3 application to access remote or virtual systems
License:        LGPL-2.0+
Group:          System/GUI/GNOME
Url:            https://live.gnome.org/Design/Apps/Boxes
Source:         http://download.gnome.org/sources/gnome-boxes/3.12/%{name}-%{version}.tar.xz
# For directory ownership
BuildRequires:  gnome-shell
BuildRequires:  intltool >= 0.40.0
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  vala >= 0.23.3.1
BuildRequires:  yelp-tools
BuildRequires:  pkgconfig(glib-2.0) >= 2.38.0
BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 0.9.6
BuildRequires:  pkgconfig(govirt-1.0) >= 0.2.0
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.11
BuildRequires:  pkgconfig(gtk-vnc-2.0) >= 0.4.4
BuildRequires:  pkgconfig(gudev-1.0) >= 165
BuildRequires:  pkgconfig(libosinfo-1.0) >= 0.2.9
BuildRequires:  pkgconfig(libsoup-2.4) >= 2.38
BuildRequires:  pkgconfig(libvirt-gconfig-1.0) >= 0.1.7
BuildRequires:  pkgconfig(libvirt-gobject-1.0) >= 0.1.5
BuildRequires:  pkgconfig(libxml-2.0) >= 2.7.8
BuildRequires:  pkgconfig(rest-0.7)
BuildRequires:  pkgconfig(spice-client-gtk-3.0) >= 0.15
BuildRequires:  pkgconfig(tracker-sparql-1.0)
BuildRequires:  pkgconfig(uuid) >= 1.41.3
# Needed for unattended installations
Requires:       fuseiso
# Need libvirtd and an hypervisor
Requires:       libvirt-daemon-qemu
# Needed for unattended installations
Requires:       mtools
# gnome-boxes requires org.freedesktop.Tracker.FTS schema to be available (bnc#785356).
Requires:       tracker
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires

%description
Boxes is an application to easily create, setup, access, and use: remote
machines, remote and local virtual machines, and, when technology permits,
applications on local virtual machines.

%package -n gnome-shell-search-provider-boxes
Summary:        Boxes -- Search Provider for GNOME Shell
Group:          System/GUI/GNOME
Requires:       %{name} = %{version}
Requires:       gnome-shell
Supplements:    packageand(%{name}:gnome-shell)

%description -n gnome-shell-search-provider-boxes
Boxes is an application to easily create, setup, access, and use: remote
machines, remote and local virtual machines, and, when technology permits,
applications on local virtual machines.

This package contains a search provider to enable GNOME Shell to get
search results from Boxes.

%lang_package
%prep
%setup -q
translation-update-upstream

%build
%configure \
    --enable-usbredir \
    --enable-smartcard
make %{?_smp_mflags}

%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file %{name}
%find_lang %{name}

%post
%glib2_gsettings_schema_post
%desktop_database_post
%icon_theme_cache_post

%postun
%glib2_gsettings_schema_postun
%desktop_database_postun
%icon_theme_cache_post

%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%{_bindir}/gnome-boxes
%dir %{_datadir}/appdata
%{_datadir}/appdata/gnome-boxes.appdata.xml
%{_datadir}/applications/gnome-boxes.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.boxes.gschema.xml
%{_datadir}/gnome-boxes/
%{_datadir}/icons/hicolor/*/apps/gnome-boxes.*

%files -n gnome-shell-search-provider-boxes
%defattr(-,root,root)
%{_datadir}/dbus-1/services/org.gnome.Boxes.SearchProvider.service
%{_datadir}/gnome-shell/search-providers/gnome-boxes-search-provider.ini
%{_libexecdir}/gnome-boxes-search-provider

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by