Name: sasl-xoauth2 Version: 0.19 Release: 1%{?dist} Summary: The xoauth2 plugin for cyrus-sasl License: MIT URL: https://github.com/tarickb/%{name} Source0: https://github.com/tarickb/%{name}/archive/refs/tags/release-%{version}.tar.gz BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: libcurl-devel %if 0%{?rhel} < 8 BuildRequires: cmake3 %else BuildRequires: cmake %endif BuildRequires: cyrus-sasl-devel BuildRequires: jsoncpp-devel BuildRequires: sqlite-devel Requires: cyrus-sasl-lib %description sasl-xoauth2 is a SASL plugin that enables client-side use of OAuth 2.0. Among other things it enables the use of Gmail or Outlook/Office 365 SMTP relays from Postfix. %prep %setup -q -n %{name}-release-%{version} %build %if 0%{?rhel} < 8 %cmake3 -DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} %cmake3_build %else %cmake -DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} %cmake_build %endif %install %if 0%{?rhel} < 8 %cmake3_install %else %cmake_install %endif %files %doc README.md %license COPYING %{_libdir}/sasl-xoauth2/test-config %{_libdir}/sasl2/libsasl-xoauth2.so %{_bindir}/sasl-xoauth2-tool %config(noreplace) %{_sysconfdir}/sasl-xoauth2.conf %changelog * Mon Apr 17 2023 Jakub Jelen - 0.19-1 - First package in Fedora