commit ccc01f84869f629dee870193bdf978d90362f4df Author: dogsheng <960055655@qq.com> Date: Tue Nov 19 11:53:59 2019 +0800 Package init diff --git a/h5py-2.10.0.tar.gz b/h5py-2.10.0.tar.gz new file mode 100644 index 0000000..a9e45dd Binary files /dev/null and b/h5py-2.10.0.tar.gz differ diff --git a/python-h5py.spec b/python-h5py.spec new file mode 100644 index 0000000..20f86b4 --- /dev/null +++ b/python-h5py.spec @@ -0,0 +1,56 @@ +%global modname h5py + +Summary: A high- and low-level interface to the HDF5 library from Python +Name: python-h5py +Version: 2.10.0 +Release: 1 +License: BSD +URL: http://www.h5py.org/ +Source0: https://files.pythonhosted.org/packages/5f/97/a58afbcf40e8abecededd9512978b4e4915374e5b80049af082f49cebe9a/h5py-2.10.0.tar.gz + +BuildRequires: gcc +BuildRequires: hdf5-devel +BuildRequires: python3-devel +BuildRequires: python3-pkgconfig +BuildRequires: python3-six +BuildRequires: python3-sphinx +BuildRequires: python3-numpy +BuildRequires: python3-Cython +BuildRequires: python3-pytest + +%description +The h5py package provides both a high- and low-level interface to the HDF5 library from Python. The low-level interface is intended to be a complete wrapping of the HDF5 API, while the high-level component supports access to HDF5 files, datasets and groups using established Python and NumPy concepts. + +A strong emphasis on automatic conversion between Python (Numpy) datatypes and data structures and their HDF5 equivalents vastly simplifies the process of reading and writing data from Python. + +%package -n python3-h5py +Summary: %{summary} +Requires: hdf5%{_isa} = %{_hdf5_version} +Requires: python3-numpy +Requires: python3-six +%{?python_provide:%python_provide python3-h5py} +%description -n python3-h5py +A high- and low-level interface to the HDF5 library from Python3 + +%prep +%setup -q -n %{modname}-%{version} +%{__python3} api_gen.py + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} setup.py test + +%files -n python3-h5py +%license licenses/*.txt +%doc ANN.rst README.rst examples +%{python3_sitearch}/%{modname}/ +%{python3_sitearch}/%{modname}-%{version}-*.egg-info + +%changelog +* Tue Oct 22 2019 openEuler Buildteam - 2.10.0-1 +- Package init