SHA256
1
0
forked from pool/pidgin

Accepting request 25164 from GNOME:Factory

Copy from GNOME:Factory/pidgin based on submit request 25164 from user sbrabec

OBS-URL: https://build.opensuse.org/request/show/25164
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pidgin?expand=0&rev=46
This commit is contained in:
OBS User autobuild 2009-12-04 15:07:44 +00:00 committed by Git OBS Bridge
parent 874a35ed10
commit fff70b08e1
9 changed files with 244 additions and 51 deletions

View File

@ -1,7 +1,7 @@
Index: pidgin-2.0.1/pidgin/plugins/gevolution/gevolution.c Index: pidgin-2.6.3/pidgin/plugins/gevolution/gevolution.c
================================================================================ ===================================================================
--- pidgin-2.1.0/pidgin/plugins/gevolution/gevolution.c --- pidgin-2.6.3.orig/pidgin/plugins/gevolution/gevolution.c
+++ pidgin-2.1.0/pidgin/plugins/gevolution/gevolution.c +++ pidgin-2.6.3/pidgin/plugins/gevolution/gevolution.c
@@ -38,6 +38,8 @@ @@ -38,6 +38,8 @@
#include <libedata-book/Evolution-DataServer-Addressbook.h> #include <libedata-book/Evolution-DataServer-Addressbook.h>
@ -9,5 +9,5 @@ Index: pidgin-2.0.1/pidgin/plugins/gevolution/gevolution.c
+/* #include <libebook/e-book-listener.h> */ +/* #include <libebook/e-book-listener.h> */
+#include <libedataserver/e-component-listener.h> +#include <libedataserver/e-component-listener.h>
#include <libedata-book/e-data-book-factory.h> #include <libedata-book/e-data-book-factory.h>
/* TODO: bonobo is going away eventually, we'll need to find an alternative */
#include <bonobo/bonobo-main.h> #include <bonobo/bonobo-main.h>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:acbadfd4d725e628ab8906f87438b26ebf86e67d219bbdcf07a9ccd18bdaafd6
size 9093010

3
pidgin-2.6.3.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0515a0add6b0b541160a5d13484f665964072ed331c3e59c65fb6086a070d2a1
size 9093452

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9b4f9e92f0e8ebc473e72a3cf8d8ae488fde177088ba61c1569f86093c9d5c6e
size 20019

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3204686fdc32b330aedac3c7e5cd8ac45deedc4128f01cc1878c2ea93e47f4b8
size 13938

View File

@ -0,0 +1,41 @@
Index: libpurple/protocols/qq/qq.c
===================================================================
--- libpurple/protocols/qq/qq.c.orig
+++ libpurple/protocols/qq/qq.c
@@ -160,17 +160,8 @@ static void qq_login(PurpleAccount *acco
purple_debug_info("QQ", "Server list has %d\n", g_list_length(qd->servers));
version_str = purple_account_get_string(account, "client_version", NULL);
- qd->client_tag = QQ_CLIENT_0D55; /* set default as QQ2005 */
- qd->client_version = 2005;
- if (version_str != NULL && strlen(version_str) != 0) {
- if (strcmp(version_str, "qq2007") == 0) {
- qd->client_tag = QQ_CLIENT_111D;
- qd->client_version = 2007;
- } else if (strcmp(version_str, "qq2008") == 0) {
- qd->client_tag = QQ_CLIENT_115B;
- qd->client_version = 2008;
- }
- }
+ qd->client_tag = QQ_CLIENT_115B; /* set default as QQ2008, no alternatives possible any more */
+ qd->client_version = 2008;
qd->is_show_notice = purple_account_get_bool(account, "show_notice", TRUE);
qd->is_show_news = purple_account_get_bool(account, "show_news", TRUE);
@@ -1115,16 +1106,6 @@ static void init_plugin(PurplePlugin *pl
prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
kvp = g_new0(PurpleKeyValuePair, 1);
- kvp->key = g_strdup(_("QQ2005"));
- kvp->value = g_strdup("qq2005");
- version_kv_list = g_list_append(version_kv_list, kvp);
-
- kvp = g_new0(PurpleKeyValuePair, 1);
- kvp->key = g_strdup(_("QQ2007"));
- kvp->value = g_strdup("qq2007");
- version_kv_list = g_list_append(version_kv_list, kvp);
-
- kvp = g_new0(PurpleKeyValuePair, 1);
kvp->key = g_strdup(_("QQ2008"));
kvp->value = g_strdup("qq2008");
version_kv_list = g_list_append(version_kv_list, kvp);

View File

@ -1,8 +1,8 @@
Index: pidgin-2.5.5/configure.ac Index: pidgin-2.6.3/configure.ac
=================================================================== ===================================================================
--- pidgin-2.5.5.orig/configure.ac --- pidgin-2.6.3.orig/configure.ac
+++ pidgin-2.5.5/configure.ac +++ pidgin-2.6.3/configure.ac
@@ -1744,6 +1744,20 @@ if test "x$enable_nss" != "xno"; then @@ -1799,6 +1799,20 @@ if test "x$enable_nss" != "xno"; then
[AC_HELP_STRING([--with-nss-libs=PREFIX], [specify location of Mozilla nss3 libs.])], [AC_HELP_STRING([--with-nss-libs=PREFIX], [specify location of Mozilla nss3 libs.])],
[with_nss_libs="$withval"]) [with_nss_libs="$withval"])
@ -23,30 +23,30 @@ Index: pidgin-2.5.5/configure.ac
if test -n "$with_nspr_includes" || test -n "$with_nspr_libs" || \ if test -n "$with_nspr_includes" || test -n "$with_nspr_libs" || \
test -n "$with_nss_includes" || test -n "$with_nss_libs" || test -n "$with_nss_includes" || test -n "$with_nss_libs" ||
Index: pidgin-2.5.5/libpurple/Makefile.am Index: pidgin-2.6.3/libpurple/Makefile.am
=================================================================== ===================================================================
--- pidgin-2.5.5.orig/libpurple/Makefile.am --- pidgin-2.6.3.orig/libpurple/Makefile.am
+++ pidgin-2.5.5/libpurple/Makefile.am +++ pidgin-2.6.3/libpurple/Makefile.am
@@ -247,6 +247,7 @@ libpurple_la_LIBADD = \ @@ -291,6 +291,7 @@ libpurple_la_LIBADD = \
$(GLIB_LIBS) \ $(GLIB_LIBS) \
$(LIBXML_LIBS) \ $(LIBXML_LIBS) \
$(NETWORKMANAGER_LIBS) \ $(NETWORKMANAGER_LIBS) \
+ $(PURPLE_KEYRING_LIBS) \ + $(PURPLE_KEYRING_LIBS) \
$(INTLLIBS) \ $(INTLLIBS) \
-lm $(FARSIGHT_LIBS) \
$(GSTREAMER_LIBS) \
@@ -259,6 +260,7 @@ AM_CPPFLAGS = \ @@ -306,6 +307,7 @@ AM_CPPFLAGS = \
$(GLIB_CFLAGS) \ $(GLIB_CFLAGS) \
$(DEBUG_CFLAGS) \ $(DEBUG_CFLAGS) \
$(DBUS_CFLAGS) \ $(DBUS_CFLAGS) \
+ $(PURPLE_KEYRING_CFLAGS) \ + $(PURPLE_KEYRING_CFLAGS) \
$(LIBXML_CFLAGS) \ $(LIBXML_CFLAGS) \
$(NETWORKMANAGER_CFLAGS) $(FARSIGHT_CFLAGS) \
$(GSTREAMER_CFLAGS) \
Index: pidgin-2.5.5/libpurple/account.c Index: pidgin-2.6.3/libpurple/account.c
=================================================================== ===================================================================
--- pidgin-2.5.5.orig/libpurple/account.c --- pidgin-2.6.3.orig/libpurple/account.c
+++ pidgin-2.5.5/libpurple/account.c +++ pidgin-2.6.3/libpurple/account.c
@@ -49,6 +49,13 @@ typedef struct @@ -49,6 +49,13 @@ typedef struct
#define PURPLE_ACCOUNT_GET_PRIVATE(account) \ #define PURPLE_ACCOUNT_GET_PRIVATE(account) \
((PurpleAccountPrivate *) (account->priv)) ((PurpleAccountPrivate *) (account->priv))
@ -61,7 +61,7 @@ Index: pidgin-2.5.5/libpurple/account.c
/* TODO: Should use PurpleValue instead of this? What about "ui"? */ /* TODO: Should use PurpleValue instead of this? What about "ui"? */
typedef struct typedef struct
{ {
@@ -380,8 +387,13 @@ account_to_xmlnode(PurpleAccount *accoun @@ -378,8 +385,13 @@ account_to_xmlnode(PurpleAccount *accoun
if (purple_account_get_remember_password(account) && if (purple_account_get_remember_password(account) &&
((tmp = purple_account_get_password(account)) != NULL)) ((tmp = purple_account_get_password(account)) != NULL))
{ {
@ -75,7 +75,7 @@ Index: pidgin-2.5.5/libpurple/account.c
} }
if ((tmp = purple_account_get_alias(account)) != NULL) if ((tmp = purple_account_get_alias(account)) != NULL)
@@ -796,17 +808,30 @@ parse_account(xmlnode *node) @@ -828,17 +840,30 @@ parse_account(xmlnode *node)
} }
ret = purple_account_new(name, _purple_oscar_convert(name, protocol_id)); /* XXX: */ ret = purple_account_new(name, _purple_oscar_convert(name, protocol_id)); /* XXX: */
@ -112,7 +112,7 @@ Index: pidgin-2.5.5/libpurple/account.c
/* Read the alias */ /* Read the alias */
child = xmlnode_get_child(node, "alias"); child = xmlnode_get_child(node, "alias");
@@ -2797,3 +2822,60 @@ purple_accounts_uninit(void) @@ -2873,3 +2898,60 @@ purple_accounts_uninit(void)
purple_signals_disconnect_by_handle(handle); purple_signals_disconnect_by_handle(handle);
purple_signals_unregister_by_instance(handle); purple_signals_unregister_by_instance(handle);
} }

View File

@ -1,3 +1,36 @@
-------------------------------------------------------------------
Thu Nov 26 17:58:29 CET 2009 - sbrabec@suse.cz
- Single spec for all SUSE products in all build systems.
- Updated to Pidgin 2.6.3:
* Fix a crash when performing DNS queries on Unixes that use the
blocking DNS lookups.
* Fixed incorrect Oscar memory access by a specially crafted SIM
IM client contacts message (bnc#548072, pidgin#10481,
CVE-2009-3615).
* Fix blocking and other privacy list problems.
- Migrate all QQ accounts to QQ2008 (bnc#550170).
- Update may include these security fixes:
- Fixed XMPP crash when receiving a message with a custom smiley
from a client that doesn't actually support custom smileys.
(bnc#536602, CVE-2009-3085)
http://www.pidgin.im/news/security/index.php?id=37
- Fixed MSN remote denial of service via handwritten Ink message
(bnc#536602, pidgin#10159, CVE-2009-3084)
http://www.pidgin.im/news/security/index.php?id=38
- Fixed MSN remote denial of service via an SLP invite message that
lacks certain required fields (bnc#536602, pidgin#10048,
CVE-2009-3083)
http://www.pidgin.im/news/security/index.php?id=39
- Fixed IRC TOPIC message DoS (bnc#537214, IS-2009-001,
CVE-2009-2703, Bugtraq#36277).
http://www.pidgin.im/news/security/index.php?id=40
- Fixed incorrect Oscar memory access by a specially crafted SIM IM
client contacts message (bnc#548072, pidgin#10481,
CVE-2009-3615).
http://www.pidgin.im/news/security/index.php?id=41
- Re-added NLD artwork by Hans Petter Jansson (hpj@novell.com).
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Oct 20 09:36:10 CEST 2009 - dimstar@opensuse.org Tue Oct 20 09:36:10 CEST 2009 - dimstar@opensuse.org

View File

@ -1,5 +1,5 @@
# #
# spec file for package pidgin (Version 2.6.2) # spec file for package pidgin (Version 2.6.3)
# #
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
@ -20,12 +20,14 @@
Name: pidgin Name: pidgin
Summary: GTK+-Based Multiprotocol Instant Messaging Client Summary: GTK+-Based Multiprotocol Instant Messaging Client
Version: 2.6.2 Version: 2.6.3
Release: 3 Release: 1
License: GPL v2 or later License: GPLv2+
Group: Productivity/Networking/Instant Messenger Group: Productivity/Networking/Instant Messenger
Url: http://www.pidgin.im/ Url: http://www.pidgin.im/
Source: http://downloads.sourceforge.net/pidgin/%{name}-%{version}.tar.bz2 Source: http://downloads.sourceforge.net/pidgin/%{name}-%{version}.tar.bz2
Source1: pidgin-NLD-smiley-theme.tar.bz2
Source2: pidgin-Tango-smiley-theme.tar.bz2
Patch1: pidgin-gnome-keyring.patch Patch1: pidgin-gnome-keyring.patch
# PATCH-NEEDS-REBASE # PATCH-NEEDS-REBASE
Patch2: pidgin-nonblock-aim.patch Patch2: pidgin-nonblock-aim.patch
@ -40,45 +42,80 @@ Patch12: pidgin-dbus-invalid-gpointer.patch
Patch13: pidgin-browser-default.patch Patch13: pidgin-browser-default.patch
# PATCH-FIX-UPSTREAM pidgin-bnc548072.patch bnc#548072 dimstar@opensuse.org -- Fix a crash on Oscar (icq) protocol. # PATCH-FIX-UPSTREAM pidgin-bnc548072.patch bnc#548072 dimstar@opensuse.org -- Fix a crash on Oscar (icq) protocol.
Patch14: pidgin-bnc548072.patch Patch14: pidgin-bnc548072.patch
Patch15: pidgin-bnc550170-qq-2008only.patch
# Can use external libzephyr # Can use external libzephyr
BuildRequires: cyrus-sasl-devel BuildRequires: cyrus-sasl-devel
BuildRequires: dbus-1-devel BuildRequires: dbus-1-devel
BuildRequires: doxygen BuildRequires: doxygen
BuildRequires: evolution-data-server-devel BuildRequires: evolution-data-server-devel
%if %suse_version > 1110 || 0%{?opensuse_bs_prj_GNOME_Factory}
BuildRequires: farsight2-devel BuildRequires: farsight2-devel
%endif
BuildRequires: gnome-keyring-devel BuildRequires: gnome-keyring-devel
%if %suse_version < 1020
BuildRequires: gnome-icon-theme
%endif
BuildRequires: graphviz BuildRequires: graphviz
BuildRequires: gtk-doc BuildRequires: gtk-doc
BuildRequires: gtkspell-devel BuildRequires: gtkspell-devel
BuildRequires: intltool BuildRequires: intltool
BuildRequires: libidn-devel BuildRequires: libidn-devel
%if %suse_version > 1030 || 0%{?opensuse_bs_prj_GNOME_Factory}
BuildRequires: libgadu-devel BuildRequires: libgadu-devel
%endif
BuildRequires: libstdc++-devel BuildRequires: libstdc++-devel
BuildRequires: libxml2-devel BuildRequires: libxml2-devel
BuildRequires: libxslt BuildRequires: libxslt
%if %suse_version >= 1030
# Versions in older SUSE products are too old:
BuildRequires: meanwhile-devel BuildRequires: meanwhile-devel
%endif
BuildRequires: mono-devel BuildRequires: mono-devel
BuildRequires: mozilla-nspr-devel BuildRequires: mozilla-nspr-devel
BuildRequires: mozilla-nss-devel BuildRequires: mozilla-nss-devel
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
%if %suse_version > 1020
BuildRequires: openssl-certs BuildRequires: openssl-certs
%endif
%if %suse_version > 1030
%if %suse_version < 1120
# missing in silc-toolkit-devel:
BuildRequires: pam-devel
%endif
%endif
BuildRequires: python BuildRequires: python
BuildRequires: startup-notification-devel BuildRequires: startup-notification-devel
BuildRequires: tk-devel BuildRequires: tk-devel
%if %suse_version > 1110
BuildRequires: translation-update-upstream BuildRequires: translation-update-upstream
%endif
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
BuildRequires: NetworkManager-devel BuildRequires: NetworkManager-devel
%if %suse_version > 1030 || 0%{?opensuse_bs_prj_GNOME_Factory}
BuildRequires: gstreamer-0_10-devel BuildRequires: gstreamer-0_10-devel
BuildRequires: gstreamer-0_10-plugins-base-devel BuildRequires: gstreamer-0_10-plugins-base-devel
%else
BuildRequires: gstreamer010-devel
BuildRequires: gstreamer010-plugins-base-devel
%endif
%if %suse_version > 1020
BuildRequires: dbus-1-glib-devel BuildRequires: dbus-1-glib-devel
BuildRequires: silc-toolkit-devel BuildRequires: silc-toolkit-devel
BuildRequires: fdupes libnotify-devel %else
%if %suse_version > 1030 || 0%{?opensuse_bs} BuildRequires: dbus-1-devel dbus-1-glib
%endif
%if %suse_version > 1020
BuildRequires: fdupes
%endif
BuildRequires: libnotify-devel
%if %suse_version > 1030 || 0%{?opensuse_bs_prj_GNOME_Factory}
BuildRequires: libavahi-glib-devel BuildRequires: libavahi-glib-devel
%else %else
BuildRequires: avahi-devel BuildRequires: avahi-devel avahi-glib
%endif %endif
%if %suse_version > 1030
Requires: libpurple-lang = %{version} Requires: libpurple-lang = %{version}
%endif
Requires: openssl-certs Requires: openssl-certs
Requires: perl-base = %{perl_version} Requires: perl-base = %{perl_version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -89,6 +126,13 @@ Obsoletes: gaim-applet
# Was only in the Build Service after 10.2: # Was only in the Build Service after 10.2:
Obsoletes: gaim-unstable < 2.0.0 Obsoletes: gaim-unstable < 2.0.0
Provides: gaim Provides: gaim
%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
%gconf_schemas_prereq %gconf_schemas_prereq
%description %description
@ -105,26 +149,28 @@ Pidgin is not affiliated with or endorsed by America Online, Inc.,
Microsoft Corporation, Yahoo! Inc., or ICQ Inc. Microsoft Corporation, Yahoo! Inc., or ICQ Inc.
%package devel %package devel
License: GPL v2 or later License: GPLv2+
#' #'
Summary: Development Headers, Documentation, and Libraries for Pidgin Summary: Development Headers, Documentation, and Libraries for Pidgin
Group: Productivity/Networking/Instant Messenger Group: Productivity/Networking/Instant Messenger
Requires: %{name} = %{version} glib2-devel gtk2-devel libpurple-devel = %{version} Requires: %{name} = %{version} glib2-devel gtk2-devel libpurple-devel = %{version}
%package -n libpurple %package -n libpurple
License: GPL v2 or later License: GPLv2+
Summary: Library for IM Clients Like Pidgin and Finch Summary: Library for IM Clients Like Pidgin and Finch
Group: Productivity/Networking/Instant Messenger Group: Productivity/Networking/Instant Messenger
# Not really required, but standard Jabber accounts require it, if compiled with SASL support. # Not really required, but standard Jabber accounts require it, if compiled with SASL support.
Requires: cyrus-sasl-digestmd5 cyrus-sasl-plain Requires: cyrus-sasl-digestmd5 cyrus-sasl-plain
%if %suse_version > 1030
Requires: libpurple-lang = %{version} Requires: libpurple-lang = %{version}
%endif
# Needed for purple-url-handler: # Needed for purple-url-handler:
Requires: dbus-1-python Requires: dbus-1-python
Requires: perl = %{perl_version} Requires: perl = %{perl_version}
Requires: openssl-certs Requires: openssl-certs
%package -n libpurple-devel %package -n libpurple-devel
License: GPL v2 or later License: GPLv2+
Summary: Development Headers, Documentation, and Libraries for libpurple Summary: Development Headers, Documentation, and Libraries for libpurple
Group: Productivity/Networking/Instant Messenger Group: Productivity/Networking/Instant Messenger
Requires: libpurple = %{version} NetworkManager-devel NetworkManager-glib glib2-devel gnome-keyring-devel libxml2-devel Requires: libpurple = %{version} NetworkManager-devel NetworkManager-glib glib2-devel gnome-keyring-devel libxml2-devel
@ -133,28 +179,30 @@ Provides: gaim-devel = %{version}
Obsoletes: gaim-devel <= 1.5.0 Obsoletes: gaim-devel <= 1.5.0
Provides: gaim-unstable-devel = %{version} Provides: gaim-unstable-devel = %{version}
Obsoletes: gaim-unstable-devel < 2.0.0 Obsoletes: gaim-unstable-devel < 2.0.0
%if %suse_version >= 1030
%package -n libpurple-meanwhile %package -n libpurple-meanwhile
License: GPL v2 or later License: GPLv2+
Summary: Lotus Sametime Plugin for Pidgin Using the Meanwhile Library Summary: Lotus Sametime Plugin for Pidgin Using the Meanwhile Library
Group: Productivity/Networking/Instant Messenger Group: Productivity/Networking/Instant Messenger
Requires: libpurple = %{version} Requires: libpurple = %{version}
%endif
%package -n libpurple-mono %package -n libpurple-mono
License: GPL v2 or later License: GPLv2+
Summary: Mono .NET Plugin Support for Pidgin Summary: Mono .NET Plugin Support for Pidgin
Group: Productivity/Networking/Instant Messenger Group: Productivity/Networking/Instant Messenger
Requires: libpurple = %{version} Requires: libpurple = %{version}
%package -n libpurple-tcl %package -n libpurple-tcl
License: GPL v2 or later License: GPLv2+
Summary: TCL Plugin Support for Pidgin Summary: TCL Plugin Support for Pidgin
Group: Productivity/Networking/Instant Messenger Group: Productivity/Networking/Instant Messenger
Requires: libpurple = %{version} Requires: libpurple = %{version}
Supplements: packageand(libpurple:tcl) Supplements: packageand(libpurple:tcl)
%package -n finch %package -n finch
License: GPL v2 or later License: GPLv2+
Summary: Text-Based User Interface for Pidgin Instant Messaging Client Summary: Text-Based User Interface for Pidgin Instant Messaging Client
Group: Productivity/Networking/Instant Messenger Group: Productivity/Networking/Instant Messenger
Requires: libpurple = %{version} Requires: libpurple = %{version}
@ -162,7 +210,7 @@ Obsoletes: gaim-unstable-text < 2.0.0
Provides: gaim-unstable-text Provides: gaim-unstable-text
%package -n finch-devel %package -n finch-devel
License: GPL v2 or later License: GPLv2+
Summary: Headers etc. for finch Stuffs Summary: Headers etc. for finch Stuffs
Group: Productivity/Networking/Instant Messenger Group: Productivity/Networking/Instant Messenger
Requires: finch = %{version} glib2-devel glibc-devel libpurple-devel = %{version} ncurses-devel Requires: finch = %{version} glib2-devel glibc-devel libpurple-devel = %{version} ncurses-devel
@ -188,8 +236,11 @@ documentation, and libraries required for development of libpurple
based instant messaging clients or plugins for any libpurple based based instant messaging clients or plugins for any libpurple based
client. client.
%if %suse_version >= 1030
%description -n libpurple-meanwhile %description -n libpurple-meanwhile
Lotus Sametime plugin for Pidgin using the Meanwhile library. Lotus Sametime plugin for Pidgin using the Meanwhile library.
%endif
%description -n libpurple-mono %description -n libpurple-mono
Mono plugin loader for Pidgin. This package will allow you to write or Mono plugin loader for Pidgin. This package will allow you to write or
@ -209,10 +260,15 @@ The finch-devel package contains the header files, developer
documentation, and libraries required for development of Finch scripts documentation, and libraries required for development of Finch scripts
and plugins. and plugins.
%if %suse_version > 1030
%lang_package -n libpurple %lang_package -n libpurple
%endif
%prep %prep
%setup -q %setup -q -a1 -a2
%if %suse_version > 1110
translation-update-upstream translation-update-upstream
%endif
%patch1 -p1 %patch1 -p1
# FIXME: Port this patch: # FIXME: Port this patch:
#%patch2 -p1 #%patch2 -p1
@ -223,6 +279,7 @@ translation-update-upstream
%patch11 -p1 %patch11 -p1
%patch12 %patch12
%patch13 %patch13
%patch15 -p0
# Change Myanmar/Myanmar to Myanmar: # Change Myanmar/Myanmar to Myanmar:
rename my_MM my po/my_MM.* rename my_MM my po/my_MM.*
%{__sed} -i "/^ALL_LINGUAS/s/ my_MM / my /" configure.ac %{__sed} -i "/^ALL_LINGUAS/s/ my_MM / my /" configure.ac
@ -236,15 +293,25 @@ ACLOCAL="aclocal -I m4macros" autoreconf -f -i
intltoolize --force intltoolize --force
%configure\ %configure\
--disable-static\ --disable-static\
%if %suse_version < 1120
--disable-vv\
%endif
--enable-plugins\ --enable-plugins\
--enable-cyrus-sasl\ --enable-cyrus-sasl\
--enable-dbus=yes\ --enable-dbus\
--enable-mono=yes\ %if %suse_version > 1010
--enable-gstreamer=yes\ --enable-mono\
--enable-gnome-keyring=yes\ %else
--enable-nm=yes\ --disable-mono\
--enable-dbus=yes\ %endif
--enable-gstreamer\
--enable-gnome-keyring\
--enable-nm\
--enable-dbus\
--enable-devhelp\ --enable-devhelp\
%if %suse_version < 1030
--disable-meanwhile \
%endif
--with-tclconfig=%{_libdir}\ --with-tclconfig=%{_libdir}\
--with-tkconfig=%{_libdir}\ --with-tkconfig=%{_libdir}\
--with-system-ssl-certs=/etc/ssl/certs --with-system-ssl-certs=/etc/ssl/certs
@ -256,6 +323,8 @@ intltoolize --force
%{makeinstall} %{makeinstall}
%{perl_process_packlist} %{perl_process_packlist}
%suse_update_desktop_file -N Pidgin -G "Instant Messenger" %{name} %suse_update_desktop_file -N Pidgin -G "Instant Messenger" %{name}
cp -a NLD $RPM_BUILD_ROOT%{_prefix}/share/pixmaps/pidgin/emotes
cp -a Tango $RPM_BUILD_ROOT%{_prefix}/share/pixmaps/pidgin/emotes
%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la $RPM_BUILD_ROOT%{_libdir}/*/*.la %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la $RPM_BUILD_ROOT%{_libdir}/*/*.la
%{__rm} -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod %{__rm} -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
%{__rm} -f $RPM_BUILD_ROOT%{_prefix}/lib/perl*/*/perllocal.pod %{__rm} -f $RPM_BUILD_ROOT%{_prefix}/lib/perl*/*/perllocal.pod
@ -278,7 +347,12 @@ find $RPM_BUILD_ROOT%{_libdir}/finch -maxdepth 1 -xtype f -print | \
%{__sed} "s@^$RPM_BUILD_ROOT@@g" > %{name}-%{version}-finchplugins %{__sed} "s@^$RPM_BUILD_ROOT@@g" > %{name}-%{version}-finchplugins
%find_gconf_schemas %find_gconf_schemas
%{__cat} %{name}.schemas_list %{name}-%{version}-pidginplugins >%{name}.lst %{__cat} %{name}.schemas_list %{name}-%{version}-pidginplugins >%{name}.lst
%if %suse_version <= 1030
%{__cat} %{name}.lang >>%{name}-%{version}-purpleplugins
%endif
%if %suse_version > 1020
%fdupes $RPM_BUILD_ROOT %fdupes $RPM_BUILD_ROOT
%endif
%clean %clean
%{__rm} -rf $RPM_BUILD_ROOT %{__rm} -rf $RPM_BUILD_ROOT
@ -308,6 +382,11 @@ find $RPM_BUILD_ROOT%{_libdir}/finch -maxdepth 1 -xtype f -print | \
%{_datadir}/applications/*.desktop %{_datadir}/applications/*.desktop
%{_datadir}/sounds/purple %{_datadir}/sounds/purple
%doc %{_mandir}/man1/pidgin.* %doc %{_mandir}/man1/pidgin.*
%if %suse_version < 1020
/var/adm/perl-modules/pidgin
# man3 is not part of gnome-filesystem
%doc %dir %{_mandir}/man3
%endif
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
@ -315,8 +394,6 @@ find $RPM_BUILD_ROOT%{_libdir}/finch -maxdepth 1 -xtype f -print | \
%{_libdir}/pkgconfig/pidgin.pc %{_libdir}/pkgconfig/pidgin.pc
%doc %{_mandir}/man3/Pidgin.* %doc %{_mandir}/man3/Pidgin.*
%files -n libpurple-lang -f %{name}.lang
%files -n libpurple -f %{name}-%{version}-purpleplugins %files -n libpurple -f %{name}-%{version}-purpleplugins
%defattr(-, root, root) %defattr(-, root, root)
%doc libpurple/purple-notifications-example %doc libpurple/purple-notifications-example
@ -330,17 +407,49 @@ find $RPM_BUILD_ROOT%{_libdir}/finch -maxdepth 1 -xtype f -print | \
%{_libdir}/libpurple-client.so.* %{_libdir}/libpurple-client.so.*
%dir %{_libdir}/purple-2 %dir %{_libdir}/purple-2
%{_libdir}/purple-2/perl %{_libdir}/purple-2/perl
%if %suse_version > 1030
%files -n libpurple-lang -f %{name}.lang
%endif
%if %suse_version < 1110
# These locales are not yet included in respective products:
%defattr(-, root, root)
%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
%if %suse_version >= 1030
%files -n libpurple-meanwhile %files -n libpurple-meanwhile
%defattr(-, root, root) %defattr(-, root, root)
%{_libdir}/purple-2/libsametime.* %{_libdir}/purple-2/libsametime.*
%endif
%ifnarch ppc64 %ifnarch ppc64
%if %suse_version > 1010
%files -n libpurple-mono %files -n libpurple-mono
%defattr(-, root, root) %defattr(-, root, root)
%{_libdir}/purple-2/mono.so %{_libdir}/purple-2/mono.so
%{_libdir}/purple-2/*.dll %{_libdir}/purple-2/*.dll
%endif %endif
%endif
%files -n libpurple-tcl %files -n libpurple-tcl
%defattr(-, root, root) %defattr(-, root, root)
@ -355,6 +464,10 @@ find $RPM_BUILD_ROOT%{_libdir}/finch -maxdepth 1 -xtype f -print | \
%{_libdir}/libpurple-client.so %{_libdir}/libpurple-client.so
%{_libdir}/pkgconfig/purple.pc %{_libdir}/pkgconfig/purple.pc
%doc %{_mandir}/man3/Purple.* %doc %{_mandir}/man3/Purple.*
%if %suse_version < 1020
# man3 is not part of gnome-filesystem
%doc %dir %{_mandir}/man3
%endif
%files -n finch -f %{name}-%{version}-finchplugins %files -n finch -f %{name}-%{version}-finchplugins
%defattr(-, root, root) %defattr(-, root, root)