diff --git a/python-admesh.spec b/python-admesh.spec index 6c2d557..c808633 100644 --- a/python-admesh.spec +++ b/python-admesh.spec @@ -24,9 +24,6 @@ BuildRequires: admesh-devel >= 0.98 BuildRequires: python3-devel BuildRequires: python3-pytest -BuildRequires: python3-setuptools -BuildRequires: python3-Cython -BuildRequires: python3-pytest-runner %description This module provides bindings for the ADMesh library. @@ -35,7 +32,6 @@ format and partially repair them if necessary. %package -n python3-%{pypi_name} Summary: Python 3 bindings for ADMesh, STL manipulation library -%{?python_provide:%python_provide python3-%{pypi_name}} Obsoletes: python2-%{pypi_name} < 0.98.8-2 Obsoletes: python-%{pypi_name} < 0.98.8-2 @@ -50,24 +46,23 @@ format and partially repair them if necessary. %setup -q -n %{pypi_name}-%{version} cp %{SOURCE1} test/ +%generate_buildrequires +%pyproject_buildrequires + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files -l %{pypi_name} %check -PYTHONPATH=%{buildroot}%{python3_sitearch} py.test-3 -v \ -%ifarch ppc64 - -k "not test_saved_equals_original_binary" # likely a bug in admesh itself -%endif +%pyproject_check_import +%pytest -v -%files -n python3-%{pypi_name} +%files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.rst -%license COPYING -%attr(0755,root,root) %{python3_sitearch}/%{pypi_name}.*.so -%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog