File python-h5py.spec of Package python-h5py

#
# spec file for package python-h5py
#
# Copyright (c) 2015 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:           python-h5py
Version:        2.5.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
BuildRequires:  hdf5-devel
BuildRequires:  python-devel
BuildRequires:  python-Cython
BuildRequires:  python-numpy-devel >= 1.6.1
BuildRequires:  python-pkgconfig
BuildRequires:  python-six
Requires:       hdf5
Requires:       python-Cython
Requires:       python-numpy >= 1.6.1
Requires:       python-six
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
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{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/*
%{python_sitearch}/h5py/
%{python_sitearch}/h5py-%{version}-py*.egg-info

%changelog
openSUSE Build Service is sponsored by