File vinagre.spec of Package vinagre

# spec file for package vinagre
# Copyright (c) 2014 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

Name:           vinagre
Summary:        VNC client for GNOME
License:        GPL-2.0+
Group:          Productivity/Networking/Other
Version:        3.10.2
Release:        0
# PATCH-FEATURE-SLE vinagre-bnc874407-add-advanced-options.patch bnc#874407 -- allow custom options to be passed to xfreerdp.
Patch0:         vinagre-bnc874407-add-advanced-options.patch
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gdbm-devel
BuildRequires:  gnome-icon-theme
BuildRequires:  intltool >= 0.50.0
# We need the %%mime_database_* macros
BuildRequires:  gnome-patch-translation
BuildRequires:  shared-mime-info
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  vala
BuildRequires:  yelp-tools
BuildRequires:  pkgconfig(avahi-gobject)
BuildRequires:  pkgconfig(avahi-ui-gtk3)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.9.6
BuildRequires:  pkgconfig(gtk-vnc-2.0) >= 0.4.3
BuildRequires:  pkgconfig(libsecret-1)
BuildRequires:  pkgconfig(libxml-2.0) >= 2.6.31
BuildRequires:  pkgconfig(spice-client-gtk-3.0) >= 0.5
BuildRequires:  pkgconfig(telepathy-glib)
BuildRequires:  pkgconfig(vte-2.90)
Requires:       gnome-icon-theme
Recommends:     %{name}-lang
# For rdp support
Recommends:     freerdp
Obsoletes:      %{name}-devel < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Vinagre is a VNC client for GNOME that supports connecting to multiple
machines, browsing for VNC servers via avahi and password storage in

%setup -q
%patch0 -p1

%configure --disable-static \
    --disable-scrollkeeper \
    --enable-ssh \
make V=1 %{?_smp_mflags}

%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file -G "Remote Desktop Viewer" vinagre
%suse_update_desktop_file vinagre-file
%find_lang %{name} %{?no_lang_C}
for size in 8x8 16x16 22x22 24x24 32x32 48x48 256x256; do
        if test -f %{_datadir}/icons/gnome/$size/apps/preferences-desktop-remote-desktop.png; then
                mkdir -p %{buildroot}%{_datadir}/icons/hicolor/$size/apps
                cp -a %{_datadir}/icons/gnome/$size/apps/preferences-desktop-remote-desktop.png %{buildroot}%{_datadir}/icons/hicolor/$size/apps/preferences-desktop-remote-desktop.png





%defattr(-, root, root)
%doc %{_datadir}/help/C/%{name}/
%dir %{_datadir}/GConf
%dir %{_datadir}/GConf/gsettings
%dir %{_datadir}/vinagre
# Own directories that are not owned by anything else
%dir %{_datadir}/telepathy
%dir %{_datadir}/telepathy/clients

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by