2007-05-21 04:39:49 +02:00
#
2011-02-14 01:10:32 +01:00
# spec file for package pidgin
2007-05-21 04:39:49 +02:00
#
2011-02-14 01:10:32 +01:00
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
2007-05-21 04:39:49 +02:00
#
2008-08-23 01:56:49 +02:00
# 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.
2007-05-21 04:39:49 +02:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
2010-11-10 21:59:34 +01:00
%if 0%{?suse_version} > 1010 && 0%{?suse_version} < 1140
%define with_mono 1
%else
%define with_mono 0
%endif
2008-03-03 18:05:36 +01:00
2007-05-21 04:39:49 +02:00
Name : pidgin
2011-07-08 09:38:03 +02:00
Summary : Multiprotocol Instant Messaging Client
2011-08-22 15:42:38 +02:00
Version : 2.10.0
2011-08-22 15:42:51 +02:00
Release : 1
2009-12-04 16:07:44 +01:00
License : GPLv2+
2007-07-24 01:33:28 +02:00
Group : Productivity/Networking/Instant Messenger
2007-09-14 00:47:58 +02:00
Url : http://www.pidgin.im/
2009-02-08 02:51:45 +01:00
Source : http://downloads.sourceforge.net/pidgin/%{name} -%{version} .tar.bz2
2009-12-04 16:07:44 +01:00
Source1 : pidgin-NLD-smiley-theme.tar.bz2
Source2 : pidgin-Tango-smiley-theme.tar.bz2
2011-07-08 09:38:03 +02:00
Source3 : pidgin-prefs.xml
2007-05-21 04:39:49 +02:00
Patch1 : pidgin-gnome-keyring.patch
Patch3 : pidgin-nonblock-common.patch
Patch4 : pidgin-nonblock-gwim.patch
Patch5 : pidgin-nonblock-common2.patch
2011-08-22 15:42:38 +02:00
2010-08-27 14:55:53 +02:00
# PATCH-FIX-UPSTREAM pidgin-mono-buildfix.patch http://developer.pidgin.im/ticket/12506 dimstar@opensuse.org -- Fix build with mono plugin loader; missing include statements.
Patch14 : pidgin-mono-buildfix.patch
2011-02-14 01:10:26 +01:00
# PATCH-FIX-OPENSUSE pidgin-fix-perl-build.patch vuntz@opensuse.org -- Revert http://developer.pidgin.im/viewmtn/revision/info/f32151852a00fb5abd3fdccdd8df2419031666de as it breaks the build
Patch15 : pidgin-fix-perl-build.patch
2011-06-17 12:17:01 +02:00
# PATCH-FIX-UPSTREAM pidgin-nm09-more.patch vuntz@opensuse.org -- Fix to use new NM signal name http://developer.pidgin.im/ticket/13859
Patch16 : pidgin-nm09-more.patch
2007-05-21 04:39:49 +02:00
# Can use external libzephyr
2008-08-29 01:41:51 +02:00
BuildRequires : cyrus-sasl-devel
BuildRequires : dbus-1-devel
BuildRequires : doxygen
BuildRequires : evolution-data-server-devel
2011-11-28 12:55:41 +01:00
BuildRequires : libtool
2010-08-27 14:55:53 +02:00
%if %suse_version > 1110
2009-09-01 22:16:11 +02:00
BuildRequires : farsight2-devel
2009-12-04 16:07:44 +01:00
%endif
2011-06-17 12:17:01 +02:00
BuildRequires : gconf2-devel
2009-12-04 16:07:44 +01:00
%if %suse_version < 1020
BuildRequires : gnome-icon-theme
%endif
2008-08-29 01:41:51 +02:00
BuildRequires : graphviz
BuildRequires : gtk-doc
BuildRequires : gtkspell-devel
BuildRequires : intltool
2009-09-01 22:16:11 +02:00
BuildRequires : libidn-devel
2010-08-27 14:55:53 +02:00
%if %{suse_version} > 1030
2008-08-29 01:41:51 +02:00
BuildRequires : libgadu-devel
2009-12-04 16:07:44 +01:00
%endif
2010-01-18 15:01:41 +01:00
# There is no way to discriminate openSUSE 11.1 and SLE11. That is why we recognize openSUSE 11.1 as SLE.
# Ugly, but there is no other way. (bnc#566286#c17).
%if %suse_version == 1110
%define building_for_sle_ge_11 1
%else
%define building_for_sle_ge_11 0
%endif
# gnome-keyring support summary (bnc#566286):
# SLE10, 11.0, 11.1: patch present and broken (does nothing)
2010-08-27 14:55:53 +02:00
# SLE11: patch present and active (bnc#569025)
2010-01-18 15:01:41 +01:00
# 11.2: patch was present and active removed by an opdate
# 11.3 and above: patch not applied
# For openSUSE, it's better to avoid this patch:
# + does not work well outside GNOME
# - passwords are stored in readable form
%if 0%{?suse_version} > 1120
%if 0%{?building_for_sle_ge_11}
BuildRequires : libgnome-keyring-devel
%endif
%else
%if 0%{?building_for_sle_ge_11}
BuildRequires : gnome-keyring-devel
%endif
%endif
2008-08-29 01:41:51 +02:00
BuildRequires : libstdc++-devel
BuildRequires : libxml2-devel
BuildRequires : libxslt
2009-12-04 16:07:44 +01:00
%if %suse_version >= 1030
# Versions in older SUSE products are too old:
2008-08-29 01:41:51 +02:00
BuildRequires : meanwhile-devel
2009-12-04 16:07:44 +01:00
%endif
2008-08-29 01:41:51 +02:00
BuildRequires : mono-devel
BuildRequires : mozilla-nspr-devel
BuildRequires : mozilla-nss-devel
BuildRequires : ncurses-devel
2009-12-04 16:07:44 +01:00
%if %suse_version > 1020
2008-08-29 01:41:51 +02:00
BuildRequires : openssl-certs
2009-12-04 16:07:44 +01:00
%endif
%if %suse_version > 1030
%if %suse_version < 1120
# missing in silc-toolkit-devel:
BuildRequires : pam-devel
%endif
%endif
2008-08-29 01:41:51 +02:00
BuildRequires : python
BuildRequires : startup-notification-devel
BuildRequires : tk-devel
2009-12-04 16:07:44 +01:00
%if %suse_version > 1110
2009-03-18 01:37:34 +01:00
BuildRequires : translation-update-upstream
2009-12-04 16:07:44 +01:00
%endif
2008-08-29 01:41:51 +02:00
BuildRequires : update-desktop-files
2007-05-21 04:39:49 +02:00
BuildRequires : NetworkManager-devel
2010-08-27 14:55:53 +02:00
%if %suse_version > 1030
2009-09-01 22:16:11 +02:00
BuildRequires : gstreamer-0_10-devel
BuildRequires : gstreamer-0_10-plugins-base-devel
2009-12-04 16:07:44 +01:00
%else
BuildRequires : gstreamer010-devel
BuildRequires : gstreamer010-plugins-base-devel
%endif
%if %suse_version > 1020
2007-05-21 04:39:49 +02:00
BuildRequires : dbus-1-glib-devel
2008-03-03 18:05:36 +01:00
BuildRequires : silc-toolkit-devel
2009-12-04 16:07:44 +01:00
%else
BuildRequires : dbus-1-devel dbus-1-glib
%endif
%if %suse_version > 1020
BuildRequires : fdupes
%endif
BuildRequires : libnotify-devel
2010-08-27 14:55:53 +02:00
%if %suse_version > 1030
2008-03-03 18:05:36 +01:00
BuildRequires : libavahi-glib-devel
%else
2009-12-04 16:07:44 +01:00
BuildRequires : avahi-devel avahi-glib
2008-03-03 18:05:36 +01:00
%endif
2009-12-08 12:04:47 +01:00
%if %suse_version > 1020
2008-08-23 01:56:49 +02:00
Requires : openssl-certs
2009-12-08 12:04:47 +01:00
%endif
2009-02-08 02:51:45 +01:00
Requires : perl-base = %{perl_version}
2007-05-21 04:39:49 +02:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2010-01-18 15:01:41 +01:00
# Existed before 10.3 and SLED10 before SP2:
2007-09-12 17:01:02 +02:00
Obsoletes : gaim <= 1.5.0
# Has never been in SuSE:
Obsoletes : gaim-applet
# Was only in the Build Service after 10.2:
Obsoletes : gaim-unstable < 2.0.0
Provides : gaim
2009-12-04 16:07:44 +01:00
%if %suse_version <= 1021
%define _prefix /opt/gnome
%define _libdir %{_prefix}/%{_lib}
%define _datadir %{_prefix}/share
%define _sysconfdir /etc%_prefix
BuildRequires : gconf2-rpm-macros
%endif
2007-05-21 04:39:49 +02:00
%gconf_schemas_prereq
%description
2011-07-08 09:38:03 +02:00
Pidgin is a chat program which lets you log in to accounts on multiple
chat networks simultaneously.
2007-05-21 04:39:49 +02:00
2011-07-08 09:38:03 +02:00
Pidgin is compatible with the following chat networks out of the box:
AIM, ICQ, Google Talk, Jabber/XMPP, MSN Messenger, Yahoo!, Bonjour,
Gadu-Gadu, IRC, Novell GroupWise Messenger, QQ, Lotus Sametime, SILC,
SIMPLE, MXit, MySpaceIM, and Zephyr. It can support many more with
plugins.
2007-05-21 04:39:49 +02:00
%package devel
2009-12-04 16:07:44 +01:00
License : GPLv2+
2007-07-30 23:51:36 +02:00
#'
2007-05-21 04:39:49 +02:00
Summary : Development Headers, Documentation, and Libraries for Pidgin
2007-07-24 01:33:28 +02:00
Group : Productivity/Networking/Instant Messenger
2007-05-21 04:39:49 +02:00
Requires : %{name} = %{version} glib2-devel gtk2-devel libpurple-devel = %{version}
2007-09-14 00:47:58 +02:00
2007-05-21 04:39:49 +02:00
%package -n libpurple
2009-12-04 16:07:44 +01:00
License : GPLv2+
2011-07-08 09:38:03 +02:00
Summary : GLib-based Instant Messenger Library
Group : System/Libraries
2009-02-08 02:51:45 +01:00
# Not really required, but standard Jabber accounts require it, if compiled with SASL support.
2007-05-21 04:39:49 +02:00
Requires : cyrus-sasl-digestmd5 cyrus-sasl-plain
2007-10-03 01:08:35 +02:00
# Needed for purple-url-handler:
Requires : dbus-1-python
2009-02-08 02:51:45 +01:00
Requires : perl = %{perl_version}
2009-12-08 12:04:47 +01:00
%if %suse_version > 1020
2009-03-04 15:09:03 +01:00
Requires : openssl-certs
2009-12-08 12:04:47 +01:00
%endif
2011-02-14 01:10:26 +01:00
%if %suse_version > 1030
Recommends: libpurple-lang
%endif
2007-09-14 00:47:58 +02:00
2007-05-21 04:39:49 +02:00
%package -n libpurple-devel
2009-12-04 16:07:44 +01:00
License : GPLv2+
2007-05-21 04:39:49 +02:00
Summary : Development Headers, Documentation, and Libraries for libpurple
2007-07-24 01:33:28 +02:00
Group : Productivity/Networking/Instant Messenger
2010-01-18 15:01:41 +01:00
Requires : libpurple = %{version} NetworkManager-devel NetworkManager-glib glib2-devel libxml2-devel
%if 0%{?suse_version} > 1120
%if 0%{?building_for_sle_ge_11}
Requires : libgnome-keyring-devel
%endif
%else
%if 0%{?building_for_sle_ge_11}
Requires : gnome-keyring-devel
%endif
%endif
2007-05-21 04:39:49 +02:00
Requires : pkg-config
2008-05-08 00:45:03 +02:00
Provides : gaim-devel = %{version}
2007-07-30 23:51:36 +02:00
Obsoletes : gaim-devel <= 1.5.0
2008-05-08 00:45:03 +02:00
Provides : gaim-unstable-devel = %{version}
2007-09-12 17:01:02 +02:00
Obsoletes : gaim-unstable-devel < 2.0.0
2010-08-27 14:55:53 +02:00
2009-12-04 16:07:44 +01:00
%if %suse_version >= 1030
2007-09-14 00:47:58 +02:00
2007-05-21 04:39:49 +02:00
%package -n libpurple-meanwhile
2009-12-04 16:07:44 +01:00
License : GPLv2+
2007-05-21 04:39:49 +02:00
Summary : Lotus Sametime Plugin for Pidgin Using the Meanwhile Library
2007-07-24 01:33:28 +02:00
Group : Productivity/Networking/Instant Messenger
2007-05-21 04:39:49 +02:00
Requires : libpurple = %{version}
2009-12-04 16:07:44 +01:00
%endif
2007-09-14 00:47:58 +02:00
2010-08-27 14:55:53 +02:00
%package evolution
License : GPLv2+
Summary : Evolution integration plugin for Pidgin
Group : Productivity/Networking/Instant Messenger
Requires : %{name} = %{version}
Supplements: packageand(%{name} :evolution-data-server)
2010-11-10 21:59:34 +01:00
%if %with_mono
2010-11-10 21:59:43 +01:00
2007-05-21 04:39:49 +02:00
%package -n libpurple-mono
2009-12-04 16:07:44 +01:00
License : GPLv2+
2007-05-21 04:39:49 +02:00
Summary : Mono .NET Plugin Support for Pidgin
2007-07-24 01:33:28 +02:00
Group : Productivity/Networking/Instant Messenger
2007-05-21 04:39:49 +02:00
Requires : libpurple = %{version}
2010-11-10 21:59:34 +01:00
%endif
2007-09-14 00:47:58 +02:00
2009-08-17 14:53:02 +02:00
%package -n libpurple-tcl
2009-12-04 16:07:44 +01:00
License : GPLv2+
2009-08-17 14:53:02 +02:00
Summary : TCL Plugin Support for Pidgin
Group : Productivity/Networking/Instant Messenger
Requires : libpurple = %{version}
Supplements: packageand(libpurple:tcl)
2007-05-21 04:39:49 +02:00
%package -n finch
2009-12-04 16:07:44 +01:00
License : GPLv2+
2007-05-21 04:39:49 +02:00
Summary : Text-Based User Interface for Pidgin Instant Messaging Client
2007-07-24 01:33:28 +02:00
Group : Productivity/Networking/Instant Messenger
2007-05-21 04:39:49 +02:00
Requires : libpurple = %{version}
2007-09-12 17:01:02 +02:00
Obsoletes : gaim-unstable-text < 2.0.0
Provides : gaim-unstable-text
2007-09-14 00:47:58 +02:00
2007-05-21 04:39:49 +02:00
%package -n finch-devel
2009-12-04 16:07:44 +01:00
License : GPLv2+
2007-05-21 04:39:49 +02:00
Summary : Headers etc. for finch Stuffs
2007-07-24 01:33:28 +02:00
Group : Productivity/Networking/Instant Messenger
2007-05-31 21:10:32 +02:00
Requires : finch = %{version} glib2-devel glibc-devel libpurple-devel = %{version} ncurses-devel
2007-05-21 04:39:49 +02:00
Requires : pkg-config
Obsoletes : gaim-unstable-text-devel
2011-07-08 09:38:03 +02:00
%if 0%{?suse_version} > 1140
2011-07-08 09:38:18 +02:00
2011-07-08 09:38:03 +02:00
%package -n libpurple-branding-upstream
License : GPLv2+
Summary : GLib-based Instant Messenger Library -- Upstream default configuration
Group : System/Libraries
Requires : libpurple = %{version}
Provides : libpurple-branding = %{version}
Conflicts : otherproviders(libpurple-branding)
Supplements: packageand(libpurple:branding-upstream)
# It also provides pidgin branding
Provides : pidgin-branding-upstream = %{version}
Provides : pidgin-branding = %{version}
Conflicts : otherproviders(pidgin-branding)
Supplements: packageand(pidgin:branding-upstream)
BuildArch : noarch
#BRAND: Provides /etc/purple/prefs.xml, the default configuration for
#BRAND: libpurple, and libpurple-based clients.
%endif
2007-05-21 04:39:49 +02:00
%description devel
The pidgin-devel package contains the header files, developer
documentation, and libraries required for development of Pidgin scripts
and plugins.
%description -n libpurple
2011-07-08 09:38:03 +02:00
libpurple is a library intended to be used by programmers seeking
to write an IM client that connects to many IM networks.
2007-05-21 04:39:49 +02:00
2011-07-08 09:38:03 +02:00
libpurple is compatible with the following chat networks out of the box:
AIM, ICQ, Google Talk, Jabber/XMPP, MSN Messenger, Yahoo!, Bonjour,
Gadu-Gadu, IRC, Novell GroupWise Messenger, QQ, Lotus Sametime, SILC,
SIMPLE, MXit, MySpaceIM, and Zephyr. It can support many more with
plugins.
2007-05-21 04:39:49 +02:00
%description -n libpurple-devel
The libpurple-devel package contains the header files, developer
documentation, and libraries required for development of libpurple
based instant messaging clients or plugins for any libpurple based
client.
2009-12-04 16:07:44 +01:00
%if %suse_version >= 1030
2007-05-21 04:39:49 +02:00
%description -n libpurple-meanwhile
Lotus Sametime plugin for Pidgin using the Meanwhile library.
2009-12-04 16:07:44 +01:00
%endif
2007-05-21 04:39:49 +02:00
2010-08-27 14:55:53 +02:00
%description evolution
Evolution integration plugin for Pidgin
2010-11-10 21:59:34 +01:00
%if %with_mono
2010-11-10 21:59:43 +01:00
2007-05-21 04:39:49 +02:00
%description -n libpurple-mono
2009-08-17 14:53:02 +02:00
Mono plugin loader for Pidgin. This package will allow you to write or
2007-05-21 04:39:49 +02:00
use Pidgin plugins written in the .NET programming language.
2010-11-10 21:59:34 +01:00
%endif
2007-05-21 04:39:49 +02:00
2009-08-17 14:53:02 +02:00
%description -n libpurple-tcl
TCL plugin loader for Pidgin. This package will allow you to write or
use Pidgin plugins written in the TCL programming language.
2007-05-21 04:39:49 +02:00
2009-08-17 14:53:02 +02:00
%description -n finch
2007-05-21 04:39:49 +02:00
A text-based user interface for using libpurple. This can be run from
a standard text console or from a terminal within X Windows. It uses
ncurses and our homegrown gnt library for drawing windows and text.
%description -n finch-devel
The finch-devel package contains the header files, developer
documentation, and libraries required for development of Finch scripts
and plugins.
2011-07-08 09:38:03 +02:00
%if 0%{?suse_version} > 1140
2011-07-08 09:38:18 +02:00
2011-07-08 09:38:03 +02:00
%description -n libpurple-branding-upstream
libpurple is a library intended to be used by programmers seeking
to write an IM client that connects to many IM networks.
libpurple is compatible with the following chat networks out of the box:
AIM, ICQ, Google Talk, Jabber/XMPP, MSN Messenger, Yahoo!, Bonjour,
Gadu-Gadu, IRC, Novell GroupWise Messenger, QQ, Lotus Sametime, SILC,
SIMPLE, MXit, MySpaceIM, and Zephyr. It can support many more with
plugins.
This package provides the openSUSE default configuration for Pidgin.
%endif
2009-12-04 16:07:44 +01:00
%if %suse_version > 1030
2007-08-15 20:35:26 +02:00
%lang_package -n libpurple
2009-12-04 16:07:44 +01:00
%endif
2007-05-21 04:39:49 +02:00
%prep
2009-12-04 16:07:44 +01:00
%setup -q -a1 -a2
%if %suse_version > 1110
2009-03-18 01:37:34 +01:00
translation-update-upstream
2009-12-04 16:07:44 +01:00
%endif
2010-01-18 15:01:41 +01:00
%if 0%{?building_for_sle_ge_11}
2007-05-21 04:39:49 +02:00
%patch1 -p1
2010-01-18 15:01:41 +01:00
%endif
2007-05-21 04:39:49 +02:00
%patch3 -p1
%patch4 -p1
%patch5 -p1
2010-08-27 14:55:53 +02:00
%patch14 -p1
2011-02-14 01:10:26 +01:00
%patch15 -p1
2011-05-02 16:21:18 +02:00
%patch16 -p1
2007-05-21 04:39:49 +02:00
# Change Myanmar/Myanmar to Myanmar:
rename my_MM my po/my_MM.*
2010-08-27 14:55:53 +02:00
%{__sed} -i " / A L L _ L I N G U A S / s / m y _ M M / m y / " configure.ac
2007-05-21 04:39:49 +02:00
%build
2009-09-01 22:16:11 +02:00
export CFLAGS=" $RPM_OPT_FLAGS - f s t a c k - p r o t e c t o r - f P I C "
export CXXFLAGS=" $RPM_OPT_FLAGS - f s t a c k - p r o t e c t o r - f P I C "
export FFLAGS=" $RPM_OPT_FLAGS - f s t a c k - p r o t e c t o r - f P I C "
2007-05-21 04:39:49 +02:00
export LDFLAGS=" - p i e "
2010-08-27 14:55:53 +02:00
autoreconf -fi
2007-05-21 04:39:49 +02:00
%configure \
--disable-static\
2009-12-04 16:07:44 +01:00
%if %suse_version < 1120
--disable-vv\
%endif
2007-05-21 04:39:49 +02:00
--enable-plugins\
--enable-cyrus-sasl\
2009-12-04 16:07:44 +01:00
--enable-dbus\
2010-11-10 21:59:34 +01:00
%if %with_mono
2009-12-04 16:07:44 +01:00
--enable-mono\
%else
--disable-mono\
%endif
2010-08-27 14:55:53 +02:00
--enable-gevolution\
2009-12-04 16:07:44 +01:00
--enable-gstreamer\
2010-01-18 15:01:41 +01:00
%if 0%{?building_for_sle_ge_11}
2009-12-04 16:07:44 +01:00
--enable-gnome-keyring\
2010-01-18 15:01:41 +01:00
%endif
2009-12-04 16:07:44 +01:00
--enable-nm\
--enable-dbus\
2008-03-03 18:05:36 +01:00
--enable-devhelp\
2009-12-04 16:07:44 +01:00
%if %suse_version < 1030
2010-08-27 14:55:53 +02:00
--disable-meanwhile\
2009-12-04 16:07:44 +01:00
%endif
2009-03-13 16:05:51 +01:00
--with-tclconfig=%{_libdir} \
--with-tkconfig=%{_libdir} \
2008-08-23 01:56:49 +02:00
--with-system-ssl-certs=/etc/ssl/certs
2011-07-06 14:03:36 +02:00
# make sure all subprojects are built with verbose output
export V=1
2009-03-13 16:05:51 +01:00
# Mono bindings sometimes fail with parallel build enabled in pidgin-2.5.5:
#%{__make} %{?jobs:-j%jobs}
%{__make}
2007-05-21 04:39:49 +02:00
%install
2009-02-08 02:51:45 +01:00
%{makeinstall}
2011-07-08 09:38:03 +02:00
install -d %{buildroot} %{_sysconfdir} /purple
%if 0%{?suse_version} > 1140
cp %{SOURCE3} %{buildroot} %{_sysconfdir} /purple/prefs.xml
%endif
2009-09-01 22:16:11 +02:00
%{perl_process_packlist}
2009-02-08 02:51:45 +01:00
%suse_update_desktop_file -N Pidgin -G " I n s t a n t M e s s e n g e r " %{name}
2010-01-18 15:01:41 +01:00
# Provide only upstream emotes in openSUSE >= 11.2 and SLE > 11 (see bnc#569271#c1):
2009-12-08 12:04:47 +01:00
%if %suse_version < 1120
2009-12-04 16:07:44 +01:00
cp -a NLD $RPM_BUILD_ROOT %{_prefix} /share/pixmaps/pidgin/emotes
cp -a Tango $RPM_BUILD_ROOT %{_prefix} /share/pixmaps/pidgin/emotes
2009-12-08 12:04:47 +01:00
%endif
2009-02-08 02:51:45 +01:00
%{__rm} $RPM_BUILD_ROOT %{_libdir} /*.la $RPM_BUILD_ROOT %{_libdir} /*/*.la
2009-09-01 22:16:11 +02:00
%{__rm} -f $RPM_BUILD_ROOT %{perl_archlib} /perllocal.pod
%{__rm} -f $RPM_BUILD_ROOT %{_prefix} /lib/perl*/*/perllocal.pod
2007-05-21 04:39:49 +02:00
# FIXME: Should be nonversioned name:
2009-02-08 02:51:45 +01:00
test -L $RPM_BUILD_ROOT %{_libdir} /purple-2/liboscar.so && %{__rm} $RPM_BUILD_ROOT %{_libdir} /purple-2/liboscar.so
test -L $RPM_BUILD_ROOT %{_libdir} /purple-2/libjabber.so && %{__rm} $RPM_BUILD_ROOT %{_libdir} /purple-2/libjabber.so
2009-09-01 22:16:11 +02:00
test -L $RPM_BUILD_ROOT %{_libdir} /purple-2/libymsg.so && %{__rm} $RPM_BUILD_ROOT %{_libdir} /purple-2/libymsg.so
find $RPM_BUILD_ROOT -type f -name .packlist -exec %{__rm} {} ';'
find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec %{__rm} {} ';'
2011-02-14 01:10:26 +01:00
%find_lang %{name} %{?no_lang_C}
2007-05-21 04:39:49 +02:00
find $RPM_BUILD_ROOT %{_libdir} /purple-2 -xtype f -print | \
2009-02-08 02:51:45 +01:00
%{__sed} " s @ ^ $RPM_BUILD_ROOT @ @ g " | \
%{__grep} -v /libsametime.so | \
%{__grep} -v /mono.so | \
2009-08-17 14:53:02 +02:00
%{__grep} -v /tcl.so | \
2009-02-08 02:51:45 +01:00
%{__grep} -v " . d l l $ " > %{name} -%{version} -purpleplugins
2009-09-01 22:16:11 +02:00
find $RPM_BUILD_ROOT %{_libdir} /pidgin -maxdepth 1 -xtype f -print | \
2010-08-27 14:55:53 +02:00
%{__sed} " s @ ^ $RPM_BUILD_ROOT @ @ g " | \
%{__grep} -v /gevolution.so > %{name} -%{version} -pidginplugins
2009-09-01 22:16:11 +02:00
find $RPM_BUILD_ROOT %{_libdir} /finch -maxdepth 1 -xtype f -print | \
2009-02-08 02:51:45 +01:00
%{__sed} " s @ ^ $RPM_BUILD_ROOT @ @ g " > %{name} -%{version} -finchplugins
2007-05-21 04:39:49 +02:00
%find_gconf_schemas
2009-02-08 02:51:45 +01:00
%{__cat} %{name} .schemas_list %{name} -%{version} -pidginplugins >%{name} .lst
2009-12-04 16:07:44 +01:00
%if %suse_version <= 1030
%{__cat} %{name} .lang >>%{name} -%{version} -purpleplugins
%endif
%if %suse_version > 1020
2007-08-11 17:54:21 +02:00
%fdupes $RPM_BUILD_ROOT
2009-12-04 16:07:44 +01:00
%endif
2007-08-11 17:54:21 +02:00
2007-05-21 04:39:49 +02:00
%clean
2009-02-08 02:51:45 +01:00
%{__rm} -rf $RPM_BUILD_ROOT
2007-05-21 04:39:49 +02:00
%pre -f %{name}.schemas_pre
2009-07-03 12:18:51 +02:00
2007-05-21 04:39:49 +02:00
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
2011-02-14 01:10:26 +01:00
%if 0%{?suse_version} > 1130
2011-02-14 01:10:32 +01:00
2011-02-14 01:10:26 +01:00
%post
%desktop_database_post
%icon_theme_cache_post
%endif
%if 0%{?suse_version} > 1130
2011-02-14 01:10:32 +01:00
2011-02-14 01:10:26 +01:00
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
2007-10-25 02:40:36 +02:00
%post -n libpurple -p /sbin/ldconfig
2007-05-31 21:10:32 +02:00
2007-10-25 02:40:36 +02:00
%postun -n libpurple -p /sbin/ldconfig
2007-05-31 21:10:32 +02:00
2007-10-25 02:40:36 +02:00
%post -n finch -p /sbin/ldconfig
2007-05-31 21:10:32 +02:00
2007-10-25 02:40:36 +02:00
%postun -n finch -p /sbin/ldconfig
2007-05-31 21:10:32 +02:00
2007-05-21 04:39:49 +02:00
%files -f %{name}.lst
%defattr (-,root,root)
%doc AUTHORS COPYING COPYRIGHT ChangeLog NEWS README README.MTN doc/the_penguin.txt
%dir %{_libdir} /pidgin
2009-09-01 22:16:11 +02:00
%{_libdir} /pidgin/perl
2007-05-21 04:39:49 +02:00
%{_bindir} /pidgin
%{_datadir} /pixmaps/pidgin
%{_datadir} /icons/hicolor/*/apps/pidgin.*
%{_datadir} /applications/*.desktop
2009-02-08 02:51:45 +01:00
%{_datadir} /sounds/purple
2007-05-21 04:39:49 +02:00
%doc %{_mandir} /man1/pidgin.*
2009-12-04 16:07:44 +01:00
%if %suse_version < 1020
/var/adm/perl-modules/pidgin
# man3 is not part of gnome-filesystem
%doc %dir %{_mandir} /man3
%endif
2007-05-21 04:39:49 +02:00
%files devel
%defattr (-,root,root)
%{_includedir} /pidgin
%{_libdir} /pkgconfig/pidgin.pc
2009-09-01 22:16:11 +02:00
%doc %{_mandir} /man3/Pidgin.*
2007-08-11 17:54:21 +02:00
2010-08-27 14:55:53 +02:00
%files evolution
%defattr (-, root, root)
%{_libdir} /pidgin/gevolution.so
2007-10-25 02:40:36 +02:00
%files -n libpurple -f %{name}-%{version}-purpleplugins
2007-05-21 04:39:49 +02:00
%defattr (-, root, root)
%doc libpurple/purple-notifications-example
2011-07-08 09:38:03 +02:00
%dir %{_sysconfdir} /purple/
2007-05-21 04:39:49 +02:00
%{_bindir} /purple-client-example
%{_bindir} /purple-remote
%{_bindir} /purple-send
%{_bindir} /purple-send-async
%{_bindir} /purple-url-handler
2009-02-08 02:51:45 +01:00
%{_datadir} /purple
2007-05-21 04:39:49 +02:00
%{_libdir} /libpurple.so.*
%{_libdir} /libpurple-client.so.*
%dir %{_libdir} /purple-2
2009-09-01 22:16:11 +02:00
%{_libdir} /purple-2/perl
2010-08-27 14:55:53 +02:00
2009-12-04 16:07:44 +01:00
%if %suse_version > 1030
%files -n libpurple-lang -f %{name}.lang
%endif
%defattr (-, root, root)
2009-12-18 13:47:35 +01:00
# These locales are not yet included in respective products:
2011-04-15 09:21:17 +02:00
%if %suse_version < 1140
2010-12-29 00:30:34 +01:00
# See https://bugzilla.novell.com/show_bug.cgi?id=659001
%dir %{_datadir} /locale/mhr
%dir %{_datadir} /locale/mhr/LC_MESSAGES
2011-04-15 09:21:17 +02:00
%endif
2010-01-18 15:01:41 +01:00
%if %suse_version <= 1120
2009-12-08 12:04:47 +01:00
%dir %{_datadir} /locale/ms_MY
%dir %{_datadir} /locale/ms_MY/LC_MESSAGES
2009-12-18 13:47:35 +01:00
%endif
2009-12-08 12:04:47 +01:00
%if %suse_version < 1110
2009-12-04 16:07:44 +01:00
%dir %{_datadir} /locale/sr@latin
%dir %{_datadir} /locale/sr@latin/LC_MESSAGES
%endif
%if %suse_version < 1020
%dir %{_datadir} /locale/be@latin
%dir %{_datadir} /locale/be@latin/LC_MESSAGES
%dir %{_datadir} /locale/ca@valencia
%dir %{_datadir} /locale/ca@valencia/LC_MESSAGES
%dir %{_datadir} /locale/my
%dir %{_datadir} /locale/my/LC_MESSAGES
%dir %{_datadir} /locale/oc
%dir %{_datadir} /locale/oc/LC_MESSAGES
%dir %{_datadir} /locale/ps
%dir %{_datadir} /locale/ps/LC_MESSAGES
%dir %{_datadir} /locale/si
%dir %{_datadir} /locale/si/LC_MESSAGES
%dir %{_datadir} /locale/sw
%dir %{_datadir} /locale/sw/LC_MESSAGES
%dir %{_datadir} /locale/ur
%dir %{_datadir} /locale/ur/LC_MESSAGES
%endif
2010-08-27 14:55:53 +02:00
2009-12-04 16:07:44 +01:00
%if %suse_version >= 1030
2007-05-21 04:39:49 +02:00
%files -n libpurple-meanwhile
%defattr (-, root, root)
%{_libdir} /purple-2/libsametime.*
2009-12-04 16:07:44 +01:00
%endif
2010-08-27 14:55:53 +02:00
2008-11-28 12:28:21 +01:00
%ifnarch ppc64
2010-08-27 14:55:53 +02:00
2009-12-04 16:07:44 +01:00
%if %suse_version > 1010
2007-05-21 04:39:49 +02:00
2010-11-10 21:59:34 +01:00
%if %with_mono
2010-11-10 21:59:43 +01:00
2007-05-21 04:39:49 +02:00
%files -n libpurple-mono
%defattr (-, root, root)
%{_libdir} /purple-2/mono.so
%{_libdir} /purple-2/*.dll
2008-11-28 12:28:21 +01:00
%endif
2009-12-04 16:07:44 +01:00
%endif
2010-11-10 21:59:34 +01:00
%endif
2007-05-21 04:39:49 +02:00
2009-08-17 14:53:02 +02:00
%files -n libpurple-tcl
%defattr (-, root, root)
%{_libdir} /purple-2/tcl.so
2007-05-21 04:39:49 +02:00
%files -n libpurple-devel
%defattr (-, root, root)
%doc ChangeLog.API HACKING PLUGIN_HOWTO
%{_includedir} /libpurple
%{_datadir} /aclocal/purple.m4
%{_libdir} /libpurple.so
%{_libdir} /libpurple-client.so
%{_libdir} /pkgconfig/purple.pc
%doc %{_mandir} /man3/Purple.*
2009-12-04 16:07:44 +01:00
%if %suse_version < 1020
# man3 is not part of gnome-filesystem
%doc %dir %{_mandir} /man3
%endif
2007-05-21 04:39:49 +02:00
2007-10-25 02:40:36 +02:00
%files -n finch -f %{name}-%{version}-finchplugins
2007-05-21 04:39:49 +02:00
%defattr (-, root, root)
%{_bindir} /finch
%{_libdir} /libgnt.so.*
2007-08-03 02:10:42 +02:00
%{_libdir} /gnt
2007-05-21 04:39:49 +02:00
%dir %{_libdir} /finch
%doc %{_mandir} /man1/finch.*
%files -n finch-devel
%defattr (-, root, root)
%{_includedir} /finch
%{_includedir} /gnt
%{_libdir} /libgnt.so
2007-11-09 23:28:11 +01:00
%{_libdir} /pkgconfig/finch.pc
2007-05-21 04:39:49 +02:00
%{_libdir} /pkgconfig/gnt.pc
2007-12-11 01:12:21 +01:00
2011-07-08 09:38:03 +02:00
%if 0%{?suse_version} > 1140
2011-07-08 09:38:18 +02:00
2011-07-08 09:38:03 +02:00
%files -n libpurple-branding-upstream
%defattr (-, root, root)
%{_sysconfdir} /purple/prefs.xml
%endif
2007-05-21 04:39:49 +02:00
%changelog