From 45234bdb07491af3c7872c8537cb0b04fd5b68394e188ee68393e17f07d1889f Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Mon, 12 May 2025 15:16:15 +0000 Subject: [PATCH] Accepting request 1276897 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1276897 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-RegexOrder?expand=0&rev=11 --- python-RegexOrder.changes | 5 +++++ python-RegexOrder.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-RegexOrder.changes b/python-RegexOrder.changes index 84d21da..9e5250f 100644 --- a/python-RegexOrder.changes +++ b/python-RegexOrder.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 12 14:42:04 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Nov 7 15:42:24 UTC 2019 - Matej Cepl diff --git a/python-RegexOrder.spec b/python-RegexOrder.spec index 7cd08c7..ff575d6 100644 --- a/python-RegexOrder.spec +++ b/python-RegexOrder.spec @@ -1,7 +1,7 @@ # # spec file for package python-RegexOrder # -# 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,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 # For LICENSE file %define tag 23f0ac4ac46527404e3ec9097df931378d3d803a Name: python-RegexOrder @@ -29,7 +27,9 @@ URL: https://github.com/chuanconggao/RegexOrder Source: https://files.pythonhosted.org/packages/source/R/RegexOrder/RegexOrder-%{version}.tar.gz Source10: https://raw.githubusercontent.com/chuanconggao/RegexOrder/%{tag}/LICENSE BuildRequires: %{python_module base >= 3.6} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-regex >= 2018.2.21 @@ -52,15 +52,16 @@ cp %{SOURCE10} . sed -i -e '/^#!\s*\//, 1d' regexorder/*.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/regexorder +%{python_sitelib}/[Rr]egex[Oo]rder-%{version}*-info %changelog