1
0

- Fix rpath in provided libraries and shebang in pypresso.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python3-espressomd?expand=0&rev=36
This commit is contained in:
Matej Cepl 2022-07-21 05:55:40 +00:00 committed by Git OBS Bridge
parent 2afb0d8fe5
commit c016937f1c
2 changed files with 8 additions and 0 deletions

View File

@ -66,6 +66,7 @@ Tue Jul 19 19:40:59 UTC 2022 - Matej Cepl <mcepl@suse.com>
* MDAnalysis integration now provides bond information * MDAnalysis integration now provides bond information
(#3801). (#3801).
- Give up on building on 32bit architectures (gh#espressomd/espresso#4537). - Give up on building on 32bit architectures (gh#espressomd/espresso#4537).
- Fix rpath in provided libraries and shebang in pypresso.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Apr 16 00:24:21 UTC 2022 - Jean-Noel Grad <jgrad@icp.uni-stuttgart.de> Sat Apr 16 00:24:21 UTC 2022 - Jean-Noel Grad <jgrad@icp.uni-stuttgart.de>

View File

@ -58,6 +58,7 @@ BuildRequires: gcc-c++
# Currently libboost_mpi-devel and hdf5 use different mpi versions # Currently libboost_mpi-devel and hdf5 use different mpi versions
# BuildRequires: hdf5-devel # BuildRequires: hdf5-devel
BuildRequires: %{mpiver}-devel BuildRequires: %{mpiver}-devel
BuildRequires: chrpath
BuildRequires: gsl-devel BuildRequires: gsl-devel
BuildRequires: python3-Cython BuildRequires: python3-Cython
BuildRequires: python3-devel BuildRequires: python3-devel
@ -75,6 +76,7 @@ BuildRequires: zlib-devel
%else %else
BuildRequires: boost-devel BuildRequires: boost-devel
%endif %endif
Provides: libEspresso4 = %{version}-%{release}
Obsoletes: libEspresso4 < 4.1 Obsoletes: libEspresso4 < 4.1
Requires: python3-h5py Requires: python3-h5py
Requires: python3-numpy Requires: python3-numpy
@ -92,6 +94,9 @@ systems, for example DNA and lipid membranes.
%prep %prep
%autosetup -p1 -n %{pkgname} %autosetup -p1 -n %{pkgname}
# Fix shebang line for pypresso
sed -i -E '1s@^#!/usr/bin/env[[:blank:]]+sh@#!/bin/sh@' src/python/pypresso.cmakein
%build %build
source %{_libdir}/mpi/gcc/%{mpiver}/bin/mpivars.sh source %{_libdir}/mpi/gcc/%{mpiver}/bin/mpivars.sh
# gh#espressomd/espresso#3396 # gh#espressomd/espresso#3396
@ -111,6 +116,8 @@ export HDF5_USE_SHLIB=yes
%install %install
%cmake_install %cmake_install
find %{buildroot}%{python3_sitearch} -name \*.so \
-exec chrpath -r %{python3_sitearch} '{}' \;
%check %check
# gh#espressomd/espresso#3315 # gh#espressomd/espresso#3315