Accepting request 1277706 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1277706
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bencode?expand=0&rev=9
This commit is contained in:
2025-05-15 15:02:43 +00:00
committed by Git OBS Bridge
2 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 14 09:12:50 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Mon Mar 6 21:13:14 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

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