%global srcname matrix-common %global releasename matrix-python-common %global pymodulename matrix_common Name: python-%{srcname} Version: 1.1.0 Release: 2%{?dist} Summary: Common utilities for Synapse, Sydent and Sygnal License: ASL 2.0 URL: https://github.com/matrix-org/%{releasename} Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: Common utilities for Synapse, Sydent and Sygnal.} %description %_description %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %_description %prep %autosetup -p1 -n %{releasename}-%{version} %generate_buildrequires %pyproject_buildrequires -e py %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pymodulename} %check # Make sure only installed modules are tested by removing all local ones. # https://github.com/matrix-org/matrix-python-common/issues/16 find . -maxdepth 2 -name '__init__.py' -exec dirname {} \; | grep -v ^\./tests | xargs rm -rf %tox %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md %license LICENSE %changelog * Tue Jun 14 2022 Python Maint - 1.1.0-2 - Rebuilt for Python 3.11 * Fri Feb 11 2022 Kai A. Hiller - 1.1.0-1 - Update to v1.1.0 * Sat Jan 08 2022 Kai A. Hiller - 1.0.0-1 - Initial package - Fixes rhbz#2038993