diff --git a/python3-espressomd.changes b/python3-espressomd.changes index 91f3f9a..9b5c418 100644 --- a/python3-espressomd.changes +++ b/python3-espressomd.changes @@ -66,6 +66,7 @@ Tue Jul 19 19:40:59 UTC 2022 - Matej Cepl * MDAnalysis integration now provides bond information (#3801). - 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 diff --git a/python3-espressomd.spec b/python3-espressomd.spec index cde412d..04ffa14 100644 --- a/python3-espressomd.spec +++ b/python3-espressomd.spec @@ -58,6 +58,7 @@ BuildRequires: gcc-c++ # Currently libboost_mpi-devel and hdf5 use different mpi versions # BuildRequires: hdf5-devel BuildRequires: %{mpiver}-devel +BuildRequires: chrpath BuildRequires: gsl-devel BuildRequires: python3-Cython BuildRequires: python3-devel @@ -75,6 +76,7 @@ BuildRequires: zlib-devel %else BuildRequires: boost-devel %endif +Provides: libEspresso4 = %{version}-%{release} Obsoletes: libEspresso4 < 4.1 Requires: python3-h5py Requires: python3-numpy @@ -92,6 +94,9 @@ systems, for example DNA and lipid membranes. %prep %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 source %{_libdir}/mpi/gcc/%{mpiver}/bin/mpivars.sh # gh#espressomd/espresso#3396 @@ -111,6 +116,8 @@ export HDF5_USE_SHLIB=yes %install %cmake_install +find %{buildroot}%{python3_sitearch} -name \*.so \ + -exec chrpath -r %{python3_sitearch} '{}' \; %check # gh#espressomd/espresso#3315