forked from pool/python-pydicom
+ Major changes / enhancements
* All dicom dictionaries updated (standard dictionary, UID
dictionary, and private dictionaries)
* Dicom commands also added to dictionary
* Ability to work with DICOMDIR: read_dicomdir() function and
DicomDir class. Example file show_dicomdir.py file added to
examples subdirectory.
* codify.py: Produce python/pydicom source code from a dicom
file.
* a number of python 3 compatibility enhancements
* setup.py uses ez_setup only if setuptools not already
installed
* exceptions carry tag info with them, to aid in debugging
+ Contrib file changes
* pydicom_series: force parameter added (Nil Goyette)
* dcm_qt_tree: switch to OrderedDict to preserve ordering of
tags (Padraig Looney)
- Rename package to python-dicom to python-pydicom to conform to python
package naming policies.
- spec file completely rewritten.
- Remove unneeded python-dicom-remove-obsolete-distribute-support.patch
- Update to version 0.9.8
+ No changelog available
- Add python-dicom-remove-obsolete-distribute-support.patch; setup
script try to import setuptools from distribute
- Require python-setuptools instead of distribute (upstreams merged)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=1
67 lines
2.1 KiB
RPMSpec
67 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package python-pydicom
|
|
#
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: python-pydicom
|
|
Version: 0.9.9
|
|
Release: 0
|
|
Summary: Pure python package for DICOM medical file reading and writing
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
Url: https://github.com/darcymason/pydicom
|
|
Source: https://files.pythonhosted.org/packages/source/p/pydicom/pydicom-%{version}.tar.gz
|
|
# This will be included in the tarball in the next release. It can be removed then.
|
|
Source1: license.txt
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-setuptools
|
|
Provides: python-dicom = %{version}
|
|
Obsoletes: python-dicom < %{version}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
pydicom is a pure python package for parsing DICOM files.
|
|
|
|
DICOM is a standard (http://medical.nema.org) for communicating
|
|
medical images and related information such as reports
|
|
and radiotherapy objects.
|
|
|
|
pydicom makes it easy to read these complex files into natural
|
|
pythonic structures for easy manipulation.
|
|
Modified datasets can be written again to DICOM format files.
|
|
|
|
%prep
|
|
%setup -q -n pydicom-%{version}
|
|
cp %{SOURCE1} ./
|
|
|
|
%build
|
|
python setup.py build
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
%check
|
|
export LANG=en_US.UTF-8
|
|
python setup.py test
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc license.txt
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|