forked from pool/python-pydicom
Accepting request 523247 from home:TheBlackCat:branches:devel:languages:python
- Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/523247 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydicom?expand=0&rev=3
This commit is contained in:
parent
cb3c253b4d
commit
5cefc3bed1
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 11 14:47:43 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- Implement single-spec version
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 13 19:45:31 UTC 2016 - toddrme2178@gmail.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pydicom
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 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
|
||||
@ -16,6 +16,9 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
%bcond_without test
|
||||
Name: python-pydicom
|
||||
Version: 0.9.9
|
||||
Release: 0
|
||||
@ -26,13 +29,18 @@ 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
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%ifpython2
|
||||
Obsoletes: %{oldpython}-dicom < %{version}
|
||||
Provides: %{oldpython}-dicom = %{version}
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
pydicom is a pure python package for parsing DICOM files.
|
||||
|
||||
@ -49,16 +57,19 @@ Modified datasets can be written again to DICOM format files.
|
||||
cp %{SOURCE1} ./
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
python setup.py test
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc license.txt
|
||||
%{python_sitelib}/*
|
||||
|
Loading…
Reference in New Issue
Block a user