File empathy.spec of Package empathy

#
# spec file for package empathy (Version 2.24.1)
#
# Copyright (c) 2008 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:           empathy
BuildRequires:  gnome-common
BuildRequires:  gtk2-devel >= 2.12
BuildRequires:  glib2-devel >= 2.15.5
BuildRequires:  libglade2-devel
BuildRequires:  evolution-data-server-devel
BuildRequires:  gnome-panel-devel >= 2.10.0
BuildRequires:  telepathy-mission-control-devel >= 4.61
BuildRequires:  telepathy-glib-devel >= 0.7.7
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  gnome-doc-utils-devel >= 0.3.2
BuildRequires:  update-desktop-files
BuildRequires:  python-gtk-devel
BuildRequires:  python-xml
Url:            http://live.gnome.org/Empathy
License:        GPL v2 or later
Group:          Productivity/Networking/Instant Messenger
AutoReqProv:    on
Version:        2.24.1
Release:        1
Summary:        Empathy GNOME Instant Messenger
Source:         %{name}-%{version}.tar.bz2
Patch1:         lockdown.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       telepathy-stream-engine
Requires:       telepathy-gabble
Requires:       telepathy-haze
Requires:       telepathy-salut
Requires:       %{name}-lang = %{version}
%gconf_schemas_prereq
%if 0%{?suse_version} > 1020
BuildRequires:  fdupes
%endif

%description
Empathy is the GNOME Instant Messenger application. It uses Telepathy
and Nokia's Mission Control, and support a wide variety or services.



Authors:
--------
    Mikael Hallendal <micke@imendio.com>
    Richard Hult <richard@imendio.com>
    Martyn Russell <martyn@gnome.org>
    Xavier Claessens <xclaesse@gmail.com>

%package devel
License:        GPL v2 or later
Requires:       %{name} = %{version}-%{release}
Requires:       glib2-devel
Requires:       libglade2-devel, gtk2-devel
Requires:       telepathy-mission-control-devel >= 4.53
Requires:       libxml2-devel, libtelepathy-devel >= 0.3.1
Summary:        Empathy IM Application Framework
Group:          Development/Libraries/GNOME

%description devel
Empathy consists of a rich set of reusable instant messaging widgets,
and a GNOME client using those widgets. It uses Telepathy and Nokia's
Mission Control, and reuses Gossip's UI.



Authors:
--------
    Mikael Hallendal <micke@imendio.com>
    Richard Hult <richard@imendio.com>
    Martyn Russell <martyn@gnome.org>
    Xavier Claessens <xclaesse@gmail.com>

%lang_package
%prep
%setup -q -n %{name}-%{version}
%patch1 -p0

%build
#gnome-autogen.sh
%configure --disable-static --with-pic --with-compile-warnings=yes --enable-voip --enable-python=yes\
	--disable-scrollkeeper
make %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -f %{_datadir}/applications/emapthy.desktop
rm -f ./data/empathy.desktop
rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.*a $RPM_BUILD_ROOT%{_libdir}/*.la
%if 0%{?suse_version} > 1020
# create symlinks for man pages
%fdupes -s $RPM_BUILD_ROOT/%_mandir
# create hardlinks for the rest
%fdupes $RPM_BUILD_ROOT
%endif
%suse_update_desktop_file -i empathy Internet
%find_gconf_schemas
%find_lang %name

%pre -f %{name}.schemas_pre

%preun -f %{name}.schemas_preun
%posttrans -f %{name}.schemas_posttrans

%post -p /sbin/ldconfig  

%postun -p /sbin/ldconfig  

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc README TODO
%{_bindir}/*
%{_libdir}/libempathy*.so.*
%{_libdir}/bonobo/servers/*
%{_libdir}/megaphone-applet
%{_libdir}/nothere-applet
%{py_sitedir}/empathy*.so
#%{_datadir}/applications/*.desktop
%{_datadir}/icons/*
%{_datadir}/applications/*
%{_datadir}/empathy/
%{_datadir}/gtk-doc/
%{_datadir}/mission-control/
%{_datadir}/omf/empathy/
%{_mandir}/man1/*

%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libempathy*.so

%files lang -f %{name}.lang

%changelog
* Tue Oct 21 2008 mboman@suse.de
- Update to version 2.24.1:
  + Fixed bgo#544029, empathy's configure.ac doesn't detect python 2.6
  + Fixed bgo#553066, Some strings are not translatable in megaphone-applet
  + Fixed bgo#554284, Bad email link
  + Translation updates
* Tue Sep 30 2008 mboman@suse.de
- Update to version 2.24.0:
  + Fix for GTK+ adjustment policy enforcement
  + Bugs fixed: bgo#548668, bgo#550652
  + Translation updates
* Mon Sep 22 2008 gburt@suse.de
- Add gconf preferences to allow disabling and locking down
  logging, custom away messages, and adding new contacts, in
  support of fate#3126
* Fri Sep 12 2008 maw@suse.de
- Update to version 2.23.92:
  + Add a menu item in chat window to set the room as favorite
  + Make Chat the default in New Conversation… dialog
  + Give Chat and Call accelerators in New Conversation dialog
  + Bugs fixed: bgo#546568, bgo#548578, bgo#548632, bgo#548693,
  bgo#548709, bgo#549002, bgo#549280, bgo#549545, bgo#550556,
  bgo#551096, bgo#551113, and bgo#504154
  + Updated translations.
* Mon Aug 18 2008 hfiguiere@suse.de
- Upgrade to 2.23.90
  * Do not display MSN Haze if butterfly is installed (Xavier Claessens).
  * If display name of the selected account changes, update the label.
  (Xavier Claessens).
  * If there is no account configured, accounts dialog directly propose
  to add an account (Xavier Claessens).
  * Add QQ profile and icons (Xavier Claessens).
  * Add gadugadu profile and icons (Xavier Claessens).
  * Show the main window by default on first run. (Xavier Claessens).
  * Use a GtkMessageDialog instead of GtkDialog for remove confirmation
  dialog of contact/group. (Xavier Claessens).
  * bgo#529084, going offline then coming back leaves chat text input
  unsensitive (Xavier Claessens)
  * bgo#540356, Problem with NetworkManager interaction (Xavier Claessens)
  * bgo#547326, A sentence is too big without pauses (fpeters)
* Fri Aug 08 2008 hfiguiere@suse.de
- Upgrade to 2.23.6
  * new versioning for GNOME inclusion
  * bgo #462880, Can't register a new account on Jabber servers (Xavier Claessens)
  * bgo #486801, Unable to rename the account (change the account name) (Xavier Claessens)
  * bgo #544964, Button "Add Gruop" not translatable (Milo Casagrande)
  * bgo #546154, translation issues (Xavier Claessens)
  * bgo #546218, Bad message when a call is refused (Xavier Claessens)
  * Remove empathy-accounts binary, it is replaced by empathy --accounts (Xavier Claessens).
  * Added empathy-properties desktop file to configure MC accounts from the
  GNOME panel -> System -> Preferences. (Jonny Lamb)
  * Replace the preview button by a cancel button when creating a new account (Xavier Claessens).
  * Move event code from EmpathyStatusIcon to EmpathyEventManager (Xavier Claessens).
  * Make the icon blink in the contact list when a contact has an event like new message,
  incoming call, etc. (Xavier Claessens)
* Mon Aug 04 2008 hfiguiere@suse.de
- Requires several telepathy connectors at runtime.
* Thu Jul 17 2008 hfiguiere@suse.de
- Upgrade to 0.23.4
  * This is a new branch, with many improvements and bug fixes.
  See NEWS and ChangeLog for all the details.
- Remove groupwise.profile from package as it is in the tarball.
* Thu Jun 12 2008 crrodriguez@suse.de
- disable unusable static libraries
* Wed May 07 2008 vuntz@suse.de
- Build the python bindings. Add python-gtk-devel to buildrequires
  for this.
* Fri Apr 04 2008 hfiguiere@suse.de
- Initial checkin
openSUSE Build Service is sponsored by