forked from pool/python3-espressomd
f05e7b8e0b
- Update to 4.1.2: - The interface has not been changed between ESPResSo 4.1.1 and 4.1.2. - General corrections and improvements: - Remove correlation between the rotational noise and translational noise in the Langevin thermostat (#3355) - Fix a bug that may cause the wrong temperature to be set by the Langevin and DPD thermostats in the first time step after the system was altered from the Python level, e.g., by changing particles or interactions (#3341) - Fix a bug that caused the DPD thermostat to generate an incorrect velocity distribution when used together with the Langevin thermostat (#3352) - Fix a bug in MMM2D and ELC with potential boundary conditions, where one of the correction factors was over-counted resulting in wrong energies (#3310) - Fix a bug that caused the wrong bonds to be deleted when removing particles from the system (#3356) - Fix an ambiguity in `ParticleSlice`: the values in the square brackets refer to particle ids, not array indices (#3367). This means the ill-defined syntax `system.part[0:-1]` is no longer valid. See the User Guide section on Setting up particles for more information. - Remove the mass prefactor in the `ComForce` observable and use the correct Particle ids in the `ParticleAngularVelocities` and `ParticleBodyVelocities` observables (#3380) - Fix a rounding error that caused debug builds of ESPResSo running with multiple MPI threads to crash when a particle was placed exactly on the boundary between two cells OBS-URL: https://build.opensuse.org/request/show/764818 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python3-espressomd?expand=0&rev=11
112 lines
3.5 KiB
RPMSpec
112 lines
3.5 KiB
RPMSpec
#
|
|
# spec file for package python3-espressomd
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
# Copyright (c) 2014 Christoph Junghans
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
# Build with OpenMPI
|
|
%if 0%{?sle_version} == 0
|
|
%define mpiver openmpi2
|
|
%else
|
|
%if 0%{?sle_version} <= 120300
|
|
%define mpiver openmpi
|
|
%else
|
|
%if 0%{?sle_version} <= 150000
|
|
%define mpiver openmpi2
|
|
%else
|
|
%define mpiver openmpi3
|
|
%endif
|
|
%endif
|
|
%endif
|
|
|
|
%define pkgname espresso
|
|
%define modname %{pkgname}md
|
|
Name: python3-%{modname}
|
|
Version: 4.1.2
|
|
Release: 0
|
|
Summary: Parallel simulation software for soft matter research
|
|
License: GPL-3.0-or-later
|
|
Group: Productivity/Scientific/Chemistry
|
|
URL: http://espressomd.org
|
|
Source: https://github.com/%{modname}/%{pkgname}/releases/download/%{version}/%{pkgname}-%{version}.tar.gz
|
|
BuildRequires: cmake
|
|
BuildRequires: fftw3-devel
|
|
BuildRequires: gcc-c++
|
|
# Currently libboost_mpi-devel and hdf5 use different mpi versions
|
|
# BuildRequires: hdf5-devel
|
|
BuildRequires: %{mpiver}-devel
|
|
BuildRequires: gsl-devel
|
|
BuildRequires: python3-Cython
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-numpy-devel
|
|
%if 0%{?suse_version} > 1325
|
|
BuildRequires: libboost_filesystem-devel
|
|
BuildRequires: libboost_mpi-devel
|
|
BuildRequires: libboost_system-devel
|
|
BuildRequires: libboost_test-devel
|
|
%else
|
|
BuildRequires: boost-devel
|
|
%endif
|
|
Obsoletes: libEspresso4
|
|
|
|
%description
|
|
ESPResSo is a highly versatile software package for performing and analyzing
|
|
scientific Molecular Dynamics many-particle simulations of coarse-grained
|
|
atomistic or bead-spring models as they are used in soft-matter research in
|
|
physics, chemistry and molecular biology. It can be used to simulate systems
|
|
such as polymers, liquid crystals, colloids, ferrofluids and biological
|
|
systems, for example DNA and lipid membranes.
|
|
|
|
%prep
|
|
%setup -q -n %{pkgname}
|
|
|
|
%build
|
|
source %{_libdir}/mpi/gcc/%{mpiver}/bin/mpivars.sh
|
|
# gh#espressomd/espresso#3396
|
|
%define _lto_cflags %{nil}
|
|
|
|
# overwrite .so linker flags on SUSE distros: drop --no-undefined
|
|
# we don't install {i,}pypresso scripts as they aren't needed when installing in /usr
|
|
%cmake \
|
|
'-DCMAKE_SHARED_LINKER_FLAGS=-Wl,--as-needed -Wl,-z,now' \
|
|
-DLIBDIR=%{_lib} \
|
|
-DPYTHON_EXECUTABLE=%{_bindir}/python3 \
|
|
-DINSTALL_PYPRESSO=OFF
|
|
%make_jobs
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
#fix some permissions
|
|
find %{buildroot}%{_prefix} -name "*.so" -exec chmod +x {} \;
|
|
find %{buildroot}%{_prefix} -name "gen_pxiconfig" -exec chmod +x {} \;
|
|
# no devel package
|
|
rm -f %{buildroot}%{_libdir}/lib*.so
|
|
|
|
%check
|
|
# https://github.com/espressomd/espresso/issues/3315
|
|
%ifarch i586
|
|
%define testargs ARGS='-E \\(MpiCallbacks_test\\|matrix_vector_product\\|collision_detection\\)'
|
|
%endif
|
|
LD_LIBRARY_PATH='%{buildroot}/%{python3_sitearch}/espressomd::%{_libdir}/mpi/gcc/%{mpiver}/%{_lib}' make -C build check CTEST_OUTPUT_ON_FAILURE=1 %{?testargs:%{testargs}}
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc README AUTHORS NEWS ChangeLog
|
|
%{python3_sitearch}/espressomd
|
|
|
|
%changelog
|