File empathy.spec of Package empathy

#
# spec file for package empathy
#
# 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/
#



Name:           empathy
Version:        3.2.1.1
Release:        1
# FIXME: add telepathy-fastream BuildRequires when upstream is happy with it (ie, not experimental anymore)
License:        GPLv2+
Summary:        Instant Messenger Client for GNOME, based on Telepathy
Url:            http://live.gnome.org/Empathy
Group:          Productivity/Networking/Instant Messenger
Source:         http://download.gnome.org/sources/empathy/3.2/%{name}-%{version}.tar.bz2
Source99:       %{name}-rpmlintrc
BuildRequires:  fdupes
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  intltool
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(champlain-gtk-0.12)
BuildRequires:  pkgconfig(cheese-gtk)
BuildRequires:  pkgconfig(clutter-1.0) >= 1.7.14
BuildRequires:  pkgconfig(clutter-gtk-1.0)
BuildRequires:  pkgconfig(enchant)
BuildRequires:  pkgconfig(folks-telepathy) >= 0.6.2
BuildRequires:  pkgconfig(gcr-3)
BuildRequires:  pkgconfig(geoclue)
BuildRequires:  pkgconfig(geocode-glib)
BuildRequires:  pkgconfig(gnome-keyring-1)
BuildRequires:  pkgconfig(goa-1.0)
BuildRequires:  pkgconfig(gsettings-desktop-schemas)
BuildRequires:  pkgconfig(gstreamer-0.10)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.0.2
BuildRequires:  pkgconfig(gudev-1.0)
BuildRequires:  pkgconfig(iso-codes)
BuildRequires:  pkgconfig(libcanberra-gtk3)
BuildRequires:  pkgconfig(libebook-1.2)
BuildRequires:  pkgconfig(libnm-glib)
BuildRequires:  pkgconfig(libnotify) >= 0.7.0
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(libpulse-mainloop-glib)
BuildRequires:  pkgconfig(mission-control-plugins)
BuildRequires:  pkgconfig(nautilus-sendto)
BuildRequires:  pkgconfig(telepathy-farsight) >= 0.0.14
BuildRequires:  pkgconfig(telepathy-glib) >= 0.16.0
BuildRequires:  pkgconfig(telepathy-logger-0.2) >= 0.2.10
BuildRequires:  pkgconfig(webkitgtk-3.0) >= 1.3.13
Requires:       iso-codes
Requires:       telepathy-gabble
Requires:       telepathy-logger
Requires:       telepathy-mission-control
Requires:       telepathy-salut
Recommends:     %{name}-lang
Recommends:     geoclue
Recommends:     telepathy-butterfly
Recommends:     telepathy-haze
Recommends:     telepathy-idle
# The applets and the libraries have been removed
Obsoletes:      empathy-devel < 2.29.1
Obsoletes:      gnome-applets-empathy < 2.29.1
Obsoletes:      python-empathy < 2.29.1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires

%description
Empathy is a messaging program which supports text, voice, and video
chat and file transfers over many different protocols. You can tell it
about your accounts on all those services and do all your chatting
within one application.

Empathy uses Telepathy for protocol support and has a user interface
based on Gossip. Empathy is the default chat client in current
versions of GNOME, making it easier for other GNOME applications to
integrate collaboration functionality using Telepathy.

%package -n nautilus-sendto-plugin-empathy
License:        GPLv2+
Summary:        Empathy plugin for nautilus-sendto
Group:          Productivity/File utilities
Requires:       %{name} = %{version}
Requires:       nautilus-sendto
Supplements:    packageand(empathy:nautilus-sendto)

%description -n nautilus-sendto-plugin-empathy
This package provides the functionality to the Nautilus file browser to
send files over instant messaging protocols via Empathy.

%package -n telepathy-mission-control-plugin-goa
License:        GPLv2+
Summary:        Telepathy Mission Control Plugin to use data from GNOME Online Accounts
Group:          Productivity/Networking/Instant Messenger
Requires:       gnome-online-accounts
Requires:       telepathy-mission-control
Supplements:    packageand(telepathy-mission-control:gnome-online-accounts)

%description -n telepathy-mission-control-plugin-goa
This plugin for Mission Control provides integration with the GNOME
Online Accounts service. Mission Control will automatically create a
Telepathy account for GNOME Online Accounts configured with the "Chat"
feature enabled.

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

%build
%configure      --disable-static \
                --with-pic \
                --disable-scrollkeeper \
                --enable-goa
make %{?_smp_mflags} V=1

%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
find %{buildroot} -type f -name "*.la" -delete -print
# Rename im-xmpp icon to im-jabber, as used by empathy (fixed upstream already)
for icon in `ls %{buildroot}%{_datadir}/empathy/icons/hicolor/*/apps/im-xmpp.*`; do
    mv $icon `echo $icon | sed "s,im-xmpp,im-jabber,g"`
done
%suse_update_desktop_file -i -N "Empathy" -G "Instant Messenger" empathy InstantMessaging
# DesktopSettings is okay upstream, but it makes the item appear misplaced with our menu structure
grep -q DesktopSettings %{buildroot}%{_datadir}/applications/empathy-accounts.desktop
# Hide empathy-accounts from the desktop menu
%suse_update_desktop_file -u empathy-accounts
%find_lang %{name} %{?no_lang_C}
# create symlinks for man pages
%fdupes -s %{buildroot}%{_mandir}
# create hardlinks for the rest
%fdupes %{buildroot}

%post
%glib2_gsettings_schema_post
%desktop_database_post
%icon_theme_cache_post

%postun
%glib2_gsettings_schema_postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)
%doc README TODO
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%{_bindir}/empathy
%{_bindir}/empathy-accounts
%{_bindir}/empathy-debugger
%{_datadir}/icons/hicolor/*/apps/empathy.*
%{_datadir}/applications/empathy.desktop
%{_datadir}/applications/empathy-accounts.desktop
%{_datadir}/dbus-1/services/*.service
%{_datadir}/empathy/
%{_datadir}/GConf/gsettings/empathy.convert
%{_datadir}/glib-2.0/schemas/org.gnome.Empathy.gschema.xml
%{_datadir}/telepathy/clients/*.client
%{_libexecdir}/empathy-auth-client
%{_libexecdir}/empathy-av
%{_libexecdir}/empathy-chat
%{_mandir}/man1/empathy.1%{?ext_man}
%{_mandir}/man1/empathy-accounts.1%{?ext_man}
%dir %{_datadir}/telepathy
%dir %{_datadir}/telepathy/clients

%files -n nautilus-sendto-plugin-empathy
%defattr(-, root, root)
%{_libdir}/nautilus-sendto/plugins/libnstempathy.so

%files -n telepathy-mission-control-plugin-goa
%defattr(-, root, root)
%{_libdir}/mission-control-plugins.0/mcp-account-manager-goa.so

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by