Matrix-common builds locally now.

This commit is contained in:
Alex Manning 2022-01-18 23:12:31 +00:00
parent 08512d239d
commit e4d8704e48

View file

@ -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 <mail@alex-m.co.uk> - 1.0.0-1