1
0

Accepting request 1114814 from home:mimi_vx:branches:devel:languages:python:numeric

- cleanup spec
- skip mpiio test

OBS-URL: https://build.opensuse.org/request/show/1114814
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python3-espressomd?expand=0&rev=49
This commit is contained in:
Ondřej Súkup 2023-10-02 12:12:56 +00:00 committed by Git OBS Bridge
parent 4bb6cb65fd
commit 98dddf6f9d
2 changed files with 13 additions and 24 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Oct 2 12:11:53 UTC 2023 - Ondřej Súkup <mimi.vx@gmail.com>
- cleanup spec
- skip mpiio test
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Apr 26 18:06:17 UTC 2023 - Jean-Noel Grad <jgrad@icp.uni-stuttgart.de> Wed Apr 26 18:06:17 UTC 2023 - Jean-Noel Grad <jgrad@icp.uni-stuttgart.de>

View File

@ -18,20 +18,7 @@
# Build with OpenMPI # Build with OpenMPI
%if 0%{?sle_version} == 0
%define mpiver openmpi4 %define mpiver openmpi4
%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 pkgname espresso
%define modname %{pkgname}md %define modname %{pkgname}md
Name: python3-%{modname} Name: python3-%{modname}
@ -39,7 +26,6 @@ Version: 4.2.1
Release: 0 Release: 0
Summary: Parallel simulation software for soft matter research Summary: Parallel simulation software for soft matter research
License: GPL-3.0-or-later License: GPL-3.0-or-later
Group: Productivity/Scientific/Chemistry
URL: http://espressomd.org URL: http://espressomd.org
Source: https://github.com/%{modname}/%{pkgname}/releases/download/%{version}/%{pkgname}-%{version}.tar.gz Source: https://github.com/%{modname}/%{pkgname}/releases/download/%{version}/%{pkgname}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM setuptools.patch gh#espressomd/espresso#4709 # PATCH-FIX-UPSTREAM setuptools.patch gh#espressomd/espresso#4709
@ -58,22 +44,18 @@ BuildRequires: gcc-c++
BuildRequires: %{mpiver}-devel BuildRequires: %{mpiver}-devel
BuildRequires: chrpath BuildRequires: chrpath
BuildRequires: gsl-devel BuildRequires: gsl-devel
BuildRequires: python3-Cython
BuildRequires: python3-devel
BuildRequires: python3-numpy-devel
BuildRequires: python3-scipy
BuildRequires: python3-setuptools
%if 0%{?suse_version} > 1325
BuildRequires: hdf5-%{mpiver}-devel BuildRequires: hdf5-%{mpiver}-devel
BuildRequires: libboost_filesystem-devel BuildRequires: libboost_filesystem-devel
BuildRequires: libboost_mpi-devel BuildRequires: libboost_mpi-devel
BuildRequires: libboost_system-devel BuildRequires: libboost_system-devel
BuildRequires: libboost_test-devel BuildRequires: libboost_test-devel
BuildRequires: python3-Cython < 3
BuildRequires: python3-devel
BuildRequires: python3-h5py BuildRequires: python3-h5py
BuildRequires: python3-numpy-devel
BuildRequires: python3-scipy
BuildRequires: python3-setuptools
BuildRequires: zlib-devel BuildRequires: zlib-devel
%else
BuildRequires: boost-devel
%endif
Provides: libEspresso4 = %{version}-%{release} Provides: libEspresso4 = %{version}-%{release}
Obsoletes: libEspresso4 < 4.1 Obsoletes: libEspresso4 < 4.1
Requires: python3-h5py Requires: python3-h5py
@ -91,9 +73,10 @@ systems, for example DNA and lipid membranes.
%prep %prep
%autosetup -p1 -n %{pkgname} %autosetup -p1 -n %{pkgname}
# Fix shebang line for pypresso # Fix shebang line for pypresso
sed -i -E '1s@^#!/usr/bin/env[[:blank:]]+sh@#!/bin/sh@' src/python/pypresso.cmakein sed -i -E '1s@^#!/usr/bin/env[[:blank:]]+sh@#!/bin/sh@' src/python/pypresso.cmakein
# skip mpiio test - it fails if inwoked with cmake, direct run with python3 -m unittest pass
sed -i '/mpiio\.py/d' testsuite/python/CMakeLists.txt
%build %build
source %{_libdir}/mpi/gcc/%{mpiver}/bin/mpivars.sh source %{_libdir}/mpi/gcc/%{mpiver}/bin/mpivars.sh