Hello community,

here is the log from the commit of package python-h5py for openSUSE:Factory 
checked in at 2017-05-16 14:44:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-h5py (Old)
 and      /work/SRC/openSUSE:Factory/.python-h5py.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-h5py"

Tue May 16 14:44:31 2017 rev:5 rq:494710 version:2.7.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-h5py/python-h5py.changes  2015-08-01 
11:37:35.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-h5py.new/python-h5py.changes     
2017-05-16 14:45:53.980852921 +0200
@@ -1,0 +2,23 @@
+Thu May 11 18:04:04 UTC 2017 - [email protected]
+
+- Implement single-spec version
+- Fix source URL
+- Update to version 0.2.7
+  * Python 3.2 is no longer supported
+  * Improved testing support
+  * Improved python compatibility
+  * Documentation improvements
+  * setup.py improvements
+  * Support for additional HDF5 features added
+  * Improvements to type system
+- Update to version 0.2.6
+  * Support for HDF5 Virtual Dataset API
+  * Add MPI Collective I/O Support
+  * Numerous build/testing/CI improvements
+  * Cleanup of codebase based on pylint
+  * Fixes to low-level API
+  * Documentation improvements
+- Add no_include_opt.patch to avoid including forbidden
+  directories.
+
+-------------------------------------------------------------------

Old:
----
  h5py-2.5.0.tar.gz

New:
----
  h5py-2.7.0.tar.gz
  no_include_opt.patch

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

Other differences:
------------------
++++++ python-h5py.spec ++++++
--- /var/tmp/diff_new_pack.Niv81b/_old  2017-05-16 14:45:54.624762445 +0200
+++ /var/tmp/diff_new_pack.Niv81b/_new  2017-05-16 14:45:54.628761882 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-h5py
 #
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX Products 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,25 +16,31 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-h5py
-Version:        2.5.0
+Version:        2.7.0
 Release:        1
 Summary:        Python interface to the Hierarchical Data Format library
 License:        BSD-3-Clause
 Group:          Development/Libraries/Python
 Url:            http://www.h5py.org/
-Source:         
https://pypi.python.org/packages/source/h/h5py/h5py-%{version}.tar.gz
+Source:         
https://files.pythonhosted.org/packages/source/h/h5py/h5py-%{version}.tar.gz
+#PATCH-FIX-OPENSUSE no_include_opt.patch -- Don't include /opt/ directory.
+Patch0:         no_include_opt.patch
 BuildRequires:  hdf5-devel
-BuildRequires:  python-devel
-BuildRequires:  python-Cython
-BuildRequires:  python-numpy-devel >= 1.6.1
-BuildRequires:  python-pkgconfig
-BuildRequires:  python-six
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module Cython}
+BuildRequires:  %{python_module numpy-devel >= 1.6.1}
+BuildRequires:  %{python_module pkgconfig}
+BuildRequires:  %{python_module six}
 Requires:       hdf5
-Requires:       python-Cython
 Requires:       python-numpy >= 1.6.1
 Requires:       python-six
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+%python_subpackages
 
 %description
 H5py provides a simple, robust read/write interface to HDF5 data from Python.
@@ -45,17 +51,27 @@
 
 %prep
 %setup -q -n h5py-%{version}
+%patch0 -p1
 
 %build
-python setup.py build
+export CFLAGS="%{optflags}"
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitearch}
 
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%check
+export CFLAGS="%{optflags}"
+%python_exec setup.py test
 
-%files
+%post
+/sbin/ldconfig
+
+%postun
+/sbin/ldconfig
+
+%files %{python_files}
 %defattr(-,root,root)
 %doc ANN.rst README.rst lzf/LICENSE.txt lzf/README.txt examples licenses/*
 %{python_sitearch}/h5py/

++++++ h5py-2.5.0.tar.gz -> h5py-2.7.0.tar.gz ++++++
++++ 21315 lines of diff (skipped)

++++++ no_include_opt.patch ++++++
From: [email protected]
Date: 2017-05-11
Subject: Don't include /opt directories

Including /opt/ directories is not allowed in openSUSE.

---

diff -U 3 -H -d -r -N -- a/setup_build.py b/setup_build.py
--- a/setup_build.py
+++ b/setup_build.py
@@ -49,8 +49,5 @@
         ('H5_BUILT_AS_DYNAMIC_LIB', None)
     ])
-else:
-    
COMPILER_SETTINGS['include_dirs'].extend(['/opt/local/include''/usr/local/include'])
-    
COMPILER_SETTINGS['library_dirs'].extend(['/opt/local/include''/usr/local/include'])
 
 
 class h5py_build_ext(build_ext):

Reply via email to