Support parallel compilation

This commit is contained in:
maminjie 2021-03-25 16:41:59 +08:00
parent 82052972da
commit 35cb1e3f13

View File

@ -9,7 +9,7 @@
Name: hdf5 Name: hdf5
Version: 1.8.20 Version: 1.8.20
Release: 11 Release: 12
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 License: GPL
@ -143,7 +143,7 @@ ln -s ../configure .
%{configure_opts} \ %{configure_opts} \
--enable-cxx --enable-cxx
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
make LDFLAGS="%{__global_ldflags} -fPIC -Wl,-z,now -Wl,--as-needed" make %{?_smp_mflags} LDFLAGS="%{__global_ldflags} -fPIC -Wl,-z,now -Wl,--as-needed"
popd popd
export CC=mpicc export CC=mpicc
@ -168,7 +168,7 @@ do
--datarootdir=%{_libdir}/$mpi/share \ --datarootdir=%{_libdir}/$mpi/share \
--mandir=%{_libdir}/$mpi/share/man --mandir=%{_libdir}/$mpi/share/man
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
make LDFLAGS="%{__global_ldflags} -fPIC -Wl,-z,now -Wl,--as-needed" make %{?_smp_mflags} LDFLAGS="%{__global_ldflags} -fPIC -Wl,-z,now -Wl,--as-needed"
module purge module purge
popd popd
done done
@ -233,7 +233,7 @@ cat > ${RPM_BUILD_ROOT}/%{_rpmmacrodir}/macros.hdf5 <<EOF
EOF EOF
%check %check
make -C build check make %{?_smp_mflags} -C build check
%ldconfig_scriptlets %ldconfig_scriptlets
%files %files
@ -349,6 +349,9 @@ make -C build check
%endif %endif
%changelog %changelog
* Thu Mar 25 2021 maminjie <maminjie1@huawei.com> - 1.8.20-12
- Support parallel compilation
* Fri Jan 15 2021 yanan li <liyanan32@huawei.com> - 1.8.20-11 * Fri Jan 15 2021 yanan li <liyanan32@huawei.com> - 1.8.20-11
- add sub packages hdf5-openmpi-static, hdf5-openmpi-devel, hdf5-openmpi, - add sub packages hdf5-openmpi-static, hdf5-openmpi-devel, hdf5-openmpi,
- hdf5-mpich-static, hdf5-mpich-devel, hdf5-mpich - hdf5-mpich-static, hdf5-mpich-devel, hdf5-mpich