From 2378fb52c90abe1974cf33e40298ee4b3a0dda9d483146ec9a075caa8db9cbdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 27 May 2025 14:33:17 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gsm0338?expand=0&rev=5 --- python-gsm0338.changes | 5 +++++ python-gsm0338.spec | 19 ++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) 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}