File cyrus-sasl-xoauth2.spec of Package cyrus-sasl-xoauth2

# spec file for package cyrus-sasl
# 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

Name:           cyrus-sasl-xoauth2
Version:        0.2
Release:        0
Summary:        XOAUTH2 mechanism plugin for cyrus-sasl
License:        MIT
Group:          Productivity/Networking/Other
Patch1:         wreturntype-error.patch
Patch2:         use-libdir.patch
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  cyrus-sasl-devel
BuildRequires:  cyrus-sasl

This is a plugin implementation of XOAUTH2.

FYI: if you are forced to use XOAUTH2-enabled SMTP / IMAP servers by your
employer and want to keep using your favorite *nix MUA locally, the following
detailed document should help a lot: 

%setup -q
%autopatch -p1

export CFLAGS="%optflags -fno-strict-aliasing"
%configure --with-pic \
            --with-plugindir=%{_libdir}/sasl2 \
            --with-configdir=/etc/sasl2/:%{_libdir}/sasl2 \
	    --with-saslauthd=/run/sasl2/ \
	    --enable-pam \
            --disable-static \
%{__make} %{?_smp_mflags} sasldir=%{_libdir}/sasl2

make DESTDIR=$RPM_BUILD_ROOT sasldir=%{_libdir}/sasl2 install

%license COPYING

openSUSE Build Service is sponsored by