summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-12-17 10:57:02 +0000
committerCoprDistGit <infra@openeuler.org>2024-12-17 10:57:02 +0000
commitdb6924cc9f2cdc74bf296ac4281e10f3a5cd3435 (patch)
tree6c3684e71a97e820c565246a613d64a82617f6d0
parent7cf86277f85ee09f1efdd07a90ecff95f94ac607 (diff)
automatic import of lammps
-rw-r--r--lammps.spec7
1 files changed, 5 insertions, 2 deletions
diff --git a/lammps.spec b/lammps.spec
index c5108b4..f82bff6 100644
--- a/lammps.spec
+++ b/lammps.spec
@@ -214,7 +214,7 @@ for mpi in '' mpich %{?with_openmpi:openmpi} ; do
-DCMAKE_INSTALL_BINDIR=${MPI_BIN:-%{_bindir}} -DCMAKE_INSTALL_LIBDIR=${MPI_LIB:-%{_libdir}} -DLAMMPS_MACHINE="${MPI_SUFFIX#_}" -DLAMMPS_LIB_SUFFIX="${MPI_SUFFIX#_}" -DCMAKE_INSTALL_MANDIR=${MPI_MAN:-%{_mandir}} \
${mpi:+-DBUILD_MPI=ON -DFFT_USE_HEFFTE=ON -DCMAKE_EXE_LINKER_FLAGS="%{__global_ldflags} -Wl,-rpath -Wl,${MPI_LIB} -Wl,--enable-new-dtags" -DCMAKE_SHARED_LINKER_FLAGS="%{__global_ldflags} -Wl,-rpath -Wl,${MPI_LIB} -Wl,--enable-new-dtags" $(test "$mpi" != openmpi || echo "-DMPIEXEC_PREFLAGS=--oversubscribe") } \
$(test -z "${mpi}" && echo -DBUILD_MPI=OFF -DBUILD_LAMMPS_SHELL=ON -DBUILD_TOOLS=ON)
- cmake --build . -j8
+ cmake --build . -j64
test -n "${mpi}" && module unload mpi/${mpi}-%{_arch}
cd ..
done
@@ -238,6 +238,7 @@ done
cd python
%py3_install
+
%check
%global testargs --label-exclude unstable --exclude-regex '\(SimpleCommands\|Variables\|ComputeGlobal\|MolPairStyle:coul_slater_long\|AtomicPairStyle:meam_spline\|FixTimestep:.*\|.*tip4p.*\)'
@@ -301,7 +302,9 @@ done
%{_libdir}/mpich*/lib/pkgconfig/liblammps_mpich.pc
%{_libdir}/mpich*/lib/cmake/LAMMPS
-%files -n python%{python3_pkgversion}-%{name} -f %{pyproject_files}
+%files -n python3-%{name}
+%{python3_sitelib}/lammps
+%{python3_sitelib}/lammps-*.egg-info
%files headers
%license LICENSE