%bcond_without cap # without Contact Availability Prediction
%bcond_without dbus # without D-BUS (for pidgin-remote and others)
%bcond_without doc # do not generate and include documentation
-%bcond_with dotnet # build with mono support
%bcond_without perl # build without Perl support
%bcond_with evolution # compile without the Pidgin-Evolution plugin
%bcond_with gnutls # use GnuTLS instead of NSS
%undefine with_nm
%endif
-# plain i386 is not supported; mono uses cmpxchg/xadd which require i486
-%ifarch i386
-%undefine with_dotnet
-%endif
-
%define gtk2_ver 2.10.6
-%define glib2_ver 2.24.0
+%define glib2_ver 2.26.0
Summary: A GTK+ based multiprotocol instant messaging client
Summary(de.UTF-8): Pidgin ist ein Instant Messenger
Summary(pl.UTF-8): Oparty na GTK+ klient komunikatorów obsługujący wiele protokołów
Summary(pt_BR.UTF-8): Um cliente para o AOL Instant Messenger (AIM)
Name: pidgin
-Version: 2.13.0
-Release: 8
+Version: 2.14.1
+Release: 1
License: GPL v2+
Group: Applications/Communications
Source0: http://downloads.sourceforge.net/pidgin/%{name}-%{version}.tar.bz2
-# Source0-md5: 423403494fe1951e47cc75231f743bb0
+# Source0-md5: e135798bcf952ddb3c9e030c4b160c3e
Patch0: %{name}-nolibs.patch
Patch1: %{name}-dbus-dir.patch
-# Patch2: %{name}-libgadu.patch
-# http://developer.pidgin.im/ticket/14936
-Patch3: %{name}-port-to-farstream.patch
-Patch4: nm-1.0.patch
-Patch5: python-3.8.patch
URL: http://www.pidgin.im/
BuildRequires: GConf2
BuildRequires: GConf2-devel >= 2.16.0
%{?with_sasl:BuildRequires: cyrus-sasl-devel}
%{?with_dbus:BuildRequires: dbus-glib-devel >= 0.71}
%{?with_evolution:BuildRequires: evolution-data-server-devel >= 1.8.1}
-BuildRequires: farstream-devel
+BuildRequires: farstream-devel >= 0.2.7
BuildRequires: gettext-tools
BuildRequires: glib2-devel >= 1:%{glib2_ver}
%{?with_gnutls:BuildRequires: gnutls-devel}
-BuildRequires: gstreamer0.10-devel >= 0.10.10
+BuildRequires: gstreamer-devel >= 1.0
BuildRequires: gtk+2-devel >= 2:%{gtk2_ver}
%{?with_gtkspell:BuildRequires: gtkspell-devel >= 1:2.0.16-2}
BuildRequires: intltool
BuildRequires: libgadu-devel
+%{?with_text:BuildRequires: libgnt-devel >= 2.14.0}
BuildRequires: libidn-devel
BuildRequires: libtool
BuildRequires: libxml2-devel >= 2.6.26
%{?with_meanwhile:BuildRequires: meanwhile-devel >= 1.0.0}
-%{?with_dotnet:BuildRequires: mono-csharp}
-%{?with_dotnet:BuildRequires: mono-devel}
-%{?with_text:BuildRequires: ncurses-ext-devel}
+BuildRequires: pango-devel >= 1.4.0
BuildRequires: rpm >= 4.4.9-56
+%if %{with text}
+BuildRequires: ncurses-devel
+BuildRequires: ncurses-ext-devel
+%endif
%if %{without gnutls}
BuildRequires: nspr-devel
BuildRequires: nss-devel
BuildRequires: sqlite3-devel >= 3.3
%endif
BuildRequires: xorg-lib-libSM-devel
+BuildRequires: xorg-lib-libX11-devel
BuildRequires: xorg-lib-libXScrnSaver-devel
%if %{with doc}
BuildRequires: doxygen
Requires: ca-certificates
%{?with_sasl:Requires: cyrus-sasl-digest-md5}
%{?with_sasl:Requires: cyrus-sasl-plain}
+Requires: farstream >= 0.2.7
Requires: glib2 >= 1:%{glib2_ver}
Obsoletes: libpurple-protocol-dir < 2.6.6-2
Obsoletes: pidgin-libs < 2.6.6-2
Requires: dbus-devel >= 0.60
%endif
Requires: dbus-glib-devel >= 0.70
-Requires: farstream-devel
+Requires: farstream-devel >= 0.2.7
Obsoletes: pidgin-devel < 2.6.6-2
%description -n libpurple-devel
Summary: A text-based user interface for Pidgin
Summary(pl.UTF-8): Tekstowy interfejs użytkownika dla Pidgina
Group: Applications/Networking
+Requires: libgnt >= 2.14.0
Requires: libpurple = %{version}-%{release}
%description -n finch
%setup -q
%patch0 -p1
%patch1 -p1
-#%%patch2 -p1
-#%patch3 -p1
-%patch4 -p1
-%patch5 -p1
-%build
-%if %{with dotnet}
-if [ ! -f /proc/cpuinfo ]; then
- echo >&2 "Mono requires /proc to be mounted."
- exit 1
-fi
-%endif
+%{__sed} -i -e '1s|#!/usr/bin/env python$|#!%{__python}|' libpurple/purple-{remote,url-handler}
-# %{__intltoolize}
+%build
%{__libtoolize}
%{__aclocal} -I m4macros
%{__autoheader}
--disable-silent-rules \
--%{?with_vv:en}%{!?with_vv:dis}able-vv \
%{!?with_gnutls:--enable-gnutls=no} \
+ %{!?with_meanwhile:--enable-meanwhile=no} \
%{?with_gnutls:--enable-nss=no} \
%{?with_doc:--enable-dot --enable-devhelp} \
%{!?with_silc:--with-silc-includes=not_existent_directory} \
--%{?with_nm:en}%{!?with_nm:dis}able-nm \
--%{?with_evolution:en}%{!?with_evolution:dis}able-gevolution \
--%{!?with_gtkspell:dis}%{?with_gtkspell:en}able-gtkspell \
- --%{!?with_dotnet:dis}%{?with_dotnet:en}able-mono \
--%{!?with_perl:dis}%{?with_perl:en}able-perl \
--%{?with_text:en}%{!?with_text:dis}able-consoleui \
--with-gadu-libs=%{_libdir} \
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ar_SA
%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/mhr
%{__mv} $RPM_BUILD_ROOT%{_localedir}/my{_MM,}
%{__mv} $RPM_BUILD_ROOT%{_localedir}/ms{_MY,}
%find_lang %{name} --with-gnome
+%if %{with text}
%{__rm} $RPM_BUILD_ROOT%{_libdir}/finch/*.la
-%{__rm} $RPM_BUILD_ROOT%{_libdir}/gnt/*.la
+%endif
%{__rm} $RPM_BUILD_ROOT%{_libdir}/pidgin/*.la
%{__rm} $RPM_BUILD_ROOT%{_libdir}/purple-2/*.la
%attr(755,root,root) %{_libdir}/purple-2/offlinemsg.so
%attr(755,root,root) %{_libdir}/purple-2/psychic.so
%attr(755,root,root) %{_libdir}/purple-2/ssl.so
+%if %{without gnutls}
%attr(755,root,root) %{_libdir}/purple-2/nss-prefs.so
+%attr(755,root,root) %{_libdir}/purple-2/ssl-nss.so
+%endif
%{?with_gnutls:%attr(755,root,root) %{_libdir}/purple-2/ssl-gnutls.so}
-%{!?with_gnutls:%attr(755,root,root) %{_libdir}/purple-2/ssl-nss.so}
%attr(755,root,root) %{_libdir}/purple-2/statenotify.so
-%if %{with dotnet}
-#%attr(755,root,root) %{_libdir}/purple-2/*.dll
-#%attr(755,root,root) %{_libdir}/purple-2/mono.so
-%endif
%{_datadir}/sounds/purple
%if %{with dbus}
%files -n finch
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/finch
-%attr(755,root,root) %{_libdir}/libgnt.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libgnt.so.0
%dir %{_libdir}/finch
%attr(755,root,root) %{_libdir}/finch/gntclipboard.so
%attr(755,root,root) %{_libdir}/finch/gntgf.so
%attr(755,root,root) %{_libdir}/finch/gntlastlog.so
%attr(755,root,root) %{_libdir}/finch/gnttinyurl.so
%attr(755,root,root) %{_libdir}/finch/grouping.so
-%dir %{_libdir}/gnt
-%attr(755,root,root) %{_libdir}/gnt/*.so
%{_mandir}/man1/finch.*
%files -n finch-devel
%defattr(644,root,root,755)
%{_includedir}/finch
-%{_includedir}/gnt
-%attr(755,root,root) %{_libdir}/libgnt.so
-%{_libdir}/libgnt.la
%{_pkgconfigdir}/finch.pc
-%{_pkgconfigdir}/gnt.pc
%endif
%files devel