diff --git a/python-gsm0338.changes b/python-gsm0338.changes index 320e64f..ddadd45 100644 --- a/python-gsm0338.changes +++ b/python-gsm0338.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 14:32:40 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed Aug 24 18:26:24 UTC 2022 - Ben Greiner diff --git a/python-gsm0338.spec b/python-gsm0338.spec index 6103981..0d03a69 100644 --- a/python-gsm0338.spec +++ b/python-gsm0338.spec @@ -1,7 +1,7 @@ # # spec file for package python-gsm0338 # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2021, Martin Hauke # # All modifications and additions to the file contributed by third parties @@ -17,7 +17,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-gsm0338 Version: 1.0.0 Release: 0 @@ -26,15 +25,17 @@ License: MIT URL: https://github.com/dsch/gsm0338 #GIT-Clone: https://github.com/dsch/gsm0338.git Source: https://github.com/dsch/gsm0338/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} -BuildRequires: python-rpm-macros -# SECTION test requirements -BuildRequires: %{python_module six} -BuildRequires: %{python_module pytest} -# /SECTION +BuildRequires: %{python_module wheel} BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-six BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module six} +# /SECTION %python_subpackages %description @@ -47,10 +48,10 @@ codec get's automatically registered. %setup -q -n gsm0338-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand rm -rf %{buildroot}%{$python_sitelib}/test %python_expand %fdupes %{buildroot}%{$python_sitelib}