copr-matrix-common/python-matrix-common.spec

66 lines
1.5 KiB
RPMSpec
Raw Normal View History

2022-01-26 23:19:51 +00:00
%global srcname matrix-common
%global releasename matrix-python-common
%global pymodulename matrix_common
Name: python-%{srcname}
2022-02-11 23:19:18 +00:00
Version: 1.1.0
2022-06-14 12:35:22 +00:00
Release: 2%{?dist}
2022-01-26 23:19:51 +00:00
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
2022-06-14 12:35:22 +00:00
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 1.1.0-2
- Rebuilt for Python 3.11
2022-02-11 23:19:18 +00:00
* Fri Feb 11 2022 Kai A. Hiller <V02460@gmail.com> - 1.1.0-1
- Update to v1.1.0
2022-01-26 23:19:51 +00:00
* Sat Jan 08 2022 Kai A. Hiller <V02460@gmail.com> - 1.0.0-1
- Initial package
- Fixes rhbz#2038993