Blame python-matrix-common.spec

8f9fee0
%global releasename matrix-python-common
8f9fee0
%global pymodulename matrix_common
8f9fee0
5f4e1bf
Name:           python-matrix-common
1fbca3f
Version:        1.3.0
58dc5e6
Release:        %autorelease
8f9fee0
Summary:        Common utilities for Synapse, Sydent and Sygnal
8f9fee0
adc106f
License:        Apache-2.0
8f9fee0
URL:            https://github.com/matrix-org/%{releasename}
5f4e1bf
Source0:        %{url}/archive/v%{version}/matrix-common-%{version}.tar.gz
8f9fee0
BuildArch:      noarch
8f9fee0
BuildRequires:  python3-devel
8f9fee0
8f9fee0
%global _description %{expand:
8f9fee0
Common utilities for Synapse, Sydent and Sygnal.}
8f9fee0
8f9fee0
%description %_description
8f9fee0
5f4e1bf
%package -n python3-matrix-common
8f9fee0
Summary:        %{summary}
8f9fee0
5f4e1bf
%description -n python3-matrix-common %_description
8f9fee0
8f9fee0
8f9fee0
%prep
8f9fee0
%autosetup -p1 -n %{releasename}-%{version}
8f9fee0
8f9fee0
8f9fee0
%generate_buildrequires
8f9fee0
%pyproject_buildrequires -e py
8f9fee0
8f9fee0
8f9fee0
%build
8f9fee0
%pyproject_wheel
8f9fee0
8f9fee0
8f9fee0
%install
8f9fee0
%pyproject_install
8f9fee0
%pyproject_save_files %{pymodulename}
8f9fee0
8f9fee0
8f9fee0
%check
8f9fee0
%tox
8f9fee0
8f9fee0
5f4e1bf
%files -n python3-matrix-common -f %{pyproject_files}
8f9fee0
%doc README.md
8f9fee0
%license LICENSE
8f9fee0
8f9fee0
8f9fee0
%changelog
58dc5e6
%autochangelog