Preserve the rpath of the hdf5-openmpi and hdf5-mpich subpackages
(cherry picked from commit a359c10a8dc7846911eb5ea0416cdb0fb7d7b5bb)
This commit is contained in:
parent
33d44a53cb
commit
5f32ab3c90
23
hdf5.spec
23
hdf5.spec
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
Name: hdf5
|
Name: hdf5
|
||||||
Version: 1.12.1
|
Version: 1.12.1
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: A data model, library, and file format for storing and managing data
|
Summary: A data model, library, and file format for storing and managing data
|
||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ BuildRequires: gcc, gcc-c++
|
|||||||
BuildRequires: krb5-devel, openssl-devel, zlib-devel, gcc-gfortran, time
|
BuildRequires: krb5-devel, openssl-devel, zlib-devel, gcc-gfortran, time
|
||||||
BuildRequires: automake libtool
|
BuildRequires: automake libtool
|
||||||
BuildRequires: openssh-clients
|
BuildRequires: openssh-clients
|
||||||
BuildRequires: libaec-devel chrpath
|
BuildRequires: libaec-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
HDF5 is a data model, library, and file format for storing and managing data. It supports an unlimited variety of datatypes, and is designed for flexible and efficient I/O and for high volume and complex data. HDF5 is portable and is extensible, allowing applications to evolve in their use of HDF5. The HDF5 Technology suite includes tools and applications for managing, manipulating, viewing, and analyzing data in the HDF5 format.
|
HDF5 is a data model, library, and file format for storing and managing data. It supports an unlimited variety of datatypes, and is designed for flexible and efficient I/O and for high volume and complex data. HDF5 is portable and is extensible, allowing applications to evolve in their use of HDF5. The HDF5 Technology suite includes tools and applications for managing, manipulating, viewing, and analyzing data in the HDF5 format.
|
||||||
@ -219,25 +219,10 @@ cat > ${RPM_BUILD_ROOT}/%{_rpmmacrodir}/macros.hdf5 <<EOF
|
|||||||
%%_hdf5_version %{version}
|
%%_hdf5_version %{version}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cd $RPM_BUILD_ROOT/usr
|
|
||||||
file `find -type f`| grep -w ELF | awk -F":" '{print $1}' | for i in `xargs`
|
|
||||||
do
|
|
||||||
chrpath -d $i
|
|
||||||
done
|
|
||||||
cd -
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
|
|
||||||
echo "%{_libdir}/mpich/lib" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make %{?_smp_mflags} -C build check
|
make %{?_smp_mflags} -C build check
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
%post
|
|
||||||
/sbin/ldconfig
|
|
||||||
|
|
||||||
%postun
|
|
||||||
/sbin/ldconfig
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc MANIFEST README.txt release_docs/RELEASE.txt
|
%doc MANIFEST README.txt release_docs/RELEASE.txt
|
||||||
@ -268,7 +253,6 @@ make %{?_smp_mflags} -C build check
|
|||||||
%{_libdir}/libhdf5hl_fortran.so.%{so_version}*
|
%{_libdir}/libhdf5hl_fortran.so.%{so_version}*
|
||||||
%{_libdir}/libhdf5_hl.so.%{so_version}*
|
%{_libdir}/libhdf5_hl.so.%{so_version}*
|
||||||
%{_libdir}/libhdf5_hl_cpp.so.%{so_version}*
|
%{_libdir}/libhdf5_hl_cpp.so.%{so_version}*
|
||||||
%config(noreplace) /etc/ld.so.conf.d/*
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_bindir}/h5c++*
|
%{_bindir}/h5c++*
|
||||||
@ -370,6 +354,9 @@ make %{?_smp_mflags} -C build check
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Apr 11 2023 liyanan <thistleslyn@163.com> - 1.12.1-4
|
||||||
|
- Preserve the rpath of the hdf5-openmpi and hdf5-mpich subpackages
|
||||||
|
|
||||||
* Mon Apr 10 2023 xu_ping <707078654@qq.com> - 1.12.1-3
|
* Mon Apr 10 2023 xu_ping <707078654@qq.com> - 1.12.1-3
|
||||||
- fix some commands failed
|
- fix some commands failed
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user