From e1459cf8ebf7ba1461862787bdfa49f1ce5e75cede98a47b85d2ea68de981cef Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 21 Jan 2023 15:15:29 +0000 Subject: [PATCH] - Switch to %pyproject_* macros and clean up the SPEC file. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-RPi.GPIO?expand=0&rev=3 --- python-RPi.GPIO.changes | 5 +++++ python-RPi.GPIO.spec | 19 +++++++++++-------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/python-RPi.GPIO.changes b/python-RPi.GPIO.changes index d5591fe..0882446 100644 --- a/python-RPi.GPIO.changes +++ b/python-RPi.GPIO.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Jan 21 15:14:57 UTC 2023 - Matej Cepl + +- Switch to %pyproject_* macros and clean up the SPEC file. + ------------------------------------------------------------------- Sat Jan 21 10:26:28 UTC 2023 - Michal Suchanek diff --git a/python-RPi.GPIO.spec b/python-RPi.GPIO.spec index af4595b..e0d32d8 100644 --- a/python-RPi.GPIO.spec +++ b/python-RPi.GPIO.spec @@ -1,5 +1,5 @@ # -# spec file for package python-RPi.GPIO +# spec file # # Copyright (c) 2023 SUSE LLC # @@ -24,11 +24,13 @@ Summary: A module to control Raspberry Pi GPIO channels # FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses License: MIT URL: https://sourceforge.net/projects/raspberry-gpio-python/ -Source: https://files.pythonhosted.org/packages/source/R/%{_modname}/%{modname}-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{python_module setuptools} +Source: https://files.pythonhosted.org/packages/source/R/RPi.GPIO/%{modname}-%{version}.tar.gz BuildRequires: %{python_module devel} -ExclusiveArch: %arm aarch64 +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +ExclusiveArch: %{arm} aarch64 %python_subpackages %description @@ -38,13 +40,14 @@ This package provides a Python module to control the GPIO on a Raspberry Pi. %autosetup -p1 -n %{modname}-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} %files %{python_files} %{python_sitearch}/RPi/ -%{python_sitearch}/%{modname}-%{version}-py*.egg-info/ +%{python_sitearch}/%{modname}-%{version}*-info/ %changelog