%global pkgname aiosmtpd %global summary Asyncio-based SMTP server %global _description \ This is a server for SMTP and related protocols, similar in utility \ to the standard library’s smtpd.py module, but rewritten to be based \ on asyncio for Python 3. %global srcname %{pkgname} %global with_docs 0 Name: python-%{pkgname} Version: 1.4.2 Release: 9%{?dist} Summary: %{summary} License: ASL 2.0 URL: https://github.com/aio-libs/aiosmtpd Source0: %{url}/archive/%{version}/%{pkgname}-%{version}.tar.gz # Backports from upstream Patch0001: 0001-Implement-Unthreaded-Controller-256.patch Patch0002: 0002-Code-Hygiene-259.patch Patch0003: 0003-URGENT-Fix-RTD-docs-gen.patch Patch0004: 0004-Make-Sphinx-RTD-deps-SSOT.patch # Avoid SSLError: Cannot create a client socket with a PROTOCOL_TLS_SERVER context # Not merged yet when introduced here Patch0005: %{url}/pull/284.patch BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel >= 3.4 BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-atpublic BuildRequires: python%{python3_pkgversion}-flufl-testing BuildRequires: python%{python3_pkgversion}-pytest BuildRequires: python%{python3_pkgversion}-pytest-mock # Required for tests BuildRequires: git-core %if 0%{?with_docs} BuildRequires: python%{python3_pkgversion}-sphinx %endif %description %{_description} %package -n python%{python3_pkgversion}-%{pkgname} Summary: %{summary} Requires: python%{python3_pkgversion}-atpublic %{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}} %description -n python%{python3_pkgversion}-%{pkgname} %{_description} %prep %autosetup -p1 -n %{srcname}-%{version} %build %py3_build %install %py3_install # Cleanups rm -rf %{buildroot}%{python3_sitelib}/examples rm -f %{buildroot}%{python3_sitelib}/aiosmtpd/docs/.gitignore %check # Tests don't seem to work properly in the build environment # Cf. https://github.com/aio-libs/aiosmtpd/issues/277 %{__python3} -m pytest -v || : %files -n python%{python3_pkgversion}-%{pkgname} %doc README.rst examples %if 0%{?with_docs} %doc build/sphinx/html %endif %{_bindir}/aiosmtpd %{python3_sitelib}/* %changelog * Fri Jul 22 2022 Fedora Release Engineering - 1.4.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.4.2-8 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.4.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Sep 23 2021 Miro Hrončok - 1.4.2-6 - Avoid SSLError: Cannot create a client socket with a PROTOCOL_TLS_SERVER context * Fri Sep 17 2021 Neal Gompa - 1.4.2-5 - Backport patches for some Python 3.10 support * Fri Sep 17 2021 Neal Gompa - 1.4.2-4 - Allow tests to fail to fix FTBFS * Fri Jul 23 2021 Fedora Release Engineering - 1.4.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.4.2-2 - Rebuilt for Python 3.10 * Tue Mar 30 2021 Neal Gompa - 1.4.2-1 - Rebase to 1.4.2 - Drop unused alternate build logic * Wed Jan 27 2021 Fedora Release Engineering - 1.2.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.2.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.2.1-7 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.2.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Sep 30 2019 Aurelien Bompard - 1.2.1-2 - Fix build * Mon Aug 19 2019 Miro Hrončok - 1.2.1-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Nov 20 2018 Aurelien Bompard - 1.2.1-1 - Update to 1.2.1. * Fri Jul 13 2018 Fedora Release Engineering - 1.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.0-5 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Jun 03 2017 Aurelien Bompard - 1.0-0.1.a5 - Update to 1.0 final. * Mon Apr 10 2017 Aurelien Bompard - 1.0-0.1.a5 - Update to 1.0a5. * Wed Dec 14 2016 Aurelien Bompard - 1.0-0.1.a4 - Initial package.