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] 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