File mingw64-libotr.spec of Package mingw64-libotr

#
# spec file for package mingw64-libotr
#
# 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-libotr
Version:        4.1.0
Release:        0
Summary:        "Off The Record" messaging library toolkit
License:        LGPL-2.1-or-later
Group:          Development/Libraries/C and C++
Url:            http://www.cypherpunks.ca/otr/
Source:         http://www.cypherpunks.ca/otr/libotr-%{version}.tar.gz
Patch0:         libotr-%{version}-windows.patch
#!BuildIgnore: post-build-checks
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libgcrypt-devel
BuildRequires:  libtool
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem >= 23
BuildRequires:  mingw64-libgcrypt-devel >= 1.2.0
%_mingw64_package_header_debug
BuildArch:      noarch

%description
Off-the-Record (OTR) Messaging allows you to have private conversations
over instant messaging by providing: Encryption, Authentication, Deniability.

%package -n mingw64-libotr5
Summary:        "Off The Record" messaging library toolkit
Group:          System/Libraries
Obsoletes:      %{name}
Provides:       %{name}

%description -n mingw64-libotr5
Off-the-Record (OTR) Messaging allows you to have private conversations
over instant messaging 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.

%package devel
Summary:        Include files and development libraries
Group:          Development/Libraries/C and C++

%description devel
Headers and development libraries for libotr

%package tools
Summary:        "Off The Record" messaging library toolkit
Group:          Development/Libraries

%description tools
Off-the-Record (OTR) Messaging allows you to have private conversations
over instant messaging 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

%prep
%setup -q -n libotr-%{version}
%patch -P 0 -p1

%build
libtoolize --force --copy --install
autoreconf -f -i
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
	--disable-static --enable-shared
make %{?_smp_mflags} || make

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

%files -n mingw64-libotr5
%defattr(-,root,root)
%{_mingw64_bindir}/libotr-5.dll

%files devel
%defattr(-,root,root)
%{_mingw64_includedir}/libotr
%{_mingw64_datadir}/aclocal/libotr.m4
%{_mingw64_libdir}/libotr.dll.a
%{_mingw64_libdir}/pkgconfig/libotr.pc

%files tools
%defattr(-,root,root)
%{_mingw64_bindir}/otr_mackey.exe
%{_mingw64_bindir}/otr_modify.exe
%{_mingw64_bindir}/otr_parse.exe
%{_mingw64_bindir}/otr_readforge.exe
%{_mingw64_bindir}/otr_remac.exe
%{_mingw64_bindir}/otr_sesskeys.exe
%{_mingw64_mandir}/man1/otr_mackey.1*
%{_mingw64_mandir}/man1/otr_modify.1*
%{_mingw64_mandir}/man1/otr_parse.1*
%{_mingw64_mandir}/man1/otr_readforge.1*
%{_mingw64_mandir}/man1/otr_remac.1*
%{_mingw64_mandir}/man1/otr_sesskeys.1*
%{_mingw64_mandir}/man1/otr_toolkit.1*

%changelog
openSUSE Build Service is sponsored by