From a2367ddad6f17068e4b586e17953c0a11e201bbac1f606d22c37b537f7aa4b61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 30 May 2025 13:38:56 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libarchive?expand=0&rev=20 --- python-libarchive.changes | 5 +++++ python-libarchive.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/python-libarchive.changes b/python-libarchive.changes index 018c35f..84e3ab0 100644 --- a/python-libarchive.changes +++ b/python-libarchive.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 30 13:38:37 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Mon Apr 8 10:51:54 UTC 2024 - Daniel Garcia diff --git a/python-libarchive.spec b/python-libarchive.spec index efc5418..3a71fa3 100644 --- a/python-libarchive.spec +++ b/python-libarchive.spec @@ -1,7 +1,7 @@ # # spec file for package python-libarchive # -# Copyright (c) 2024 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 @@ -27,7 +27,9 @@ Source: https://files.pythonhosted.org/packages/source/l/libarchive/liba # PATCH-FEATURE-UPSTREAM denose_tests.patch gh#dsoprea/PyEasyArchive#44 mcepl@suse.com # Removes the need for nose test requirement Patch0: denose_tests.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: libarchive-devel BuildRequires: python-rpm-macros @@ -54,14 +56,14 @@ sed -i "s/'tests'/'tests','tests.adapters','tests.types'/" setup.py ln -sf libarchive/resources/README.rst README.rst %build -%python_build +%pyproject_wheel %check export LANG=en_US.UTF8 %pytest %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files}