diff options
-rw-r--r-- | lammps.spec | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/lammps.spec b/lammps.spec index ea3daa5..91ebd29 100644 --- a/lammps.spec +++ b/lammps.spec @@ -202,6 +202,10 @@ BuildArch: noarch This package contains data files for LAMMPS. +BuildRequires: python3-setuptools >= 42 +BuildRequires: python3-wheel +BuildRequires: python3-build + %prep %if %{git} %setup -q -n %{name}-%{commit} @@ -209,10 +213,6 @@ This package contains data files for LAMMPS. %setup -q -n %{name}-%{uversion} %endif -%generate_buildrequires -cd python -%pyproject_buildrequires - %build mkdir -p .obj-%{_target_platform} && cd .obj-%{_target_platform} set +e @@ -257,7 +257,7 @@ for mpi in '' mpich %{?with_openmpi:openmpi} ; do done cd python -%pyproject_wheel +%py3_build %install set +e @@ -269,8 +269,7 @@ for mpi in '' mpich %{?with_openmpi:openmpi} ; do done cd python -%pyproject_install -%pyproject_save_files lammps +%py3_install %check @@ -296,7 +295,7 @@ for mpi in '' mpich %{?with_openmpi:openmpi} ; do test -n "${mpi}" && module unload mpi/${mpi}-%{_arch} && export PYTHONPATH="${old_PYTHONPATH}" done -%pyproject_check_import -t +%py3_check_import -t %ldconfig_scriptlets @@ -331,7 +330,7 @@ done %{_libdir}/mpich*/lib/pkgconfig/liblammps_mpich.pc %{_libdir}/mpich*/lib/cmake/LAMMPS -%files -n python3-%{name} -f %{pyproject_files} +%files -n python3-%{name} -f %{py3_files} %files headers %license LICENSE |