%global modname pydicom %global _description %{expand: pydicom is a pure python package for working with DICOM files. It was made for inspecting and modifying DICOM data in an easy "pythonic" way. The modifications can be written again to a new file. pydicom is not a DICOM server, and is not primarily about viewing images. It is designed to let you manipulate data elements in DICOM files with python code. Limitations -- the main limitation of the current version is that compressed pixel data (e.g. JPEG) cannot be altered in an intelligent way as it can for uncompressed pixels. Files can always be read and saved, but compressed pixel data cannot easily be modified. Python 3 version.} Name: python-%{modname} Version: 2.0.0 Release: 2%{?dist} Summary: Read, modify and write DICOM files with python code # There are generated data (private dict) in special format from GDCM License: MIT and BSD URL: https://github.com/darcymason/%{modname} Source0: https://github.com/darcymason/%{modname}/archive/v%{version}/%{modname}-%{version}.tar.gz BuildArch: noarch %description %_description %package -n python3-%{modname} Summary: %{summary} %{?python_provide:%python_provide python3-%{modname}} BuildRequires: python3-devel python3-setuptools python3-six BuildRequires: python3-sphinx python3-sphinx_rtd_theme python3-sphinx-gallery python3-numpydoc python3-sphinx-issues # Test deps BuildRequires: python3-numpy python3-dateutil python3-pytest Requires: python3-dateutil Recommends: python3-numpy Recommends: python3-matplotlib Recommends: python3-tkinter Recommends: python3-pillow %description -n python3-%{modname} %_description %package doc Summary: Python %{modname} documentation %description doc Documentation for %{name}. %prep %autosetup -n %{modname}-%{version} %build %py3_build pushd doc export PYTHONPATH=../ make html SPHINXBUILD=sphinx-build-3 BUILDDIR=_build-3 find -name '.buildinfo' -delete find -name '.nojekyll' -delete popd %install %py3_install %check # Disable TestPillowHandler_JPEG.test_color_3d because koji is unable to # allocate enough RAM during build. Works ok building locally # Disable test_handler_util, it fails to build with numpy 1.19 # reported upstream https://github.com/pydicom/pydicom/issues/1119 %if 0%{?fedora} > 32 %{__python3} -m pytest -k "not test_color_3d and not test_handler_util" %else %{__python3} -m pytest -k "not test_color_3d" %endif %files -n python3-%{modname} %license LICENSE %doc README.md %{python3_sitelib}/%{modname}* %{python3_sitelib}/dicom.py %{python3_sitelib}/__pycache__/dicom.* %files doc %license LICENSE %doc doc/_build-3/html %changelog * Wed Jun 03 2020 Alessio - 2.0.0-1 - Modified conditional to disable test_handler_util python test * Wed Jun 03 2020 Alessio - 2.0.0-1 - 2.0.0. release * Tue May 26 2020 Miro Hrončok - 1.4.2-3 - Rebuilt for Python 3.9 * Mon Feb 24 2020 Alessio - 1.4.2-2 - Disabled TestPillowHandler_JPEG.test_color_3d test * Mon Feb 24 2020 Alessio - 1.4.2-1 - Update to new release - Splitted docs into a subpackage * Sat Feb 01 2020 Ankur Sinha - 1.4.1-1 - Update to new release * Thu Jan 30 2020 Fedora Release Engineering - 1.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1.3.0-2 - Rebuilt for Python 3.8.0rc1 (#1748018) * Thu Aug 22 2019 Ankur Sinha - 1.3.0-1 - Update to 1.3.0 - Add patch to fix python 3.8 error - Enable all tests * Mon Aug 19 2019 Miro Hrončok - 1.2.2-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 16 2019 Ankur Sinha - 1.2.2-1 - Update to latest upstream release * Sat Feb 02 2019 Fedora Release Engineering - 1.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Aug 21 2018 Miro Hrončok - 1.1.0-3 - Drop python2 subpackage * Sat Jul 14 2018 Fedora Release Engineering - 1.1.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sun Jun 24 2018 Miro Hrončok - 1.1.0-1 - Update to 1.1.0 (#1544224) - Stop building python2 docs as they have python2 syntax errors - Skip test_PI_RGB[JPEG_RGB_RGB] for now - Skip TestTimeZone.test_constructor on Python 3 for now * Tue Jun 19 2018 Miro Hrončok - 1.0.0-0.12.gitf6191c7 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 1.0.0-0.11.gitf6191c7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Jan 27 2018 Iryna Shcherbina - 1.0.0-0.10.gitf6191c7 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Thu Jul 27 2017 Fedora Release Engineering - 1.0.0-0.9.gitf6191c7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.0.0-0.8.gitf6191c7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 1.0.0-0.7.gitf6191c7 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 1.0.0-0.6.gitf6191c7 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 1.0.0-0.5.gitf6191c7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Nov 12 2015 Kalev Lember - 1.0.0-0.4.gitf6191c7 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Sun Nov 08 2015 Igor Gnatenko - 1.0.0-0.3.gitf6191c7 - Fix provide macro for py3 (typo) - Remove shebang from dicom_dao.py (non-executable-script) * Sun Nov 08 2015 Igor Gnatenko - 1.0.0-0.2.gitf6191c7 - Include license file - Add BSD to license list (generated data) from GDCM * Tue Nov 03 2015 Igor Gnatenko - 1.0.0-0.1.gitf6191c7 - Simplify building docs * Sat Oct 31 2015 Igor Gnatenko - 1.0.0-0.0.gitf6191c7 - Initial package