14
0

Accepting request 1284806 from devel:languages:python

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1284806
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rencode?expand=0&rev=3
This commit is contained in:
2025-06-11 14:27:50 +00:00
committed by Git OBS Bridge
2 changed files with 10 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 11 11:43:51 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Fri Mar 1 09:43:25 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-rencode
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# 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,7 +16,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-rencode
Version: 1.0.6
Release: 0
@@ -28,6 +27,7 @@ Source0: https://github.com/aresch/rencode/archive/v%{version}.tar.gz
Source1: %{name}.changes
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
@@ -50,10 +50,10 @@ sed -i -e '/extra_compile_args/d' setup.py
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}/rencode
%check
@@ -62,6 +62,6 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
%files %{python_files}
%license COPYING
%{python_sitearch}/rencode
%{python_sitearch}/rencode-%{version}-py%{python_version}.egg-info
%{python_sitearch}/rencode-%{version}*-info
%changelog