From 9fc30c0b1612ceb43f40c55523d186664c04e54a Mon Sep 17 00:00:00 2001 From: wu-leilei Date: Fri, 9 Dec 2022 10:03:19 +0800 Subject: [PATCH] Remove rpath --- netcdf.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/netcdf.spec b/netcdf.spec index f0a0d29..294670c 100644 --- a/netcdf.spec +++ b/netcdf.spec @@ -1,7 +1,7 @@ %global sover 19 Name: netcdf Version: 4.8.1 -Release: 2 +Release: 3 Summary: Libraries for the Unidata network Common Data Form License: BSD-3-Clause @@ -201,6 +201,16 @@ do done %endif +chrpath -d %{buildroot}/%{_libdir}/openmpi/lib/libh5bzip2.so +chrpath -d %{buildroot}/%{_libdir}/mpich/lib/libh5bzip2.so +chrpath -d %{buildroot}/%{_libdir}/mpich/lib/libnetcdf.so.19.0.1 +chrpath -d %{buildroot}/%{_libdir}/openmpi/lib/libnetcdf.so.19.0.1 +chrpath -d %{buildroot}/%{_libdir}/mpich/bin/nc4print +chrpath -d %{buildroot}/%{_libdir}/openmpi/bin/nc4print +chrpath -d %{buildroot}/%{_libdir}/mpich/bin/ocprint +chrpath -d %{buildroot}/%{_libdir}/openmpi/bin/ocprint + + %check make %{?_smp_mflags} -C build check %ldconfig_scriptlets @@ -306,6 +316,9 @@ make %{?_smp_mflags} -C build check %endif %changelog +* Tue Dec 6 2022 wulei - 4.8.1-3 +- Remove rpath + * Fri Aug 12 2022 Jun Zhang - 4.8.1-2 - Upgrade license to BSD-3-Clause -- Gitee