From e4d8704e48b6845fdd24ee2b581f9b06c9cb461d Mon Sep 17 00:00:00 2001 From: Alex Manning Date: Tue, 18 Jan 2022 23:12:31 +0000 Subject: [PATCH] Matrix-common builds locally now. --- .../python-matrix-common.spec | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/python-matrix-common/python-matrix-common.spec b/python-matrix-common/python-matrix-common.spec index 24d4664..a81e9cc 100644 --- a/python-matrix-common/python-matrix-common.spec +++ b/python-matrix-common/python-matrix-common.spec @@ -1,19 +1,18 @@ # Created by pyp2rpm-3.3.7 -%global pypi_name matrix-common -%global pypi_version 1.0.0 +%global pypi_name matrix_common Name: python-%{pypi_name} -Version: %{pypi_version} +Version: 1.0.0 Release: 1%{?dist} Summary: Common utilities for Synapse, Sydent and Sygnal License: None URL: https://github.com/matrix-org/matrix-python-common -Source0: %{pypi_name}-%{pypi_version}.tar.gz +Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(wheel) %description matrix-python-commonCommon utilities for Synapse, Sydent and Sygnal. @@ -38,21 +37,21 @@ steps for releasing will... %prep -%autosetup -n %{pypi_name}-%{pypi_version} -# Remove bundled egg-info -rm -rf %{pypi_name}.egg-info +%autosetup -n %{pypi_name}-%{version} + +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files matrix_common -%files -n python3-%{pypi_name} +%files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc README.md -%{python3_sitelib}/%{pypi_name} -%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info %changelog * Tue Jan 18 2022 Alex Manning - 1.0.0-1