Name: cyrus-sasl-xoauth2 Version: 0.2 Release: 2%{?dist} Summary: The xoauth2 plugin for cyrus-sasl License: MIT URL: https://github.com/moriyoshi/%{name} Source0: https://github.com/moriyoshi/%{name}/archive/v%{version}.tar.gz BuildRequires: gcc BuildRequires: cyrus-sasl-devel BuildRequires: automake BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: sqlite-devel Requires: cyrus-sasl-lib %description 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: http://mmogilvi.users.sourceforge.net/software/oauthbearer.html (DISCLAIMER: in contrast to the document's author, I'd rather read and write emails on my browser a lot. I haven't tested it personally) %prep %setup -q %build ./autogen.sh %configure --with-plugindir=%{_libdir}/sasl2 sed -i 's%pkglibdir = ${CYRUS_SASL_PREFIX}/lib/sasl2%pkglibdir = ${CYRUS_SASL_PREFIX}/lib64/sasl2%' Makefile %make_build %install %make_install ## Unpackaged files rm -fv %{buildroot}%{_libdir}/sasl2/lib*.la rm -fv %{buildroot}%{_libdir}/sasl2/libxoauth2.a %files %doc README.md %license COPYING %{_libdir}/sasl2/libxoauth2.so %{_libdir}/sasl2/libxoauth2.so.0 %{_libdir}/sasl2/libxoauth2.so.0.0.0 %changelog * Fri Oct 14 2022 Jakub Jelen - 0.2-2 - Clean up the spec file to match packaging guidelines * Tue Jun 16 2020 Nurmukhamed Artykaly - 0.2 - Initial commit