File vinagre.spec of Package vinagre
#
# spec file for package vinagre
#
# 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: vinagre
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gconf2-devel
BuildRequires: gdbm-devel
BuildRequires: gnome-doc-utils-devel
BuildRequires: gnome-panel-devel
BuildRequires: gtk-vnc-devel
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: libavahi-gobject-devel
BuildRequires: libgnome-keyring-devel
BuildRequires: telepathy-glib-devel
BuildRequires: vte-devel
BuildRequires: update-desktop-files
Summary: VNC client for GNOME
Version: 2.30.3
Release: 2
License: GPLv2+
Group: Productivity/Networking/Other
Source0: %{name}-%{version}.tar.bz2
Url: http://www.gnome.org/projects/vinagre/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Recommends: %{name}-lang
# For rdp support
Recommends: rdesktop
%gconf_schemas_prereq
%description
Vinagre is a VNC client for GNOME that supports connecting to multiple
machines, browsing for VNC servers via avahi and password storage in
gnome-keyring.
%package devel
License: GPLv2+
Summary: VNC client for GNOME - Development Files
Group: Productivity/Networking/Remote Desktop
Requires: %{name} = %{version}
Requires: gtk2-devel
Requires: libxml2-devel
%description devel
Vinagre is a VNC client for GNOME that supports connecting to multiple
machines, browsing for VNC servers via avahi and password storage in
gnome-keyring.
This packages contains the development files to create plugins for vinagre.
%lang_package
%prep
%setup -q
%build
%configure \
--disable-static \
--disable-scrollkeeper \
--enable-avahi \
--enable-ssh
%__make %{?jobs:-j%jobs}
%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file vinagre
%suse_update_desktop_file vinagre-file
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%pre -f %{name}.schemas_pre
%post
%desktop_database_post
%icon_theme_cache_post
%mime_database_post
%preun -f %{name}.schemas_preun
%postun
%desktop_database_postun
%icon_theme_cache_postun
%mime_database_postun
%posttrans -f %{name}.schemas_posttrans
%files -f %{name}.schemas_list
%defattr(-, root, root)
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/%{name}/
%doc %{_datadir}/omf/%{name}/%{name}-C.omf
%{_bindir}/*
%{_datadir}/applications/*
%doc %{_datadir}/doc/vinagre
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.Vinagre.service
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/mime/packages/*
%{_datadir}/telepathy/clients/Vinagre.client
%{_datadir}/vinagre
%{_datadir}/vinagre-1
%{_libdir}/bonobo/servers/*.server
%{_libdir}/vinagre-1
%{_libexecdir}/vinagre-applet
%{_mandir}/man1/*.1.gz
# Own directories that are not owned by anything else
%dir %{_datadir}/telepathy
%dir %{_datadir}/telepathy/clients
%files devel
%defattr(-, root, root)
%{_includedir}/vinagre-1.0
%{_libdir}/pkgconfig/*.pc
%files lang -f %{name}.lang
%changelog