File python3-h5py.spec of Package python3-h5py

#
# spec file for package python3-h5py
#
# Copyright (c) 2014 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
# 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:           python3-h5py
Version:        2.3.1
Release:        1
License:        BSD-3-Clause
Summary:        Python interface to the Hierarchical Data Format library
Url:            http://www.h5py.org/
Group:          Development/Libraries/Python
Source:         https://pypi.python.org/packages/source/h/h5py/h5py-%{version}.tar.gz
BuildRequires:  hdf5-devel
BuildRequires:  python3
BuildRequires:  python3-2to3
BuildRequires:  python3-devel
BuildRequires:  python3-numpy-devel
BuildRequires:	python3-Cython
Requires:       python(abi) = %{py3_ver}
Requires:       python3-numpy
BuildRoot:      %{_tmppath}/%{name}-%{version}-build


%description

H5py provides a simple, robust read/write interface to HDF5 data from Python.
Existing Python and Numpy concepts are used for the interface; for example,
datasets on disk are represented by a proxy class that supports slicing, and
has dtype and shape attributes. HDF5 groups are presented using a dictionary
metaphor, indexed by name.

%prep
%setup -q -n h5py-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}

%clean
rm -rf %{buildroot}

%post   -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc ANN.rst README.rst lzf/LICENSE.txt lzf/README.txt examples licenses/*
%{python3_sitearch}/h5py/
%{python3_sitearch}/h5py-%{version}-py*.egg-info

%changelog
openSUSE Build Service is sponsored by