Группа :: Development/Python3
Пакет: h5py
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define pypi_name h5py
%define mod_name %pypi_name
# disable tests on 32bit architectures
%ifnarch %ix86 armh
%def_with check
%else
%def_without check
%endif
%define descr \
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.
Name: %pypi_name
Version: 3.9.0
Release: alt1
Summary: Read and write HDF5 files from Python
License: BSD-3-Clause
Group: Development/Python3
Url: http://www.h5py.org/
Vcs: https://github.com/h5py/h5py
Source: %name-%version.tar
Source1: %pyproject_deps_config_name
%pyproject_runtimedeps_metadata
# custom ipython completer for ipython session
%filter_from_requires /python3(IPython\(\..*\)\?)/d
BuildRequires(pre): rpm-build-pyproject
%pyproject_builddeps_build
BuildRequires: libhdf5-devel
BuildRequires: liblzf-devel
%if_with check
%pyproject_builddeps_metadata
BuildRequires: python3-module-pytest
BuildRequires: python3-module-pytest-mpi
%endif
%description
%descr
%package -n python3-module-%name
Summary: %summary
Group: Development/Python3
%add_python3_req_skip Tkinter
%description -n python3-module-%name
%descr
%package -n python3-module-%name-tests
Summary: Tests for %name
Group: Development/Python3
Requires: python3-module-%name = %EVR
%description -n python3-module-%name-tests
This package contains tests for %name.
%prep
%setup
%autopatch -p1
%pyproject_deps_resync_build
%pyproject_deps_resync_metadata
%build
%add_optflags -fno-strict-aliasing
# build against system lzf library
export H5PY_SYSTEM_LZF=1
%pyproject_build
%install
%pyproject_install
%check
%pyproject_run -- bash -s <<-'ENDTESTS'
set -eu
mkdir empty
cd empty
python -m pytest -ra -Wignore --pyargs %pypi_name
ENDTESTS
%files -n python3-module-%name
%doc README.*
%python3_sitelibdir/%mod_name/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%exclude %python3_sitelibdir/*/tests
%files -n python3-module-%name-tests
%python3_sitelibdir/*/tests
%changelog
…
Полный changelog можно просмотреть здесь
%define pypi_name h5py
%define mod_name %pypi_name
# disable tests on 32bit architectures
%ifnarch %ix86 armh
%def_with check
%else
%def_without check
%endif
%define descr \
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.
Name: %pypi_name
Version: 3.9.0
Release: alt1
Summary: Read and write HDF5 files from Python
License: BSD-3-Clause
Group: Development/Python3
Url: http://www.h5py.org/
Vcs: https://github.com/h5py/h5py
Source: %name-%version.tar
Source1: %pyproject_deps_config_name
%pyproject_runtimedeps_metadata
# custom ipython completer for ipython session
%filter_from_requires /python3(IPython\(\..*\)\?)/d
BuildRequires(pre): rpm-build-pyproject
%pyproject_builddeps_build
BuildRequires: libhdf5-devel
BuildRequires: liblzf-devel
%if_with check
%pyproject_builddeps_metadata
BuildRequires: python3-module-pytest
BuildRequires: python3-module-pytest-mpi
%endif
%description
%descr
%package -n python3-module-%name
Summary: %summary
Group: Development/Python3
%add_python3_req_skip Tkinter
%description -n python3-module-%name
%descr
%package -n python3-module-%name-tests
Summary: Tests for %name
Group: Development/Python3
Requires: python3-module-%name = %EVR
%description -n python3-module-%name-tests
This package contains tests for %name.
%prep
%setup
%autopatch -p1
%pyproject_deps_resync_build
%pyproject_deps_resync_metadata
%build
%add_optflags -fno-strict-aliasing
# build against system lzf library
export H5PY_SYSTEM_LZF=1
%pyproject_build
%install
%pyproject_install
%check
%pyproject_run -- bash -s <<-'ENDTESTS'
set -eu
mkdir empty
cd empty
python -m pytest -ra -Wignore --pyargs %pypi_name
ENDTESTS
%files -n python3-module-%name
%doc README.*
%python3_sitelibdir/%mod_name/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%exclude %python3_sitelibdir/*/tests
%files -n python3-module-%name-tests
%python3_sitelibdir/*/tests
%changelog
…
Полный changelog можно просмотреть здесь