From 971fa1e4e60302265041f33d68dcee1578772cce206c1bb53b9feb016554b683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 15 May 2025 11:02:59 +0000 Subject: [PATCH] Accepting request 1277369 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1277369 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bencode?expand=0&rev=17 --- python-bencode.changes | 5 +++++ python-bencode.spec | 14 ++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-bencode.changes b/python-bencode.changes index 6127db4..5abaf81 100644 --- a/python-bencode.changes +++ b/python-bencode.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 14 09:12:50 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Mon Mar 6 21:13:14 UTC 2023 - Dirk Müller diff --git a/python-bencode.spec b/python-bencode.spec index 7b430f5..7c45dc3 100644 --- a/python-bencode.spec +++ b/python-bencode.spec @@ -1,7 +1,7 @@ # # spec file for package python-bencode # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define oldpython python Name: python-bencode Version: 4.0.0 Release: 0 @@ -26,7 +24,9 @@ License: BitTorrent-1.1 URL: https://github.com/fuzeman/bencode.py Source0: https://files.pythonhosted.org/packages/source/b/bencode.py/bencode.py-%{version}.tar.gz BuildRequires: %{python_module pbr} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -45,10 +45,10 @@ BitTorrent software as a dependency. %setup -q -n bencode.py-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -57,6 +57,8 @@ BitTorrent software as a dependency. %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/bencode +%{python_sitelib}/bencodepy +%{python_sitelib}/bencode[._]py-%{version}*-info %changelog