From c062786b01a3620d29c0af282e873929ac14c79532b1bbe42219a6debd7a1c54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 27 May 2025 15:26:19 +0000 Subject: [PATCH 1/2] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hexdump?expand=0&rev=7 --- python-hexdump.changes | 5 +++++ python-hexdump.spec | 14 ++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/python-hexdump.changes b/python-hexdump.changes index 4ff0cc1..166fe20 100644 --- a/python-hexdump.changes +++ b/python-hexdump.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 15:26:05 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Tue Aug 23 05:54:29 UTC 2022 - Steve Kowalik diff --git a/python-hexdump.spec b/python-hexdump.spec index e2720bb..0011e60 100644 --- a/python-hexdump.spec +++ b/python-hexdump.spec @@ -1,7 +1,7 @@ # # spec file for package python-hexdump # -# Copyright (c) 2022 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-%{**}} Name: python-hexdump Version: 3.3 Release: 0 @@ -26,7 +25,9 @@ Group: Development/Languages/Python URL: https://bitbucket.org/techtonik/hexdump/ Source0: https://files.pythonhosted.org/packages/source/h/hexdump/hexdump-%{version}.zip Source1: https://bitbucket.org/techtonik/hexdump/raw/66325cb5fed890df4a345e25ea8f107fd31b60d8/UNLICENSE +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip @@ -46,21 +47,22 @@ sed -i '/^#!/d' hexdump.py cp %{SOURCE1} . %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install # Copy the data directory ourselves to the correct location %python_expand cp -av data %{buildroot}%{$python_sitelib} # and remove the other -rm -rf %{buildroot}/usr/data +rm -rf %{buildroot}%{_prefix}/data %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_expand $python %{buildroot}%{$python_sitelib}/hexdump.py --test %files %{python_files} -%{python_sitelib}/* +%{python_sitelib}/hexdump +%{python_sitelib}/hexdump-%{version}*-info %doc README.txt %license UNLICENSE From 992dcf7ba9703c8a4dc8875aeca831000c8f3686e550120c9bf5b6b3c844c0c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 27 May 2025 15:43:35 +0000 Subject: [PATCH 2/2] Accepting request 1280663 from home:mcalabkova:branches:devel:languages:python fix packaging OBS-URL: https://build.opensuse.org/request/show/1280663 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hexdump?expand=0&rev=8 --- python-hexdump.spec | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/python-hexdump.spec b/python-hexdump.spec index 0011e60..f78d592 100644 --- a/python-hexdump.spec +++ b/python-hexdump.spec @@ -51,18 +51,17 @@ cp %{SOURCE1} . %install %pyproject_install -# Copy the data directory ourselves to the correct location -%python_expand cp -av data %{buildroot}%{$python_sitelib} -# and remove the other +# this folder is needed only for tests rm -rf %{buildroot}%{_prefix}/data %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand $python %{buildroot}%{$python_sitelib}/hexdump.py --test +%python_expand $python hexdump.py --test %files %{python_files} -%{python_sitelib}/hexdump +%{python_sitelib}/hexdump.py %{python_sitelib}/hexdump-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/hexdump* %doc README.txt %license UNLICENSE