summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-12-26 09:14:31 +0000
committerCoprDistGit <infra@openeuler.org>2024-12-26 09:14:31 +0000
commit6d3574f65f4ca7aea30af475aa03e1ee4ba01a75 (patch)
tree0b9ebd14e1389bad16f5b89bff22d96e0ec766bb
parent6ee82b0a6561b3534ddca7e56cd115951ca1d532 (diff)
automatic import of lammpsopeneuler24.09openeuler24.03_LTS
-rw-r--r--lammps.spec24
1 files changed, 3 insertions, 21 deletions
diff --git a/lammps.spec b/lammps.spec
index bcf00bd..842d45e 100644
--- a/lammps.spec
+++ b/lammps.spec
@@ -1,7 +1,3 @@
-%global git 0
-%global commit 570c9d190fee556c62e5bd0a9c6797c4dffcc271
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
%global blaslib openblas
%global blasvar o
%global cmake_blas_flags -DBLAS_LIBRARIES=%{_libdir}/lib%{blaslib}%{blasvar}.so -DLAPACK_LIBRARIES=%{_libdir}/lib%{blaslib}%{blasvar}.so
@@ -10,7 +6,6 @@ Name: lammps
Version: 20241119
Release: 1%{?dist}
Summary: Molecular Dynamics Simulator
-# Automatically converted from old format: GPLv2 - review is highly recommended.
License: GPL-2.0-only
Url: https://www.lammps.org/
Source0: lammps-patch_19Nov2024.tar.gz
@@ -22,10 +17,6 @@ Source5: heffte-2.4.0.tar.gz
Patch0: 0-lammps-change-cmake-download.patch
-# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
-# mpi is broken on s390x see, bug #2322073
-ExcludeArch: %{ix86} s390x
-
BuildRequires: environment-modules
BuildRequires: fftw-devel
BuildRequires: gcc-c++
@@ -53,15 +44,7 @@ BuildRequires: ocl-icd-devel
BuildRequires: opencl-headers
BuildRequires: tbb-devel
BuildRequires: readline-devel
-# before F33 there was no kokkos package
-%if 0%{?fedora} >= 33
-%ifnarch i686 armv7hl
-%global with_kokkos 1
-# kokkos needs a lot of memory
-%global _smp_mflags -j1
-BuildRequires: kokkos-devel >= 4.3
-%endif
-%endif
+
Requires: %{name}-data
%global lammps_desc \
@@ -196,7 +179,6 @@ for mpi in '' mpich %{?with_openmpi:openmpi} ; do
-DPKG_VORONOI=ON \
-DPKG_ATC=ON \
-DPKG_H5MD=ON \
- %{?with_kokkos:-DPKG_KOKKOS=ON -DEXTERNAL_KOKKOS=ON} \
-DPKG_KIM=ON \
-DENABLE_TESTING=ON \
-DGTEST_URL=file://%{S:1} \
@@ -255,7 +237,7 @@ set +e
. /etc/profile.d/modules.sh
set -e
-for mpi in '' mpich %{?with_openmpi:openmpi} %{?el7:openmpi3} ; do
+for mpi in '' mpich %{?with_openmpi:openmpi}; do
old_PYTHONPATH="${PYTHONPATH}"
test -n "${mpi}" && module load mpi/${mpi}-%{_arch} && export PYTHONPATH="${MPI_PYTHON3_SITEARCH}:${PYTHONPATH}"
if [ -z "$mpi" ]; then
@@ -333,5 +315,5 @@ done
%config %{_sysconfdir}/profile.d/lammps.*
%changelog
-* Tue Dec 12 2024 zhtianyu <zhangtianyu@iscas.ac.cn> - 20241119-1
+* Tue Dec 26 2024 zhtianyu <zhangtianyu@iscas.ac.cn> - 20241119-1
- Package init