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
#
2020-06-11 00:43:55 +02:00
# Copyright (c) 2020 SUSE LLC
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.
2020-06-11 00:43:55 +02:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2007-05-21 04:39:49 +02:00
#
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
2020-06-11 00:43:55 +02:00
Version : 2.14.0
2014-11-26 20:57:31 +01:00
Release : 0
2011-07-08 09:38:03 +02:00
Summary : Multiprotocol Instant Messaging Client
2018-03-07 17:58:39 +01:00
License : GPL-2.0-only
2007-07-24 01:33:28 +02:00
Group : Productivity/Networking/Instant Messenger
2018-05-30 23:55:49 +02:00
URL : https://pidgin.im/
2016-01-09 23:12:58 +01:00
Source : http://downloads.sf.net/%{name} /%{name} -%{version} .tar.bz2
Source1 : http://downloads.sf.net/%{name} /%{name} -%{version} .tar.bz2.asc
Source2 : pidgin.keyring
Source3 : pidgin-prefs.xml
2015-09-19 06:52:39 +02:00
# PATCH-FIX-OPENSUSE pidgin-nonblock-common.patch
Patch0 : pidgin-nonblock-common.patch
# PATCH-FIX-OPENSUSE pidgin-nonblock-gwim.patch
Patch1 : pidgin-nonblock-gwim.patch
2017-12-30 16:45:37 +01:00
# PATCH-FIX-OPENSUSE pidgin-fix-perl-build.patch vuntz@opensuse.org -- Revert https://bitbucket.org/pidgin/main/commits/a083625 as it breaks the build.
2018-03-07 19:13:02 +01:00
Patch2 : pidgin-fix-perl-build.patch
2016-12-16 12:06:02 +01:00
# PATCH-FIX-SLE pidgin-use-default-alsa.patch bsc#886670 tiwai@suse.de -- Use ALSA as a default for avoiding broken volume control.
2020-06-11 00:43:55 +02:00
Patch3 : pidgin-use-default-alsa.patch
2018-03-07 19:13:02 +01:00
BuildRequires : ca-certificates-mozilla
2008-08-29 01:41:51 +02:00
BuildRequires : doxygen
2014-11-26 20:57:31 +01:00
BuildRequires : fdupes
2008-08-29 01:41:51 +02:00
BuildRequires : graphviz
BuildRequires : gtk-doc
BuildRequires : intltool
2014-11-26 20:57:31 +01:00
BuildRequires : libstdc++-devel
BuildRequires : libtool
BuildRequires : libxslt
BuildRequires : ncurses-devel
2016-12-16 12:06:02 +01:00
BuildRequires : pkgconfig
2017-12-30 16:45:37 +01:00
BuildRequires : translation-update-upstream
2018-03-07 19:13:02 +01:00
BuildRequires : update-desktop-files
BuildRequires : pkgconfig(avahi-glib)
BuildRequires : pkgconfig(dbus-1)
BuildRequires : pkgconfig(dbus-glib-1)
2020-06-11 00:43:55 +02:00
BuildRequires : pkgconfig(farstream-0.2) >= 0.2.7
2018-03-07 19:13:02 +01:00
BuildRequires : pkgconfig(glib-2.0)
2020-06-11 00:43:55 +02:00
BuildRequires : pkgconfig(gnt) >= 2.14.0
2018-03-07 19:13:02 +01:00
BuildRequires : pkgconfig(gnutls)
2020-06-11 00:43:55 +02:00
BuildRequires : pkgconfig(gstreamer-1.0)
BuildRequires : pkgconfig(gstreamer-app-1.0)
BuildRequires : pkgconfig(gstreamer-video-1.0)
2018-03-07 19:13:02 +01:00
BuildRequires : pkgconfig(gtk+-2.0)
BuildRequires : pkgconfig(gtkspell-2.0)
BuildRequires : pkgconfig(libgadu)
BuildRequires : pkgconfig(libidn)
BuildRequires : pkgconfig(libnotify)
# Can use external libzephyr.
BuildRequires : pkgconfig(libsasl2)
BuildRequires : pkgconfig(libstartup-notification-1.0)
BuildRequires : pkgconfig(libxml-2.0)
BuildRequires : pkgconfig(meanwhile)
BuildRequires : pkgconfig(nspr)
BuildRequires : pkgconfig(nss)
BuildRequires : pkgconfig(python3)
BuildRequires : pkgconfig(sm)
BuildRequires : pkgconfig(tk)
BuildRequires : pkgconfig(x11)
BuildRequires : pkgconfig(xext)
BuildRequires : pkgconfig(xscrnsaver)
2016-07-21 07:41:33 +02:00
Requires : ca-certificates-mozilla
2018-03-07 19:13:02 +01:00
Requires : perl-base >= %{perl_version}
2017-12-30 16:45:37 +01:00
Recommends: gstreamer-plugins-good
%if 0%{?suse_version} >= 1500 && !0%{?is_opensuse}
Recommends: purple-import-empathy
2009-12-08 12:04:47 +01:00
%endif
2007-05-21 04:39:49 +02:00
%description
2016-12-16 12:06:02 +01:00
Pidgin is a messaging application which lets you log in to accounts
on multiple chat networks simultaneously.
2007-05-21 04:39:49 +02:00
2016-12-16 12:06:02 +01:00
Pidgin is compatible with the following chat networks out of the
box: Jabber/XMPP, AIM, ICQ, Bonjour, Gadu-Gadu, IRC, SILC, SIMPLE,
2017-03-21 22:45:50 +01:00
Novell GroupWise Messenger, IBM Sametime, 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 : libpurple-devel = %{version}
2018-03-07 19:13:02 +01:00
Requires : pkgconfig(glib-2.0)
Requires : pkgconfig(gtk+-2.0)
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
2017-05-24 14:23:22 +02:00
Group : System/Libraries
2018-03-07 19:13:02 +01:00
Requires : ca-certificates-mozilla
# Not really required, but standard XMPP accounts require it, if compiled with SASL support.
2012-02-28 14:14:54 +01:00
Requires : cyrus-sasl-digestmd5
Requires : cyrus-sasl-plain
2016-12-16 12:06:02 +01:00
Requires : libpurple-branding
2015-09-19 06:52:39 +02:00
Requires : perl >= %{perl_version}
2018-03-07 19:13:02 +01:00
# Needed for purple-url-handler.
Requires : python3-dbus-python
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.
2016-12-16 12:06:02 +01:00
libpurple is compatible with the following chat networks out of the
box: Jabber/XMPP, AIM, ICQ, Bonjour, Gadu-Gadu, IRC, SILC, SIMPLE,
2017-03-21 22:45:50 +01:00
Novell GroupWise Messenger, IBM Sametime, and Zephyr. It can
support many more with plugins.
2014-11-26 20:57:31 +01:00
%lang_package -n libpurple
2007-09-14 00:47:58 +02:00
2015-09-19 06:52:39 +02:00
%package -n libpurple-branding-upstream
Summary : GLib-based Instant Messenger Library -- Upstream default configuration
Group : System/Libraries
Requires : libpurple = %{version}
2020-06-11 00:43:55 +02:00
Supplements: (libpurple and branding-upstream)
2018-05-30 23:56:57 +02:00
Conflicts : otherproviders(libpurple-branding)
2015-09-19 06:52:39 +02:00
Provides : libpurple-branding = %{version}
BuildArch : noarch
#BRAND: Provides /etc/purple/prefs.xml, the default configuration for
#BRAND: libpurple, and libpurple-based clients.
%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.
2016-12-16 12:06:02 +01:00
libpurple is compatible with the following chat networks out of the
box: Jabber/XMPP, AIM, ICQ, Bonjour, Gadu-Gadu, IRC, SILC, SIMPLE,
2017-03-21 22:45:50 +01:00
Novell GroupWise Messenger, IBM Sametime, and Zephyr. It can
support many more with plugins.
2015-09-19 06:52:39 +02:00
2016-12-16 12:06:02 +01:00
This package provides the upstream default configuration for Pidgin.
2015-09-19 06:52:39 +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 : libpurple = %{version}
2018-03-07 19:19:16 +01:00
Requires : pkgconfig(glib-2.0)
Requires : pkgconfig(libxml-2.0)
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
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}
2020-06-11 00:43:55 +02:00
Supplements: (libpurple and tcl)
2009-08-17 14:53:02 +02:00
2014-11-26 20:57:31 +01:00
%description -n libpurple-tcl
2016-12-16 12:06:02 +01:00
TCL plugin loader for Pidgin. This package will allow you to write
or use Pidgin plugins written in the TCL programming language.
%package -n libpurple-plugin-sametime
Summary : Sametime Plugin for Pidgin using the Meanwhile Library
Group : Productivity/Networking/Instant Messenger
Requires : libpurple = %{version}
# libpurple-meanwhile was last used in openSUSE Leap 42.2.
2018-03-07 19:13:02 +01:00
Provides : libpurple-meanwhile = %{version}
Obsoletes : libpurple-meanwhile < %{version}
2016-12-16 12:06:02 +01:00
%description -n libpurple-plugin-sametime
IBM Sametime plugin for Pidgin using the Meanwhile library.
2014-11-26 20:57:31 +01:00
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
2016-12-16 12:06:02 +01:00
A text-based user interface to use with libpurple. This can be run
from a standard text console or from a graphical terminal emulator.
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 : glibc-devel
Requires : libpurple-devel = %{version}
Requires : ncurses-devel
2018-03-07 19:19:16 +01:00
Requires : pkgconfig(glib-2.0)
2007-05-21 04:39:49 +02:00
2014-11-26 20:57:31 +01:00
%description -n finch-devel
The finch-devel package contains the header files, developer
2016-12-16 12:06:02 +01:00
documentation, and libraries required for development of Finch
scripts and plugins.
2011-07-08 09:38:18 +02:00
2007-05-21 04:39:49 +02:00
%prep
2016-12-16 12:06:02 +01:00
%setup -q
2009-03-18 01:37:34 +01:00
translation-update-upstream
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
2016-12-16 12:06:02 +01:00
%if 0%{?sle_version} >= 120000 && !0%{?is_opensuse}
2020-06-11 00:43:55 +02:00
%patch3 -p1
2016-09-09 10:19:33 +02:00
%endif
2016-01-09 23:12:58 +01:00
cp -f %{SOURCE3} %{name} -prefs.xml
2012-05-16 21:09:00 +02:00
2014-11-26 20:57:31 +01:00
# Change Myanmar/Myanmar to Myanmar.
2016-12-16 12:06:02 +01:00
mv po/my_MM.po po/my.po
2014-11-26 20:57:31 +01: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
2017-11-07 12:21:38 +01:00
# Do not use env for python sripts.
2018-03-07 19:13:02 +01:00
sed -i '/^#!/s|env python$|python3|' libpurple/purple-*
2017-11-02 15:52:02 +01:00
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 "
2018-03-07 19:13:02 +01:00
export PYTHON=python3
2010-08-27 14:55:53 +02:00
autoreconf -fi
2014-11-26 20:57:31 +01:00
%configure \
--disable-static \
--enable-plugins \
--enable-cyrus-sasl \
--enable-dbus \
--enable-gstreamer \
2015-08-15 11:38:18 +02:00
--with-gstreamer=1.0 \
2015-09-19 06:52:39 +02:00
--enable-vv \
2018-05-30 23:55:49 +02:00
--disable-nm \
2014-11-26 20:57:31 +01:00
--enable-dbus \
--enable-devhelp \
--with-tclconfig=%{_libdir} \
--with-tkconfig=%{_libdir} \
--with-system-ssl-certs=%{_sysconfdir} /ssl/certs/
2020-06-11 00:43:55 +02:00
%make_build
2007-05-21 04:39:49 +02:00
%install
2014-11-26 20:57:31 +01:00
%make_install
2016-12-16 12:06:02 +01:00
install -Dpm 0644 %{name} -prefs.xml %{buildroot} %{_sysconfdir} /purple/prefs.xml
2014-11-26 20:57:31 +01:00
%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
2015-09-19 06:52:39 +02:00
2014-11-26 20:57:31 +01:00
%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}
2011-02-14 01:10:26 +01:00
%find_lang %{name} %{?no_lang_C}
2007-05-21 04:39:49 +02:00
2018-05-30 23:56:57 +02:00
%post -n libpurple -p /sbin/ldconfig
%postun -n libpurple -p /sbin/ldconfig
%post -n finch -p /sbin/ldconfig
%postun -n finch -p /sbin/ldconfig
2015-09-19 06:52:39 +02:00
%files
2018-05-30 23:55:49 +02:00
%license COPYING
2018-03-07 17:58:39 +01:00
%doc AUTHORS COPYRIGHT ChangeLog README doc/the_penguin.txt
2014-11-26 20:57:31 +01:00
%{_bindir} /%{name}
%{_libdir} /%{name} /
2016-12-16 12:06:02 +01:00
%{_datadir} /sounds/purple/
%{_datadir} /applications/*.desktop
%{_datadir} /icons/hicolor/*/apps/*
%{_datadir} /pixmaps/%{name} /
2015-09-19 06:52:39 +02:00
%dir %{_datadir} /appdata/
2014-11-26 20:57:31 +01:00
%{_datadir} /appdata/pidgin.appdata.xml
2016-07-21 07:41:33 +02:00
%{_mandir} /man1/%{name} .1%{?ext_man}
2007-05-21 04:39:49 +02:00
%files devel
2016-12-16 12:06:02 +01:00
%{_includedir} /%{name} /
2014-11-26 20:57:31 +01:00
%{_libdir} /pkgconfig/%{name} .pc
2016-07-21 07:41:33 +02:00
%{_mandir} /man3/%{_name}.3*%{?ext_man}
2010-08-27 14:55:53 +02:00
2016-12-16 12:06:02 +01:00
%files -n libpurple
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
%{_libdir} /libpurple.so.*
%{_libdir} /libpurple-client.so.*
2016-12-16 12:06:02 +01:00
%{_libdir} /purple-2/
2018-03-16 18:03:36 +01:00
%exclude %{_libdir} /purple-2/libjabber.so
%exclude %{_libdir} /purple-2/liboscar.so
2016-12-16 12:06:02 +01:00
%exclude %{_libdir} /purple-2/libsametime.so
%exclude %{_libdir} /purple-2/tcl.so
2009-12-04 16:07:44 +01:00
%files -n libpurple-lang -f %{name}.lang
2007-05-21 04:39:49 +02:00
2015-09-19 06:52:39 +02:00
%files -n libpurple-branding-upstream
%config %{_sysconfdir} /purple/prefs.xml
2007-05-21 04:39:49 +02:00
2009-08-17 14:53:02 +02:00
%files -n libpurple-tcl
%{_libdir} /purple-2/tcl.so
2016-12-16 12:06:02 +01:00
%files -n libpurple-plugin-sametime
%{_libdir} /purple-2/libsametime.so
2007-05-21 04:39:49 +02:00
%files -n libpurple-devel
%doc ChangeLog.API HACKING PLUGIN_HOWTO
2015-09-19 06:52:39 +02:00
%doc libpurple/purple-notifications-example
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
2018-03-16 18:03:36 +01:00
%{_libdir} /purple-2/libjabber.so
%{_libdir} /purple-2/liboscar.so
2007-05-21 04:39:49 +02:00
%{_libdir} /pkgconfig/purple.pc
2018-05-30 23:55:49 +02:00
%{_mandir} /man3/Purple.3pm%{?ext_man}
2007-05-21 04:39:49 +02:00
2016-12-16 12:06:02 +01:00
%files -n finch
2007-05-21 04:39:49 +02:00
%{_bindir} /finch
2016-12-16 12:06:02 +01:00
%{_libdir} /finch/
2014-11-26 20:57:31 +01:00
%dir %{_libdir} /finch/
2018-05-30 23:55:49 +02:00
%{_mandir} /man1/finch.1%{?ext_man}
2007-05-21 04:39:49 +02:00
%files -n finch-devel
2014-11-26 20:57:31 +01:00
%{_includedir} /finch/
2007-11-09 23:28:11 +01:00
%{_libdir} /pkgconfig/finch.pc
2007-12-11 01:12:21 +01:00
2007-05-21 04:39:49 +02:00
%changelog