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:        2.32.1
Release:        2
Summary:        GNOME VNC Server
Url:            http://www.gnome.org
Source:         vino-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  gconf2-devel
BuildRequires:  gnutls-devel
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libavahi-glib-devel
BuildRequires:  libgnome-keyring-devel
BuildRequires:  libnotify-devel
BuildRequires:  NetworkManager-devel
BuildRequires:  libsoup-devel
BuildRequires:  libunique-devel
BuildRequires:  telepathy-glib-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq

%description
A VNC Server for GNOME

%lang_package
%prep
%setup
translation-update-upstream

%build
%configure\
    --libexecdir=%{_libexecdir}/vino \
    --enable-avahi \
    --enable-gnome-keyring \
    --enable-http-server=yes
%__make %{?jobs:-j%jobs}

%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
%suse_update_desktop_file vino-server
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%post
%desktop_database_post

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%postun
%desktop_database_postun

%files -f %{name}.lst
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%defattr (-, root, root)
%{_bindir}/vino-preferences
%{_bindir}/vino-passwd
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.Vino.service
%{_datadir}/vino
%dir %{_datadir}/telepathy/
%dir %{_datadir}/telepathy/clients/
%{_datadir}/telepathy/clients/Vino.client
%{_sysconfdir}/xdg/autostart/vino-server.desktop
%{_libexecdir}/vino

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by