diff --git a/python-mmtf.spec b/python-mmtf.spec index 82d7bf3..43815c4 100644 --- a/python-mmtf.spec +++ b/python-mmtf.spec @@ -35,11 +35,13 @@ BuildArch: noarch %package -n python3-mmtf Summary: %{summary} BuildRequires: python3-devel +BuildRequires: python3-setuptools %if %{with check} BuildRequires: python3-msgpack BuildRequires: python3-pytest BuildRequires: python3-numpy %endif +%{?python_provide:%python_provide python3-mmtf} Requires: python3-msgpack %description -n python3-mmtf @@ -48,25 +50,22 @@ Requires: python3-msgpack %prep %setup -q -n %{pname}-%{version} -%generate_buildrequires -%pyproject_buildrequires - %build -%pyproject_wheel +%py3_build %install -%pyproject_install -%pyproject_save_files -l mmtf +%py3_install %if %{with check} %check -%pyproject_check_import - %pytest mmtf/tests/codec_tests.py %endif -%files -n python3-mmtf -f %{pyproject_files} +%files -n python3-mmtf +%license LICENSE.txt %doc CHANGELOG.md README.md +%{python3_sitelib}/mmtf_python-%{version}-py%{python3_version}.egg-info +%{python3_sitelib}/mmtf %changelog %autochangelog