From 18960f9ee130efb8df657ad43de6d8e6ef38937e109782ecb6408856dd850ce0 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 5 Jun 2025 04:42:22 +0000 Subject: [PATCH] - Switch to pyproject macros. - Do not mark everything as pycache_only. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mrcz?expand=0&rev=11 --- python-mrcz.changes | 6 ++++++ python-mrcz.spec | 14 +++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/python-mrcz.changes b/python-mrcz.changes index 1bd6c93..84cde7f 100644 --- a/python-mrcz.changes +++ b/python-mrcz.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 5 04:39:19 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- Do not mark everything as pycache_only. + ------------------------------------------------------------------- Wed Nov 27 11:40:39 UTC 2024 - Markéta Machová diff --git a/python-mrcz.spec b/python-mrcz.spec index 872bf2a..340546a 100644 --- a/python-mrcz.spec +++ b/python-mrcz.spec @@ -1,7 +1,7 @@ # # spec file for package python-mrcz # -# Copyright (c) 2024 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 @@ -30,8 +30,10 @@ Patch: numpy2.patch Patch: new-pythons.patch BuildRequires: %{python_module blosc} BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -52,10 +54,10 @@ microscopy. dos2unix README.rst %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -64,9 +66,7 @@ dos2unix README.rst %files %{python_files} %doc AUTHORS.txt README.rst %license LICENSE.txt -%dir %{python_sitelib}/mrcz/ -%pycache_only %{python_sitelib}/mrcz-%{version}-py%{python_version}.egg-info/ -%pycache_only %{python_sitelib}/mrcz/*.py -%pycache_only %{python_sitelib}/mrcz/__pycache__/ +%{python_sitelib}/mrcz +%{python_sitelib}/mrcz-%{version}.dist-info %changelog