File vino.spec of Package vino
#
# spec file for package vino
#
# Copyright (c) 2011 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/
#
# norootforbuild
Name: vino
License: GPLv2+
Group: Productivity/Networking/Other
Version: 3.2.1
Release: 1
Summary: GNOME VNC Server
Url: http://www.gnome.org
Source: http://download.gnome.org/sources/vino/3.2/%{name}-%{version}.tar.bz2
BuildRequires: fdupes
BuildRequires: gnutls-devel
BuildRequires: intltool
BuildRequires: libavahi-glib-devel
BuildRequires: libgnome-keyring-devel
BuildRequires: libnotify-devel
BuildRequires: NetworkManager-devel
BuildRequires: libsoup-devel
BuildRequires: telepathy-glib-devel
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gtk+-3.0)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%description
A VNC Server for GNOME
%lang_package
%prep
%setup -q
translation-update-upstream
%build
%configure\
--libexecdir=%{_libexecdir}/vino \
--enable-http-server=yes
%__make %{?jobs:-j%jobs} V=1
%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
# X-GNOME-NetworkSettings is okay upstream, but it makes the item appear misplaced with our menu structure
grep -q X-GNOME-NetworkSettings %{buildroot}%{_datadir}/applications/vino-preferences.desktop
%suse_update_desktop_file -r vino-preferences GNOME GTK Settings X-GNOME-PersonalSettings X-SuSE-ControlCenter-Personal RemoteAccess Network
%suse_update_desktop_file vino-server
%find_lang %{name} %{?no_lang_C}
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post
%desktop_database_post
%glib2_gsettings_schema_post
%postun
%desktop_database_postun
%glib2_gsettings_schema_postun
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%defattr (-, root, root)
%{_bindir}/vino-passwd
%{_bindir}/vino-preferences
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.Vino.service
%{_datadir}/GConf/gsettings/org.gnome.Vino.convert
%{_datadir}/glib-2.0/schemas/org.gnome.Vino.enums.xml
%{_datadir}/glib-2.0/schemas/org.gnome.Vino.gschema.xml
%dir %{_datadir}/telepathy/
%dir %{_datadir}/telepathy/clients/
%{_datadir}/telepathy/clients/Vino.client
%{_datadir}/vino/
%{_sysconfdir}/xdg/autostart/vino-server.desktop
%{_libexecdir}/vino
%files lang -f %{name}.lang
%changelog