From fa90e1b0cd8e4c035384fc44fecf79d94103d34d445cad9e6aeb7ac4bc538395 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 22 Jan 2024 06:31:57 +0000 Subject: [PATCH] Accepting request 1140071 from Application:ERP:GNUHealth:4.4 - switch to wheel and enable %{?sle15allpythons} OBS-URL: https://build.opensuse.org/request/show/1140071 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=27 --- python-pydicom.changes | 5 +++++ python-pydicom.spec | 20 +++++++++----------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/python-pydicom.changes b/python-pydicom.changes index 08f4204..c2d8d64 100644 --- a/python-pydicom.changes +++ b/python-pydicom.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 16 09:57:21 UTC 2024 - Axel Braun + +- switch to wheel and enable %{?sle15allpythons} + ------------------------------------------------------------------- Sat Dec 3 20:04:13 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-pydicom.spec b/python-pydicom.spec index c66d138..598bfae 100644 --- a/python-pydicom.spec +++ b/python-pydicom.spec @@ -1,7 +1,7 @@ # # spec file for package python-pydicom # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2024 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,7 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define oldpython python +%{?sle15allpythons} Name: python-pydicom Version: 2.3.1 Release: 0 @@ -25,22 +24,20 @@ Summary: Pure python package for DICOM medical file reading and writing License: MIT URL: https://github.com/darcymason/pydicom Source: https://files.pythonhosted.org/packages/source/p/pydicom/pydicom-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module numpy} -BuildRequires: %{python_module Pillow} BuildRequires: %{python_module pydicom-data} +BuildRequires: %{python_module Pillow} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests} BuildRequires: python3-gdcm # /SECTION BuildArch: noarch -%ifpython2 -Obsoletes: %{oldpython}-dicom < %{version} -Provides: %{oldpython}-dicom = %{version} -%endif Requires(post): update-alternatives Requires(postun):update-alternatives %python_subpackages @@ -58,10 +55,10 @@ and radiotherapy objects. %setup -q -n pydicom-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/pydicom %python_expand rm -r %{buildroot}%{$python_sitelib}/pydicom/{benchmarks,tests,data/test_files} %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -93,6 +90,7 @@ ignores="--ignore pydicom/tests/test_dataset.py --ignore pydicom/tests/test_data %doc README.md %license LICENSE %python_alternative %{_bindir}/pydicom -%{python_sitelib}/pydicom* +%{python_sitelib}/pydicom +%{python_sitelib}/pydicom-%{version}.dist-info %changelog