diff options
author | CoprDistGit <infra@openeuler.org> | 2024-12-18 03:53:48 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-12-18 03:53:48 +0000 |
commit | fde913c66298beed7be3092ff0e2f7b19a98cbb9 (patch) | |
tree | 264377ccbd9e81e073ccc17798442688f185576a | |
parent | 4d3f3ab92fe1e06edfbb33c43c9a61da01142a2f (diff) |
automatic import of lammps
-rw-r--r-- | lammps.spec | 50 |
1 files changed, 2 insertions, 48 deletions
diff --git a/lammps.spec b/lammps.spec index 8a01b8d..ab08ab7 100644 --- a/lammps.spec +++ b/lammps.spec @@ -236,44 +236,11 @@ for mpi in '' mpich %{?with_openmpi:openmpi} ; do fi done +rm -rf build/phana_build + cd python %py3_install - -%check - -%global testargs --label-exclude unstable --exclude-regex '\(SimpleCommands\|Variables\|ComputeGlobal\|MolPairStyle:coul_slater_long\|AtomicPairStyle:meam_spline\|FixTimestep:.*\|.*tip4p.*\)' - -%ifnarch %ix86 -%global testargs --label-exclude unstable --exclude-regex '\(SimpleCommands\|Variables\|ComputeGlobal\|MolPairStyle:coul_slater_long\|AtomicPairStyle:meam_spline\|FixTimestep:.*\|.*tip4p.*\|Groups\|AtomicPairStyle:lj_cut_sphere\|AtomicPairStyle:lj_expand_sphere\|AtomicPairStyle:meam_ms\|AtomicPairStyle:pedone\|DihedralStyle:cosine_squared_restricted\|BondStyle:harmonic_restrain\)' -%endif - -%ifarch s390x -%global testargs --label-exclude unstable --exclude-regex '\(SimpleCommands\|Variables\|ComputeGlobal\|MolPairStyle:coul_slater_long\|AtomicPairStyle:meam_spline\|FixTimestep:.*\|.*tip4p.*\|LibraryMPI\|MPILoadBalancing\|FileOperations\|Groups\|SetProperty\|AtomicPairStyle:lj_cut_sphere\|AtomicPairStyle:lj_expand_sphere\|AtomicPairStyle:meam_ms\|AtomicPairStyle:pedone\|DihedralStyle:cosine_squared_restricted\|BondStyle:harmonic_restrain\|TestPairList\)' -%endif - -set +e -. /etc/profile.d/modules.sh -set -e - -for mpi in '' mpich %{?with_openmpi:openmpi} %{?el7:openmpi3} ; do - old_PYTHONPATH="${PYTHONPATH}" - test -n "${mpi}" && module load mpi/${mpi}-%{_arch} && export PYTHONPATH="${MPI_PYTHON3_SITEARCH}:${PYTHONPATH}" - if [ -z "$mpi" ]; then - cd build - ctest %{?testargs} - else - cd build-${mpi} - ctest %{?testargs} - fi - cd .. - test -n "${mpi}" && module unload mpi/${mpi}-%{_arch} && export PYTHONPATH="${old_PYTHONPATH}" -done - -%ldconfig_scriptlets - -rm -rf build/phana_build - %files %doc README %license LICENSE @@ -321,19 +288,6 @@ rm -rf build/phana_build %{_libdir}/openmpi*/lib/liblammps_openmpi.so.* %endif -%if 0%{?el7} -%files openmpi3 -%license LICENSE -%{_libdir}/openmpi3*/bin/lmp_openmpi3 -%{_mandir}/openmpi3*/man1/lmp_openmpi3.* -%{_libdir}/openmpi3*/lib/liblammps_openmpi3.so.* - -%files openmpi3-devel -%{_libdir}/openmpi3*/lib/liblammps_openmpi3.so -%{_libdir}/openmpi3*/lib/pkgconfig/liblammps_openmpi3.pc -%{_libdir}/openmpi3/lib/cmake/LAMMPS -%endif - %files mpich %license LICENSE %{_libdir}/mpich*/bin/lmp_mpich |