Hello community,

here is the log from the commit of package python-pydicom for openSUSE:Factory 
checked in at 2017-09-12 19:55:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pydicom (Old)
 and      /work/SRC/openSUSE:Factory/.python-pydicom.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pydicom"

Tue Sep 12 19:55:26 2017 rev:2 rq:523248 version:0.9.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pydicom/python-pydicom.changes    
2017-09-09 20:25:44.676772694 +0200
+++ /work/SRC/openSUSE:Factory/.python-pydicom.new/python-pydicom.changes       
2017-09-12 19:55:57.298352188 +0200
@@ -1,0 +2,5 @@
+Mon Sep 11 14:47:43 UTC 2017 - [email protected]
+
+- Implement single-spec version
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pydicom.spec ++++++
--- /var/tmp/diff_new_pack.JKDLRO/_old  2017-09-12 19:55:58.454189668 +0200
+++ /var/tmp/diff_new_pack.JKDLRO/_new  2017-09-12 19:55:58.458189106 +0200
@@ -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 @@
 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 @@
 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}/*


Reply via email to