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
#
2014-01-28 12:03:42 +01:00
# Copyright (c) 2014 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/
#
2012-02-28 14:14:54 +01:00
2014-11-26 20:57:31 +01:00
%define _name Pidgin
2007-05-21 04:39:49 +02:00
Name : pidgin
2014-11-26 20:57:31 +01:00
Version : 2.10.11
Release : 0
2011-07-08 09:38:03 +02:00
Summary : Multiprotocol Instant Messaging Client
2012-01-05 19:14:50 +01:00
License : GPL-2.0+
2007-07-24 01:33:28 +02:00
Group : Productivity/Networking/Instant Messenger
2012-10-12 08:09:29 +02:00
# FIXME: Remove unconditional --disable-vv parameter from configure once pidgin is ported to farstream 0.2
2014-11-26 20:57:31 +01:00
Url : http://pidgin.im/
Source : http://downloads.sourceforge.net/project/pidgin/Pidgin/2.10.11/%{name} -%{version} .tar.gz
Source1 : %{name} -prefs.xml
Patch0 : %{name} -nonblock-common.patch
Patch1 : %{name} -nonblock-gwim.patch
Patch2 : %{name} -nonblock-common2.patch
Patch3 : %{name} -gnome-keyring.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
2014-11-26 20:57:31 +01:00
Patch4 : %{name} -fix-perl-build.patch
2014-08-11 12:30:20 +02:00
# PATCH-FIX-UPSTREAM pidgin-ssl-cache.patch pidgin.im#11568 tbehrens@suse.com -- Disable caching the SSL Session keys, as some (broken) IRC servers are not willing to re-use them upon a disconnect.
2014-11-26 20:57:31 +01:00
Patch5 : %{name} -ssl-cache.patch
# PATCH-FIX-UPSTREAM pidgin-crash-missing-gst-registry.patch bnc#866455 pidgin.im#16224 cxiong@suse.com -- Fix crash when GST registry cache file is missing.
Patch6 : pidgin-crash-missing-gst-registry.patch
BuildRequires : NetworkManager-devel
# Can use external libzephyr.
2008-08-29 01:41:51 +02:00
BuildRequires : cyrus-sasl-devel
BuildRequires : dbus-1-devel
2014-11-26 20:57:31 +01:00
BuildRequires : dbus-1-glib-devel
2008-08-29 01:41:51 +02:00
BuildRequires : doxygen
2014-11-26 20:57:31 +01:00
BuildRequires : fdupes
2011-06-17 12:17:01 +02:00
BuildRequires : gconf2-devel
2008-08-29 01:41:51 +02:00
BuildRequires : graphviz
2014-11-26 20:57:31 +01:00
BuildRequires : gstreamer-0_10-devel
BuildRequires : gstreamer-0_10-plugins-base-devel
2008-08-29 01:41:51 +02:00
BuildRequires : gtk-doc
BuildRequires : gtkspell-devel
BuildRequires : intltool
2014-11-26 20:57:31 +01:00
BuildRequires : libavahi-glib-devel
2008-08-29 01:41:51 +02:00
BuildRequires : libgadu-devel
2014-11-26 20:57:31 +01:00
BuildRequires : libgnutls-devel
BuildRequires : libidn-devel
BuildRequires : libnotify-devel
BuildRequires : libstdc++-devel
BuildRequires : libtool
BuildRequires : libxml2-devel
BuildRequires : libxslt
BuildRequires : meanwhile-devel
BuildRequires : mozilla-nspr-devel
BuildRequires : ncurses-devel
BuildRequires : python-devel
BuildRequires : silc-toolkit-devel
BuildRequires : startup-notification-devel
BuildRequires : tk-devel
BuildRequires : update-desktop-files
Requires : perl-base = %{perl_version}
%if 0%{?suse_version} <= 1110
Recommends: %{name} -emoticons-nld
Recommends: %{name} -emoticons-tango
2009-12-04 16:07:44 +01:00
%endif
2014-11-26 20:57:31 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
%{gconf_schemas_prereq}
2010-01-18 15:01:41 +01:00
# gnome-keyring support summary (bnc#566286):
2014-11-26 20:57:31 +01:00
# 11.1 & SLE11: patch present and active (bnc#569025)
# 11.2 and above: patch not applied
2010-01-18 15:01:41 +01:00
# For openSUSE, it's better to avoid this patch:
# + does not work well outside GNOME
# - passwords are stored in readable form
2014-11-26 20:57:31 +01:00
%if 0%{?suse_version} <= 1110
2010-01-18 15:01:41 +01:00
BuildRequires : gnome-keyring-devel
%endif
2014-11-26 20:57:31 +01:00
%if 0%{?suse_version} > 1210
BuildRequires : libSM-devel
BuildRequires : libX11-devel
BuildRequires : libXScrnSaver-devel
BuildRequires : libXext-devel
2010-01-18 15:01:41 +01:00
%endif
2014-11-26 20:57:31 +01:00
%if 0%{?suse_version} > 1210
2008-08-29 01:41:51 +02:00
BuildRequires : mozilla-nss-devel
2014-11-26 20:57:31 +01:00
%endif
%if 0%{?suse_version} >= 1230
2014-06-25 15:24:02 +02:00
BuildRequires : ca-certificates-mozilla
%else
2008-08-29 01:41:51 +02:00
BuildRequires : openssl-certs
2009-12-04 16:07:44 +01:00
%endif
2014-11-26 20:57:31 +01:00
%if 0%{?suse_version} < 1120
# Missing in silc-toolkit-devel.
2009-12-04 16:07:44 +01:00
BuildRequires : pam-devel
%endif
2014-11-26 20:57:31 +01:00
%if 0%{?suse_version} > 1110
2009-03-18 01:37:34 +01:00
BuildRequires : translation-update-upstream
2009-12-04 16:07:44 +01:00
%endif
2014-11-26 20:57:31 +01:00
%if 0%{?suse_version} >= 1230
2014-06-25 15:24:02 +02:00
Requires : ca-certificates-mozilla
%else
2008-08-23 01:56:49 +02:00
Requires : openssl-certs
2009-12-08 12:04:47 +01:00
%endif
2007-05-21 04:39:49 +02:00
%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:
2014-11-26 20:57:31 +01:00
Jabber/XMPP, AIM, ICQ, Yahoo!, Bonjour, Gadu-Gadu, IRC, SILC, SIMPLE,
Novell GroupWise Messenger, Lotus Sametime, MXit, MySpaceIM,
and Zephyr. It can support many more with plugins.
2007-05-21 04:39:49 +02:00
%package devel
Summary : Development Headers, Documentation, and Libraries for Pidgin
2014-11-26 20:57:31 +01:00
Group : Development/Libraries/C and C++
2012-02-28 14:14:54 +01:00
Requires : %{name} = %{version}
Requires : glib2-devel
Requires : gtk2-devel
Requires : libpurple-devel = %{version}
2007-09-14 00:47:58 +02:00
2014-11-26 20:57:31 +01:00
%description devel
The pidgin-devel package contains the header files, developer
documentation, and libraries required for development of Pidgin scripts
and plugins.
2007-05-21 04:39:49 +02:00
%package -n libpurple
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.
2012-02-28 14:14:54 +01:00
Requires : cyrus-sasl-digestmd5
Requires : cyrus-sasl-plain
2014-11-26 20:57:31 +01:00
# Needed for purple-url-handler.
2007-10-03 01:08:35 +02:00
Requires : dbus-1-python
2009-02-08 02:51:45 +01:00
Requires : perl = %{perl_version}
2014-11-26 20:57:31 +01:00
Recommends: libpurple-lang = %{version}
%if 0%{?suse_version} >= 1230
2014-06-25 15:24:02 +02:00
Requires : ca-certificates-mozilla
%else
2009-03-04 15:09:03 +01:00
Requires : openssl-certs
2009-12-08 12:04:47 +01:00
%endif
2014-11-26 20:57:31 +01:00
%description -n libpurple
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:
Jabber/XMPP, AIM, ICQ, Yahoo!, Bonjour, Gadu-Gadu, IRC, SILC, SIMPLE,
Novell GroupWise Messenger, Lotus Sametime, MXit, MySpaceIM,
and Zephyr. It can support many more with plugins.
%lang_package -n libpurple
2007-09-14 00:47:58 +02:00
2007-05-21 04:39:49 +02:00
%package -n libpurple-devel
Summary : Development Headers, Documentation, and Libraries for libpurple
2014-11-26 20:57:31 +01:00
Group : Development/Libraries/C and C++
2012-02-28 14:14:54 +01:00
Requires : NetworkManager-devel
Requires : NetworkManager-glib
Requires : glib2-devel
Requires : libpurple = %{version}
Requires : libxml2-devel
2007-05-21 04:39:49 +02:00
Requires : pkg-config
2010-08-27 14:55:53 +02:00
2014-11-26 20:57:31 +01: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.
2007-09-14 00:47:58 +02:00
2007-05-21 04:39:49 +02:00
%package -n libpurple-meanwhile
2014-11-26 20:57:31 +01:00
Summary : 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}
2007-09-14 00:47:58 +02:00
2014-11-26 20:57:31 +01:00
%description -n libpurple-meanwhile
Lotus Sametime plugin for Pidgin using the Meanwhile library.
2007-09-14 00:47:58 +02:00
2009-08-17 14:53:02 +02:00
%package -n libpurple-tcl
Summary : TCL Plugin Support for Pidgin
Group : Productivity/Networking/Instant Messenger
Requires : libpurple = %{version}
Supplements: packageand(libpurple:tcl)
2014-11-26 20:57:31 +01: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
%package -n finch
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}
2014-11-26 20:57:31 +01:00
%description -n finch
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.
2007-09-14 00:47:58 +02:00
2007-05-21 04:39:49 +02:00
%package -n finch-devel
Summary : Headers etc. for finch Stuffs
2014-11-26 20:57:31 +01:00
Group : Development/Libraries/C and C++
2012-02-28 14:14:54 +01:00
Requires : finch = %{version}
Requires : glib2-devel
Requires : glibc-devel
Requires : libpurple-devel = %{version}
Requires : ncurses-devel
2007-05-21 04:39:49 +02:00
Requires : pkg-config
2014-11-26 20:57:31 +01:00
%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:18 +02:00
2014-11-26 20:57:31 +01:00
%if 0%{?suse_version} > 1140
2011-07-08 09:38:03 +02:00
%package -n libpurple-branding-upstream
Summary : GLib-based Instant Messenger Library -- Upstream default configuration
Group : System/Libraries
Requires : libpurple = %{version}
Supplements: packageand(libpurple:branding-upstream)
2014-11-26 20:57:31 +01:00
Provides : libpurple-branding = %{version}
2011-07-08 09:38:03 +02:00
BuildArch : noarch
2014-11-26 20:57:31 +01:00
Conflicts : otherproviders(libpurple-branding)
2011-07-08 09:38:03 +02:00
#BRAND: Provides /etc/purple/prefs.xml, the default configuration for
#BRAND: libpurple, and libpurple-based clients.
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:
2014-11-26 20:57:31 +01:00
Jabber/XMPP, AIM, ICQ, Yahoo!, Bonjour, Gadu-Gadu, IRC, SILC, SIMPLE,
Novell GroupWise Messenger, Lotus Sametime, MXit, MySpaceIM,
and Zephyr. It can support many more with plugins.
2011-07-08 09:38:03 +02:00
This package provides the openSUSE default configuration for Pidgin.
%endif
2007-05-21 04:39:49 +02:00
%prep
2014-11-26 20:57:31 +01:00
%setup -q
%if 0%{?suse_version} > 1110
2009-03-18 01:37:34 +01:00
translation-update-upstream
2009-12-04 16:07:44 +01:00
%endif
2014-11-26 20:57:31 +01:00
%patch0 -p1
2007-05-21 04:39:49 +02:00
%patch1 -p1
2014-11-26 20:57:31 +01:00
%patch2 -p1
2007-05-21 04:39:49 +02:00
%patch3 -p1
%patch4 -p1
2014-11-26 20:57:31 +01:00
2013-03-25 20:40:38 +01:00
%if 0%{?suse_version} >= 1310
2014-11-26 20:57:31 +01:00
%patch5
%patch6 -p1
2013-03-25 20:40:38 +01:00
%endif
2012-05-16 21:09:00 +02:00
2014-11-26 20:57:31 +01:00
# Change Myanmar/Myanmar to Myanmar.
mv -f po/my_MM.po po/my.po
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
2014-11-26 20:57:31 +01:00
export CFLAGS=" %{optflags} - f s t a c k - p r o t e c t o r - f P I C "
export CXXFLAGS=" %{optflags} - f s t a c k - p r o t e c t o r - f P I C "
export FFLAGS=" %{optflags} - 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
2014-11-26 20:57:31 +01:00
%configure \
--disable-static \
--disable-schemas-install \
--enable-plugins \
--enable-cyrus-sasl \
--enable-dbus \
--enable-gstreamer \
%if 0%{?suse_version} <= 1110
--enable-gnome-keyring \
%endif
--enable-nm \
--enable-dbus \
--enable-devhelp \
--disable-vv \
--with-tclconfig=%{_libdir} \
--with-tkconfig=%{_libdir} \
--with-system-ssl-certs=%{_sysconfdir} /ssl/certs/
make %{?_smp_mflags}
2007-05-21 04:39:49 +02:00
%install
2014-11-26 20:57:31 +01:00
%make_install
mkdir -p %{buildroot} %{_sysconfdir} /purple/
2011-07-08 09:38:03 +02:00
%if 0%{?suse_version} > 1140
2014-11-26 20:57:31 +01:00
cp -f %{SOURCE1} %{buildroot} %{_sysconfdir} /purple/prefs.xml
%endif
%perl_process_packlist
find %{buildroot} -type f -name " p e r l l o c a l . p o d " -delete -print
find %{buildroot} -type f -name " . p a c k l i s t " -delete -print
find %{buildroot} -type f -name " * . b s " -empty -delete -print
find %{buildroot} -type f -name " * . l a " -delete -print
# FIXME: Should be nonversioned name.
for im in jabber oscar ymsg; do
if [ -L %{buildroot} %{_libdir} /purple-2/lib$im.so ]; then
rm -f %{buildroot} %{_libdir} /purple-2/lib$im.so
fi
done
find %{buildroot} %{_libdir} /purple-2/ -xtype f -print | \
sed -e " s | ^ %{buildroot} | | g ; / \ l i b s a m e t i m e . s o / d ; / \ / t c l . s o / d " \
> %{name} -%{version} -purpleplugins
find %{buildroot} %{_libdir} /finch/ -maxdepth 1 -xtype f -print | \
sed -e " s | ^ %{buildroot} | | g " > %{name} -%{version} -finchplugins
%fdupes %{buildroot}
%suse_update_desktop_file -N %{_name} -G " I n s t a n t M e s s e n g e r " %{name}
%{find_gconf_schemas}
2011-02-14 01:10:26 +01:00
%find_lang %{name} %{?no_lang_C}
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
%post
%desktop_database_post
%icon_theme_cache_post
%endif
%if 0%{?suse_version} > 1130
%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
2014-11-26 20:57:31 +01:00
%files -f %{name}.schemas_list
2007-05-21 04:39:49 +02:00
%defattr (-,root,root)
2013-02-19 13:38:52 +01:00
%doc AUTHORS COPYING COPYRIGHT ChangeLog NEWS README doc/the_penguin.txt
2014-11-26 20:57:31 +01:00
%{_bindir} /%{name}
%{_libdir} /%{name} /
%dir %{_datadir} /appdata
%{_datadir} /appdata/pidgin.appdata.xml
%{_datadir} /pixmaps/%{name} /
%{_datadir} /icons/hicolor/*/apps/*
2007-05-21 04:39:49 +02:00
%{_datadir} /applications/*.desktop
2014-11-26 20:57:31 +01:00
%{_datadir} /sounds/purple/
%{_mandir} /man1/%{name} .*
2007-05-21 04:39:49 +02:00
%files devel
%defattr (-,root,root)
2014-11-26 20:57:31 +01:00
%{_includedir} /%{name}
%{_libdir} /pkgconfig/%{name} .pc
%{_mandir} /man3/%{_name}.*
2010-08-27 14:55:53 +02:00
2007-10-25 02:40:36 +02:00
%files -n libpurple -f %{name}-%{version}-purpleplugins
2014-11-26 20:57:31 +01:00
%defattr (-,root,root)
2007-05-21 04:39:49 +02:00
%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
2014-11-26 20:57:31 +01:00
%{_datadir} /purple/
2007-05-21 04:39:49 +02:00
%{_libdir} /libpurple.so.*
%{_libdir} /libpurple-client.so.*
2014-11-26 20:57:31 +01:00
%dir %{_libdir} /purple-2/
%dir %{_libdir} /purple-2/perl/
%dir %{_libdir} /purple-2/perl/*/
%dir %{_libdir} /purple-2/perl/*/*
2009-12-04 16:07:44 +01:00
%files -n libpurple-lang -f %{name}.lang
2014-11-26 20:57:31 +01:00
%defattr (-,root,root)
2009-12-18 13:47:35 +01:00
# These locales are not yet included in respective products:
2014-11-26 20:57:31 +01:00
%if 0%{?suse_version} < 1140
2010-12-29 00:30:34 +01:00
# See https://bugzilla.novell.com/show_bug.cgi?id=659001
2014-11-26 20:57:31 +01:00
%dir %{_datadir} /locale/mhr/
%dir %{_datadir} /locale/mhr/LC_MESSAGES/
2011-04-15 09:21:17 +02:00
%endif
2007-05-21 04:39:49 +02:00
%files -n libpurple-meanwhile
2014-11-26 20:57:31 +01:00
%defattr (-,root,root)
2007-05-21 04:39:49 +02:00
%{_libdir} /purple-2/libsametime.*
2009-08-17 14:53:02 +02:00
%files -n libpurple-tcl
2014-11-26 20:57:31 +01:00
%defattr (-,root,root)
2009-08-17 14:53:02 +02:00
%{_libdir} /purple-2/tcl.so
2007-05-21 04:39:49 +02:00
%files -n libpurple-devel
2014-11-26 20:57:31 +01:00
%defattr (-,root,root)
2007-05-21 04:39:49 +02:00
%doc ChangeLog.API HACKING PLUGIN_HOWTO
2014-11-26 20:57:31 +01:00
%{_includedir} /libpurple/
2007-05-21 04:39:49 +02:00
%{_datadir} /aclocal/purple.m4
%{_libdir} /libpurple.so
%{_libdir} /libpurple-client.so
%{_libdir} /pkgconfig/purple.pc
%doc %{_mandir} /man3/Purple.*
2007-10-25 02:40:36 +02:00
%files -n finch -f %{name}-%{version}-finchplugins
2014-11-26 20:57:31 +01:00
%defattr (-,root,root)
2007-05-21 04:39:49 +02:00
%{_bindir} /finch
%{_libdir} /libgnt.so.*
2014-11-26 20:57:31 +01:00
%{_libdir} /gnt/
%dir %{_libdir} /finch/
%{_mandir} /man1/finch.*
2007-05-21 04:39:49 +02:00
%files -n finch-devel
2014-11-26 20:57:31 +01:00
%defattr (-,root,root)
%{_includedir} /finch/
%{_includedir} /gnt/
2007-05-21 04:39:49 +02:00
%{_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
%files -n libpurple-branding-upstream
2014-11-26 20:57:31 +01:00
%defattr (-,root,root)
%config %{_sysconfdir} /purple/prefs.xml
2011-07-08 09:38:03 +02:00
%endif
2007-05-21 04:39:49 +02:00
%changelog