File mingw32-pidgin.spec of Package mingw32-pidgin

#
# spec file for package mingw32-pidgin
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           mingw32-pidgin
Version:        2.10.12
Release:        0
Summary:        GTK+-Based Multiprotocol Instant Messaging Client
License:        GPL-2.0-or-later
Group:          Productivity/Networking/Instant Messenger
Url:            http://www.pidgin.im/
Source:         http://downloads.sourceforge.net/pidgin/pidgin-%{version}.tar.bz2
Patch1:         pidgin-%{version}-autotools.patch
Patch2:         pidgin-2.10.12-gcc-9-compile-fix.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gconf2
BuildRequires:  glib2-devel
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  libtool
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-dbus-1-glib-devel
BuildRequires:  mingw32-filesystem
BuildRequires:  mingw32-gconf2-devel
BuildRequires:  mingw32-gettext-tools
BuildRequires:  mingw32-glib2-devel
BuildRequires:  mingw32-gst-0_10-plugins-base-devel
BuildRequires:  mingw32-gstreamer-0_10-devel
BuildRequires:  mingw32-gtkspell-devel
BuildRequires:  mingw32-libidn-devel
BuildRequires:  mingw32-libxml2-devel
BuildRequires:  mingw32-meanwhile-devel
BuildRequires:  mingw32-mozilla-nspr-devel
BuildRequires:  mingw32-mozilla-nss-devel
BuildRequires:  mingw32-silc-toolkit-devel
BuildRequires:  mingw32-tcl-devel
BuildRequires:  mingw32-tk-devel
BuildRequires:  python
BuildRequires:  update-desktop-files
Requires:       mingw32-libpurple-lang = %{version}
%_mingw32_package_header_debug
BuildArch:      noarch
#!BuildIgnore: post-build-checks

%description
Pidgin allows you to talk to anyone using a variety of messaging
protocols including AIM, MSN, Yahoo!, Jabber, Bonjour, Gadu-Gadu, ICQ,
IRC, Novell Groupwise, QQ, Lotus Sametime, SILC, Simple and Zephyr.
These protocols are implemented using a modular, easy to use design. To
use a protocol, just add an account using the account editor.

Pidgin supports many common features of other clients, as well as many
unique features, such as Perl scripting, TCL scripting and C plugins.

Pidgin is not affiliated with or endorsed by America Online, Inc.,
Microsoft Corporation, Yahoo! Inc., or ICQ Inc.

%package devel
Summary:        MinGW Windows: Development Headers, Documentation, and Libraries for Pidgin
Group:          Productivity/Networking/Instant Messenger

%package -n mingw32-libpurple
Summary:        MinGW Windows: Library for IM Clients Like Pidgin and Finch
Group:          Productivity/Networking/Instant Messenger
Requires:       mingw32-libpurple-lang = %{version}
# Needed for purple-url-handler:
#Requires:       mingw32-python

%package -n mingw32-libpurple-devel
Summary:        MinGW Windows: Development Headers, Documentation, and Libraries for libpurple
Group:          Productivity/Networking/Instant Messenger

%package -n mingw32-libpurple-meanwhile
Summary:        MinGW Windows: Lotus Sametime Plugin for Pidgin Using the Meanwhile Library
Group:          Productivity/Networking/Instant Messenger

%description devel
The mingw32-pidgin-devel package contains the header files, developer
documentation, and libraries required for development of Pidgin scripts
and plugins.

%description -n mingw32-libpurple
libpurple contains the core IM support for IM clients such as Pidgin
and Finch.

libpurple supports a variety of messaging protocols including AIM, MSN,
Yahoo!, Jabber, Bonjour, Gadu-Gadu, ICQ, IRC, Novell Groupwise, QQ,
Lotus Sametime, SILC, Simple and Zephyr.

%description -n mingw32-libpurple-devel
The mingw32-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.

%description -n mingw32-libpurple-meanwhile
Lotus Sametime plugin for Pidgin using the Meanwhile library.

%_mingw32_debug_package

%lang_package -n mingw32-libpurple

%prep
%setup -q -n pidgin-%{version}
%autopatch -p1

## Change Myanmar/Myanmar to Myanmar:
##rename my_MM my po/my_MM.*
##%{__sed} -i "/^ALL_LINGUAS/s/ my_MM / my /" configure.ac

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
libtoolize --force --copy --install
autoreconf -f -i
%{_mingw32_configure} \
	--disable-static\
	--enable-plugins\
	--disable-cyrus-sasl\
	--enable-gstreamer\
	--disable-nm\
	--disable-startup-notification\
	--disable-vv\
	--disable-avahi\
	--disable-perl\
	--enable-nss\
	--disable-gnutls\
	--disable-devhelp\
	--enable-tcl \
	--with-tclconfig=%{_mingw32_libdir} \
	--enable-tk \
	--with-tkconfig=%{_mingw32_libdir} \
	--disable-dbus\
	--disable-schemas-install \
	--enable-gtkspell\
	--without-x

# fixup socklen_t mess
sed -i.bak -e 's,^\(#define socklen_t .*\),/* \1 */,' config.h

%{_mingw32_make} %{?_smp_mflags} || %{_mingw32_make}

%install
%{_mingw32_makeinstall}
rm -f %{buildroot}%{_mingw32_libdir}/purple-2/*.dll.a

%find_lang pidgin

%files
%defattr(-,root,root)
%doc AUTHORS COPYING COPYRIGHT ChangeLog NEWS README README.hg doc/the_penguin.txt
%{_mingw32_bindir}/pidgin.exe
%{_mingw32_bindir}/libpidgin.dll
#%{_mingw32_bindir}/libidletrack.dll
%{_mingw32_libdir}/purple-2/convcolors.dll
%{_mingw32_libdir}/purple-2/extplacement.dll
%{_mingw32_libdir}/purple-2/gtkbuddynote.dll
%{_mingw32_libdir}/purple-2/history.dll
%{_mingw32_libdir}/purple-2/iconaway.dll
%{_mingw32_libdir}/purple-2/markerline.dll
%{_mingw32_libdir}/purple-2/notify.dll
%{_mingw32_libdir}/purple-2/pidginrc.dll
%{_mingw32_libdir}/purple-2/relnot.dll
%{_mingw32_libdir}/purple-2/sendbutton.dll
%{_mingw32_libdir}/purple-2/spellchk.dll
%{_mingw32_libdir}/purple-2/timestamp.dll
%{_mingw32_libdir}/purple-2/timestamp_format.dll
%{_mingw32_libdir}/purple-2/xmppconsole.dll
%{_mingw32_libdir}/purple-2/xmppdisco.dll
#%{_mingw32_libdir}/purple-2/musicmessaging.dll
%{_mingw32_libdir}/purple-2/themeedit.dll
%{_mingw32_libdir}/purple-2/ticker.dll
%{_mingw32_libdir}/purple-2/win2ktrans.dll
%{_mingw32_libdir}/purple-2/winprefs.dll
%{_mingw32_datadir}/applications
#%{_mingw32_datadir}/doc
%{_mingw32_datadir}/icons
%{_mingw32_datadir}/man
%{_mingw32_datadir}/pixmaps
%{_mingw32_datadir}/appdata

%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/pidgin
#%{_mingw32_libdir}/libidletrack*
%{_mingw32_libdir}/libpidgin*
%{_mingw32_libdir}/pkgconfig/pidgin.pc

%files -n mingw32-libpurple
%defattr(-, root, root)
%{_mingw32_bindir}/libpurple.dll
%{_mingw32_bindir}/libjabber.dll
%{_mingw32_bindir}/liboscar.dll
%{_mingw32_bindir}/libymsg.dll
%{_mingw32_libdir}/purple-2/autoaccept.dll
%{_mingw32_libdir}/purple-2/buddynote.dll
#%{_mingw32_libdir}/purple-2/dbus-example.dll
%{_mingw32_libdir}/purple-2/idle.dll
%{_mingw32_libdir}/purple-2/joinpart.dll
%{_mingw32_libdir}/purple-2/log_reader.dll
%{_mingw32_libdir}/purple-2/newline.dll
%{_mingw32_libdir}/purple-2/nss-prefs.dll
%{_mingw32_libdir}/purple-2/offlinemsg.dll
%{_mingw32_libdir}/purple-2/psychic.dll
%{_mingw32_libdir}/purple-2/statenotify.dll
%{_mingw32_libdir}/purple-2/ssl.dll
%{_mingw32_libdir}/purple-2/ssl-nss.dll
%{_mingw32_libdir}/purple-2/tcl.dll
%{_mingw32_libdir}/purple-2/libgg.dll
%{_mingw32_libdir}/purple-2/libirc.dll
%{_mingw32_libdir}/purple-2/libxmpp.dll
%{_mingw32_libdir}/purple-2/libmsn.dll
%{_mingw32_libdir}/purple-2/libmxit.dll
%{_mingw32_libdir}/purple-2/libmyspace.dll
%{_mingw32_libdir}/purple-2/libnovell.dll
%{_mingw32_libdir}/purple-2/libaim.dll
%{_mingw32_libdir}/purple-2/libicq.dll
%{_mingw32_libdir}/purple-2/libsilcpurple.dll
%{_mingw32_libdir}/purple-2/libsimple.dll
%{_mingw32_libdir}/purple-2/libyahoo.dll
%{_mingw32_libdir}/purple-2/libyahoojp.dll
%{_mingw32_datadir}/purple
%{_mingw32_datadir}/sounds
%{_mingw32_sysconfdir}/gconf/schemas/purple.schemas

%files -n mingw32-libpurple-lang -f pidgin.lang
%defattr(-, root, root)

%files -n mingw32-libpurple-meanwhile
%defattr(-, root, root)
%{_mingw32_libdir}/purple-2/libsametime.dll

%files -n mingw32-libpurple-devel
%defattr(-, root, root)
%{_mingw32_includedir}/libpurple
%{_mingw32_libdir}/libjabber*
%{_mingw32_libdir}/liboscar*
%{_mingw32_libdir}/libpurple*
%{_mingw32_libdir}/libymsg*
%{_mingw32_libdir}/pkgconfig/purple.pc
%{_mingw32_datadir}/aclocal

%changelog
openSUSE Build Service is sponsored by