## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 11; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %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} Name: python-%{pkgname} Version: 1.4.4.post2 Release: %autorelease Summary: %{summary} License: Apache-2.0 URL: https://github.com/aio-libs/aiosmtpd Source0: %{url}/archive/%{version}/%{pkgname}-%{version}.tar.gz # Proposed python3.13 test fix # See https://github.com/aio-libs/aiosmtpd/pull/473 Patch0: aiosmtpd-py313.patch BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel # Required for tests BuildRequires: git-core %description %{_description} %package -n python%{python3_pkgversion}-%{pkgname} Summary: %{summary} %description -n python%{python3_pkgversion}-%{pkgname} %{_description} %prep %autosetup -p1 -n %{srcname}-%{version} # Remove unused cosmetic dependencies to tests sed -i 's/pytest-print//' tox.ini sed -i 's/pytest-sugar//' tox.ini sed -i 's/pytest-profiling//' tox.ini # Remove unused linter dependency sed -i 's/bandit//' tox.ini rm aiosmtpd/docs/.gitignore rm examples/authenticated_relayer/.gitignore %generate_buildrequires %pyproject_buildrequires -t -e nocov %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pkgname} %check %{__python3} -m pytest -v -k "not (unknown_args_ or factory_none or noexc_smtpd_missing)" # %%tox %files -n python%{python3_pkgversion}-%{pkgname} -f %{pyproject_files} %license LICENSE %doc README.rst examples %{_bindir}/aiosmtpd %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 1.4.4.post2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 28 2024 Sandro Mani - 1.4.4.post2-10 - Backport proposed fix for py3.13 test failure * Fri Jun 07 2024 Python Maint - 1.4.4.post2-9 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.4.4.post2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.4.4.post2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.4.4.post2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Wed Jul 12 2023 Michel Alexandre Salim - 1.4.4.post2-5 - Migrate to pyproject macros - Remove unused dependencies and linters - Use SPDX license identifier - credit: Steve Traylen for original PR * Thu Jun 15 2023 Python Maint - 1.4.4.post2-2 - Rebuilt for Python 3.12 * Sat May 13 2023 Neal Gompa - 1.4.4.post2-1 - Update to 1.4.4.post2 * Fri Jan 20 2023 Fedora Release Engineering - 1.4.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * 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. ## END: Generated by rpmautospec