Remove rpath

(cherry picked from commit 511466010bb1c45605c20ae0da96f046445f92f8)
This commit is contained in:
wu-leilei 2022-12-06 14:58:34 +08:00 committed by openeuler-sync-bot
parent fb5102ca86
commit 5d5e96073a

View File

@ -1,7 +1,7 @@
%global sover 19 %global sover 19
Name: netcdf Name: netcdf
Version: 4.8.1 Version: 4.8.1
Release: 1 Release: 2
Summary: Libraries for the Unidata network Common Data Form Summary: Libraries for the Unidata network Common Data Form
License: BSD-3-Clause License: BSD-3-Clause
@ -201,6 +201,16 @@ do
done done
%endif %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 %check
make %{?_smp_mflags} -C build check make %{?_smp_mflags} -C build check
%ldconfig_scriptlets %ldconfig_scriptlets
@ -306,6 +316,9 @@ make %{?_smp_mflags} -C build check
%endif %endif
%changelog %changelog
* Tue Dec 6 2022 wulei <wulei80@h-partners.com> - 4.8.1-2
- Remove rpath
* Wed Oct 26 2022 liyanan <liyanan32@h-partners.com> - 4.8.1-1 * Wed Oct 26 2022 liyanan <liyanan32@h-partners.com> - 4.8.1-1
- Upgrade to 4.8.1 - Upgrade to 4.8.1