## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 Name: python-matrix-nio Version: 0.22.0 Release: %autorelease Summary: A Matrix client library # ASL: # matrix_nio-0.21.2//nio/crypto/attachments.py: Apache License 2.0 # matrix_nio-0.21.2//nio/crypto/key_export.py: Apache License 2.0 # matrix_nio-0.21.2//nio/store/database.py: Apache License 2.0 # matrix_nio-0.21.2//nio/store/models.py: Apache License 2.0 # All other files: ISC License: ISC and Apache-2.0 URL: https://pypi.python.org/pypi/matrix-nio Source0: %{pypi_source matrix_nio} BuildArch: noarch %global _description %{expand: nio is a multilayered Matrix client library. The underlying base layer doesn't do any network IO on its own, but on top of that is a full fledged batteries-included asyncio layer using aiohttp. File IO is only done if you enable end-to-end encryption (E2EE).} %description %_description %package -n python3-matrix-nio Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-toml BuildRequires: python3-logbook %description -n python3-matrix-nio %_description %prep %autosetup -n matrix_nio-%{version} # Update BRs sed \ -e 's/^aiohttp-socks.*/aiohttp-socks = "*"/' \ -e 's/^aiofiles.*/aiofiles = "*"/' \ -e 's/^cachetools.*/cachetools = "*"/' \ -e 's/^h11.*/h11 = "*"/' \ -e 's/^h2.*/h2 = "*"/' \ -e 's/^pycryptodome.*/pycryptodomex = "*"/' \ -e 's/^jsonschema.*/jsonschema = "*"/' \ -i pyproject.toml # Remove backup file rm -fv nio/events/room_events.py.orig # use cryptodomex instead of crypto # https://bugzilla.redhat.com/show_bug.cgi?id=2061832 find . -name "*.py" -exec sed -i 's/^from Crypto/from Cryptodome/' '{}' \; %generate_buildrequires %pyproject_buildrequires -x e2e %build %pyproject_wheel %install %pyproject_install %pyproject_save_files nio %check %pyproject_check_import %files -n python3-matrix-nio -f %{pyproject_files} %license LICENSE.md %doc README.md %changelog * Fri Oct 06 2023 Packit - 0.22.0-1 - [packit] 0.22.0 upstream release * Tue Aug 15 2023 Ankur Sinha (Ankur Sinha Gmail) - 0.21.2-2 - feat: use spdx license * Tue Aug 15 2023 Packit - 0.21.2-1 - [packit] 0.21.2 upstream release * Tue Aug 15 2023 Ankur Sinha (Ankur Sinha Gmail) - 0.20.2-4 - feat: add packit * Fri Jul 21 2023 Fedora Release Engineering - 0.20.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jul 06 2023 Python Maint - 0.20.2-2 - Rebuilt for Python 3.12 * Tue Mar 28 2023 Ankur Sinha (Ankur Sinha Gmail) - 0.20.2-1 - feat: update to 0.20.2 (fixes rhbz#2182242) * Fri Jan 20 2023 Fedora Release Engineering - 0.20.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Nov 15 2022 Ankur Sinha (Ankur Sinha Gmail) - 0.20.1-2 - fix: include missing BR for F37 * Tue Nov 15 2022 Ankur Sinha (Ankur Sinha Gmail) - 0.20.1-1 - feat: update to 0.20.1 (fix rhbz#2130629, rhbz#2142887) * Fri Sep 30 2022 Ankur Sinha (Ankur Sinha Gmail) - 0.20.0-1 - feat: update to 0.20.0 (fixes rhbz#2130629) * Thu Aug 25 2022 Ankur Sinha (Ankur Sinha Gmail) - 0.19.0-6 - fix: unpin jsonschema version * Fri Jul 22 2022 Fedora Release Engineering - 0.19.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jul 04 2022 Python Maint - 0.19.0-4 - Rebuilt for Python 3.11 * Tue Mar 08 2022 Ankur Sinha (Ankur Sinha Gmail) - 0.19.0-3 - feat: use pycryptodomex instead of crypto (fixes rhbz#2061832) * Wed Feb 09 2022 Ankur Sinha (Ankur Sinha Gmail) - 0.19.0-2 - chore: bump for branch * Tue Feb 08 2022 Ankur Sinha (Ankur Sinha Gmail) - 0.19.0-1 - feat: update to 0.19.0 (Fixes rhbz#2008139) * Tue Feb 08 2022 Ankur Sinha (Ankur Sinha Gmail) - 0.18.6-4 - chore: checkin updated spec * Mon Aug 16 2021 Ankur Sinha - 0.18.1-1 - Update to latest upstream release * Fri Jul 23 2021 Fedora Release Engineering - 0.15.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.15.2-6 - Rebuilt for Python 3.10 * Sat Apr 17 2021 Michael Scherer - 0.15.2-5 - Add missing requires python3-crypto (#1925689) * Mon Feb 08 2021 Ankur Sinha - 0.15.2-4 - Manually merge Miro's pyproject packaging improvements to resolve merge conflict * Wed Jan 27 2021 Fedora Release Engineering - 0.15.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jan 25 2021 Ankur Sinha - 0.15.2-2 - Remove extra file to fix build * Mon Jan 18 2021 Ankur Sinha - 0.15.2-2 - Bump for rebuild * Fri Nov 20 2020 Ankur Sinha - 0.15.2-1 - Initial rpm