From ee05a0e40798fba0920ee75576d886af27f57ddcd72a5d40ad411bc8c0274e13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 26 May 2025 12:16:22 +0000 Subject: [PATCH 1/2] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-distorm3?expand=0&rev=38 --- python-distorm3.changes | 5 +++++ python-distorm3.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-distorm3.changes b/python-distorm3.changes index 12fe406..e9621a9 100644 --- a/python-distorm3.changes +++ b/python-distorm3.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 26 12:16:02 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed May 12 21:22:50 UTC 2021 - Dirk Müller diff --git a/python-distorm3.spec b/python-distorm3.spec index db4c2df..1c8536e 100644 --- a/python-distorm3.spec +++ b/python-distorm3.spec @@ -1,7 +1,7 @@ # # spec file for package python-distorm3 # -# Copyright (c) 2021 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define modname distorm3 Name: python-%{modname} Version: 3.5.2 @@ -27,7 +26,9 @@ Group: Development/Libraries/Python URL: https://github.com/gdabah/distorm Source: https://files.pythonhosted.org/packages/source/d/distorm3/%{modname}-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip @@ -43,16 +44,17 @@ text. %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} # tests are not packaged in the upstream tarball %files %{python_files} %license COPYING -%{python_sitearch}/* +%{python_sitearch}/distorm3 +%{python_sitearch}/distorm3-%{version}*-info %changelog From e32d70ebc15d4911b1a058962fe446aad8bb573c4b0dbc67cdfad2df3ed44772 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 26 May 2025 12:18:45 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-distorm3?expand=0&rev=39 --- python-distorm3.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-distorm3.spec b/python-distorm3.spec index 1c8536e..df99a48 100644 --- a/python-distorm3.spec +++ b/python-distorm3.spec @@ -56,5 +56,6 @@ export CFLAGS="%{optflags}" %license COPYING %{python_sitearch}/distorm3 %{python_sitearch}/distorm3-%{version}*-info +%{python_sitearch}/_distorm3.cpython* %changelog