15
0

- 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
This commit is contained in:
2023-01-21 15:15:29 +00:00
committed by Git OBS Bridge
parent d72ea46098
commit e1459cf8eb
2 changed files with 16 additions and 8 deletions

View File

@@ -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