File mingw64-pidgin-otr.spec of Package mingw64-pidgin-otr

#
# spec file for package mingw64-pidgin-otr
#
# 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:           mingw64-pidgin-otr
Version:        4.0.1
Release:        0
Summary:        "Off The Record" end-to-end encryption plugin for gaim
License:        GPL-2.0-or-later
Group:          Productivity/Networking/Instant Messenger
Url:            http://www.cypherpunks.ca/otr/
Source:         http://www.cypherpunks.ca/otr/pidgin-otr-%{version}.tar.gz
Patch0:         pidgin-otr-%{version}-windows.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  intltool
BuildRequires:  libtool
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem >= 23
BuildRequires:  mingw64-gtk2-devel
BuildRequires:  mingw64-libgcrypt-devel
BuildRequires:  mingw64-libotr-devel >= 4.0.0
BuildRequires:  mingw64-libpurple-devel
BuildRequires:  mingw64-pidgin-devel
Requires:       %{name}-lang >= %{version}
%_mingw64_package_header_debug
BuildArch:      noarch
#!BuildIgnore: post-build-checks

%description
This is a pidgin plugin which implements Off-the-Record (OTR)
   Messaging. OTR allows you to have private conversations over IM
   by providing:

- Encryption

- No one else can read your instant messages.

- Authentication

- You are assured the correspondent is who you think it is.

- Deniability

- The messages you send do _not_ have digital signatures that are
   checkable by a third party.	Anyone can forge messages after a
   conversation to make them look like they came from you.  However,
   _during_ a conversation, your correspondent is assured the
   messages he sees are authentic and unmodified.

- Perfect forward secrecy

- If you lose control of your private keys, no previous conversation is
compromised.

%_mingw64_debug_package

%lang_package

%prep
%setup -q -n pidgin-otr-%{version}

%patch -P 0 -p1 -b .windows

%build
libtoolize --force --copy --install
export ACLOCAL='aclocal -I %{_mingw64_datadir}/aclocal'
autoreconf -fi

export PATH="%{_mingw64_bindir}:$PATH"

echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}

%{_mingw64_configure} --disable-static

make %{?_smp_mflags} || make

%install

make DESTDIR=%{buildroot} install %{?_smp_mflags}

rm -f %{buildroot}%{_mingw64_libdir}/pidgin/*.dll.a

mv %{buildroot}%{_mingw64_libdir}/pidgin %{buildroot}%{_mingw64_libdir}/purple-2

%find_lang pidgin-otr

%files
%defattr (-, root, root)
%{_mingw64_libdir}/purple-2/pidgin-otr.dll

%files lang -f pidgin-otr.lang
%defattr (-, root, root)

%changelog
openSUSE Build Service is sponsored by