|
David |
5ab8cc3 |
# Created by pyp2rpm-3.3.4
|
|
David |
5ab8cc3 |
%global pypi_name boutdata
|
|
David |
5ab8cc3 |
|
|
David |
5ab8cc3 |
Name: python-%{pypi_name}
|
|
David Bold |
f8ab5ec |
Version: 0.2.1
|
|
David Bold |
2f5820b |
Release: %autorelease
|
|
David |
5ab8cc3 |
Summary: Python package for collecting BOUT++ data
|
|
David |
5ab8cc3 |
|
|
David |
5ab8cc3 |
License: LGPLv3+
|
|
David |
5ab8cc3 |
URL: http://boutproject.github.io
|
|
David |
5ab8cc3 |
Source0: %pypi_source
|
|
David |
5ab8cc3 |
BuildArch: noarch
|
|
David |
5ab8cc3 |
|
|
David Bold |
f8ab5ec |
Patch: 0001-pytest-no-cov.patch
|
|
David Bold |
f8ab5ec |
Patch: https://github.com/boutproject/boutdata/commit/2c4500ed56199a55e098d84c399c5a6b3f27544e.patch#./0002-no-gc-collect.patch
|
|
David Bold |
22c3358 |
Patch: natsort-version.patch
|
|
David Bold |
793936f |
Patch: fix-script-dir.patch
|
|
David Bold |
92df4c7 |
|
|
David |
5ab8cc3 |
BuildRequires: python3-devel
|
|
David |
5ab8cc3 |
BuildRequires: pyproject-rpm-macros
|
|
David |
5ab8cc3 |
# From setup_requires in setup.py:
|
|
David |
5ab8cc3 |
BuildRequires: python3dist(setuptools)
|
|
David |
5ab8cc3 |
BuildRequires: python3dist(setuptools-scm[toml]) >= 3.4
|
|
David |
5ab8cc3 |
# For tests:
|
|
David |
5ab8cc3 |
BuildRequires: python3dist(pytest)
|
|
David |
5ab8cc3 |
|
|
David |
5ab8cc3 |
%description
|
|
David |
5ab8cc3 |
Python interface for reading bout++ data files.
|
|
David |
5ab8cc3 |
|
|
David |
5ab8cc3 |
%package -n python3-%{pypi_name}
|
|
David |
5ab8cc3 |
Summary: %{summary}
|
|
David |
5ab8cc3 |
|
|
David |
5ab8cc3 |
%description -n python3-%{pypi_name}
|
|
David |
5ab8cc3 |
Python interface for reading bout++ data files.
|
|
David |
5ab8cc3 |
|
|
David |
5ab8cc3 |
%generate_buildrequires
|
|
David |
5ab8cc3 |
%pyproject_buildrequires -r
|
|
David |
5ab8cc3 |
|
|
David |
5ab8cc3 |
|
|
David |
5ab8cc3 |
%prep
|
|
David |
5ab8cc3 |
%autosetup -n %{pypi_name}-%{version} -p 1
|
|
David |
5ab8cc3 |
# Remove bundled egg-info
|
|
David |
5ab8cc3 |
rm -rf %{pypi_name}.egg-info
|
|
David |
5ab8cc3 |
|
|
David |
5ab8cc3 |
|
|
David |
5ab8cc3 |
%build
|
|
David |
5ab8cc3 |
%pyproject_wheel
|
|
David |
5ab8cc3 |
|
|
David |
5ab8cc3 |
|
|
David |
5ab8cc3 |
%install
|
|
David |
5ab8cc3 |
%pyproject_install
|
|
David |
5ab8cc3 |
%pyproject_save_files %{pypi_name}
|
|
David |
5ab8cc3 |
|
|
David |
5ab8cc3 |
|
|
David |
5ab8cc3 |
%check
|
|
David |
89e35b0 |
# Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1997717
|
|
David |
89e35b0 |
export HDF5_USE_FILE_LOCKING=FALSE
|
|
David Bold |
793936f |
# Smoke test for squash
|
|
David Bold |
793936f |
PYTHONPATH=${RPM_BUILD_ROOT}/${PYTHON3_SITELIB}:${PYTHONPATH} ${RPM_BUILD_ROOT}/%{_bindir}/bout-squashoutput --help
|
|
David Bold |
793936f |
# run unit tests
|
|
David |
5ab8cc3 |
%pytest
|
|
David |
5ab8cc3 |
|
|
David |
5ab8cc3 |
|
|
David |
342720f |
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
|
David |
5ab8cc3 |
%license LICENSE
|
|
David |
5ab8cc3 |
%doc README.md
|
|
David |
49eb83e |
%{_bindir}/bout-squashoutput
|
|
David |
5ab8cc3 |
|
|
David |
5ab8cc3 |
|
|
David |
5ab8cc3 |
%changelog
|
|
David Bold |
2c4626a |
%{autochangelog}
|