From 5e089bf865d9807fbd19e24fe6ff5bf64f33106fca79e4e7de647ab4bb9ba772 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 27 May 2025 09:49:48 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-eradicate?expand=0&rev=13 --- python-eradicate.changes | 5 +++++ python-eradicate.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-eradicate.changes b/python-eradicate.changes index b038d1b..612dc1d 100644 --- a/python-eradicate.changes +++ b/python-eradicate.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 09:49:35 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Mon Sep 18 19:58:36 UTC 2023 - Dirk Müller diff --git a/python-eradicate.spec b/python-eradicate.spec index 20ad1d7..4bfdeb0 100644 --- a/python-eradicate.spec +++ b/python-eradicate.spec @@ -1,7 +1,7 @@ # # spec file for package python-eradicate # -# 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 @@ -25,11 +25,13 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/myint/eradicate Source: https://files.pythonhosted.org/packages/source/e/eradicate/eradicate-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(post): alts +Requires(postun): alts BuildArch: noarch %python_subpackages @@ -45,10 +47,10 @@ which is valid Python syntax, but is probably not code.) %setup -q -n eradicate-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/eradicate