remove runpath
This commit is contained in:
parent
96bbee0804
commit
16fd7d543f
28
gromacs.spec
28
gromacs.spec
@ -8,7 +8,7 @@
|
|||||||
%endif
|
%endif
|
||||||
Name: gromacs
|
Name: gromacs
|
||||||
Version: 2019.3
|
Version: 2019.3
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Fast, Free and Flexible Molecular Dynamics
|
Summary: Fast, Free and Flexible Molecular Dynamics
|
||||||
License: GPLv2+ and ASL-2.0 and BSL-1.0 and MIT and LGPL-2.1
|
License: GPLv2+ and ASL-2.0 and BSL-1.0 and MIT and LGPL-2.1
|
||||||
URL: http://www.gromacs.org
|
URL: http://www.gromacs.org
|
||||||
@ -19,6 +19,7 @@ Patch0: gromacs-dssp-path.patch
|
|||||||
Patch1: gromacs-issue-2366.patch
|
Patch1: gromacs-issue-2366.patch
|
||||||
BuildRequires: gcc-c++ cmake3 >= 3.4.3 openblas-devel fftw-devel gsl-devel hwloc
|
BuildRequires: gcc-c++ cmake3 >= 3.4.3 openblas-devel fftw-devel gsl-devel hwloc
|
||||||
BuildRequires: hwloc-devel libX11-devel lmfit-devel >= 6.0 environment-modules
|
BuildRequires: hwloc-devel libX11-devel lmfit-devel >= 6.0 environment-modules
|
||||||
|
BuildRequires: chrpath
|
||||||
%if %{with_opencl}
|
%if %{with_opencl}
|
||||||
BuildRequires: ocl-icd-devel opencl-headers
|
BuildRequires: ocl-icd-devel opencl-headers
|
||||||
Recommends: gromacs-opencl = %{version}-%{release}
|
Recommends: gromacs-opencl = %{version}-%{release}
|
||||||
@ -212,6 +213,26 @@ done
|
|||||||
rm ./%{_bindir}/gmx-completion.bash ./%{_libdir}/*mpi*/bin/gmx-completion-*mpi*.bash
|
rm ./%{_bindir}/gmx-completion.bash ./%{_libdir}/*mpi*/bin/gmx-completion-*mpi*.bash
|
||||||
%ldconfig_scriptlets libs
|
%ldconfig_scriptlets libs
|
||||||
|
|
||||||
|
chrpath -d %{buildroot}/%{_libdir}/mpich/bin/mdrun_mpich
|
||||||
|
chrpath -d %{buildroot}/%{_libdir}/mpich/bin/mdrun_mpich_d
|
||||||
|
chrpath -d %{buildroot}/%{_libdir}/openmpi/bin/mdrun_openmpi
|
||||||
|
chrpath -d %{buildroot}/%{_libdir}/openmpi/bin/mdrun_openmpi_d
|
||||||
|
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
||||||
|
echo "%{_libdir}/mpich/lib" > %{buildroot}/etc/ld.so.conf.d/%{name}-mpich-%{_arch}.conf
|
||||||
|
echo "%{_libdir}/openmpi/lib" > %{buildroot}/etc/ld.so.conf.d/%{name}-openmpi-%{_arch}.conf
|
||||||
|
|
||||||
|
%post openmpi
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
%post mpich
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
%postun openmpi
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
%postun mpich
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
%check
|
%check
|
||||||
. /etc/profile.d/modules.sh
|
. /etc/profile.d/modules.sh
|
||||||
for p in '' _d ; do
|
for p in '' _d ; do
|
||||||
@ -257,11 +278,16 @@ done
|
|||||||
|
|
||||||
%files openmpi
|
%files openmpi
|
||||||
%{_libdir}/openmpi/bin/mdrun_openmpi*
|
%{_libdir}/openmpi/bin/mdrun_openmpi*
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/%{name}-openmpi-%{_arch}.conf
|
||||||
|
|
||||||
%files mpich
|
%files mpich
|
||||||
%{_libdir}/mpich/bin/mdrun_mpich*
|
%{_libdir}/mpich/bin/mdrun_mpich*
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/%{name}-mpich-%{_arch}.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 05 2022 Ge Wang <wangge20@h-partners.com> - 2019.3-3
|
||||||
|
- Remove runpath
|
||||||
|
|
||||||
* Mon Nov 21 2022 wangkai <wangkai385@h-partners.com> - 2019.3-2
|
* Mon Nov 21 2022 wangkai <wangkai385@h-partners.com> - 2019.3-2
|
||||||
- Change source url
|
- Change source url
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user