File mingw64-pidgin-sipe.spec of Package mingw64-pidgin-sipe
#
# spec file for package mingw64-pidgin-sipe
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%_mingw64_package_header_debug
Name: mingw64-pidgin-sipe
Version: 1.23.3
Release: 0
Summary: Pidgin protocol plugin to connect to MS Office Communicator
License: GPL-2.0-or-later
Group: Productivity/Networking/Instant Messenger
URL: http://sipe.sourceforge.net/
Source: pidgin-sipe-%{version}.tar.xz
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc
BuildRequires: mingw64-cross-pkg-config
BuildRequires: mingw64-filesystem >= 23
BuildRequires: mingw64-gettext-runtime
BuildRequires: mingw64-glib2-devel >= 2.12.0
BuildRequires: mingw64-libpurple-devel >= 2.4.0
BuildRequires: mingw64-libxml2-devel
BuildRequires: mingw64-mozilla-nss-devel
BuildRequires: mingw64-pidgin
BuildRequires: translation-update-upstream
BuildRequires: xz
#!BuildIgnore: post-build-checks
Requires: mingw64-libpurple-plugin-sipe = %{version}
BuildArch: noarch
%description
A third-party plugin for the Pidgin multi-protocol instant messenger.
It implements the extended version of SIP/SIMPLE used by various products:
* Microsoft Office Communications Server (OCS 2007/2007 R2 and newer)
* Microsoft Live Communications Server (LCS 2003/2005)
* Reuters Messaging
With this plugin you should be able to replace your Microsoft Office
Communicator client with Pidgin.
This package provides the icon set for Pidgin.
%package -n mingw64-libpurple-plugin-sipe
Summary: Libpurple third-party plugin for Microsoft LCS/OCS
Group: Productivity/Networking/Instant Messenger
Enhances: mingw64-libpurple
%description -n mingw64-libpurple-plugin-sipe
A third-party plugin for the libpurple multi-protocol instant messaging core.
It implements the extended version of SIP/SIMPLE used by various products:
* Microsoft Office Communications Server (OCS 2007/2007 R2 and newer)
* Microsoft Live Communications Server (LCS 2003/2005)
* Reuters Messaging
%_mingw64_debug_package
%prep
%setup -q -n pidgin-sipe-%{version}
translation-update-upstream
%build
%{?env_options}
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
export MINGW64_CFLAGS="-Wno-error %{_mingw64_cflags}"
export MINGW64_LDFLAGS="-Wl,--exclude-libs=libintl.a -Wl,--exclude-libs=libiconv.a -lws2_32"
%{_mingw64_configure} \
--enable-purple \
--disable-telepathy
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}
%install
%{_mingw64_makeinstall}
find %{buildroot} -type f -name "*.la" -delete -print
rm -f %{buildroot}%{_mingw64_libdir}/purple-2/*.dll.a
# SLES11 defines suse_version = 1110
%if 0%{?suse_version} && 0%{?suse_version} < 1120
rm -r %{buildroot}%{_mingw64_datadir}/pixmaps/pidgin/protocols/scalable
%endif
%find_lang pidgin-sipe
%files -n mingw64-libpurple-plugin-sipe -f pidgin-sipe.lang
%license COPYING
%doc AUTHORS ChangeLog NEWS README TODO
%{_mingw64_libdir}/purple-2/libsipe.dll
%files
%license COPYING
%doc AUTHORS
%{_mingw64_datadir}/pixmaps/pidgin/protocols/*/sipe.png
# SLES11 defines suse_version = 1110
%if !0%{?suse_version} || 0%{?suse_version} >= 1120
%{_mingw64_datadir}/pixmaps/pidgin/protocols/*/sipe.svg
%endif
%{_mingw64_datadir}/appdata/pidgin-sipe.metainfo.xml
%changelog