Compare commits

2 Commits

2 changed files with 12 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 12 12:38:52 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Aug 29 02:41:01 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com> Mon Aug 29 02:41:01 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-PyRect # spec file for package python-PyRect
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,8 +16,6 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python36 1
Name: python-PyRect Name: python-PyRect
Version: 0.2.0 Version: 0.2.0
Release: 0 Release: 0
@@ -26,9 +24,11 @@ License: BSD-3-Clause
URL: https://github.com/asweigart/pyrect URL: https://github.com/asweigart/pyrect
Source: https://files.pythonhosted.org/packages/source/P/PyRect/PyRect-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/P/PyRect/PyRect-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/asweigart/PyRect/master/LICENSE.txt Source1: https://raw.githubusercontent.com/asweigart/PyRect/master/LICENSE.txt
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pygame} BuildRequires: %{python_module pygame}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: dos2unix BuildRequires: dos2unix
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@@ -44,10 +44,10 @@ cp %{SOURCE1} .
dos2unix README.rst dos2unix README.rst
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -56,6 +56,7 @@ dos2unix README.rst
%files %{python_files} %files %{python_files}
%doc README.rst %doc README.rst
%license LICENSE.txt %license LICENSE.txt
%{python_sitelib}/* %{python_sitelib}/pyrect
%{python_sitelib}/[Pp]y[Rr]ect-%{version}*-info
%changelog %changelog