15
0

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
This commit is contained in:
2024-01-22 06:31:57 +00:00
committed by Git OBS Bridge
parent 20dccd9cfd
commit fa90e1b0cd
2 changed files with 14 additions and 11 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jan 16 09:57:21 UTC 2024 - Axel Braun <axel.braun@gmx.de>
- switch to wheel and enable %{?sle15allpythons}
-------------------------------------------------------------------
Sat Dec 3 20:04:13 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>

View File

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