From e6efe896585b15db352673ebfb42ebc4771074f2c4fd4a23fc76a4a7ecc6713b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 11 Jun 2025 11:44:04 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rencode?expand=0&rev=8 --- python-rencode.changes | 5 +++++ python-rencode.spec | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/python-rencode.changes b/python-rencode.changes index fb0b372..d13bfc3 100644 --- a/python-rencode.changes +++ b/python-rencode.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 11 11:43:51 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Mar 1 09:43:25 UTC 2019 - Tomáš Chvátal diff --git a/python-rencode.spec b/python-rencode.spec index 4101348..be1d0ac 100644 --- a/python-rencode.spec +++ b/python-rencode.spec @@ -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