Enable static MPI builds

epel9
Orion Poplawski 13 years ago
parent d485d93ace
commit 4eb12d8148

@ -4,7 +4,7 @@
# You need to recompile all users of HDF5 for each version change # You need to recompile all users of HDF5 for each version change
Name: hdf5 Name: hdf5
Version: 1.8.8 Version: 1.8.8
Release: 2%{?dist} Release: 3%{?dist}
Summary: A general purpose library and file format for storing scientific data Summary: A general purpose library and file format for storing scientific data
License: BSD License: BSD
Group: System Environment/Libraries Group: System Environment/Libraries
@ -78,10 +78,20 @@ HDF5 parallel mpich2 libraries
%package mpich2-devel %package mpich2-devel
Summary: HDF5 mpich2 development files Summary: HDF5 mpich2 development files
Group: Development/Libraries Group: Development/Libraries
Requires: mpich2, %{name}-mpich2 = %{version}-%{release} Requires: %{name}-mpich2%{?_isa} = %{version}-%{release}
Requires: mpich2
%description mpich2-devel %description mpich2-devel
HDF5 parallel mpich2 development files HDF5 parallel mpich2 development files
%package mpich2-static
Summary: HDF5 mpich2 static libraries
Group: Development/Libraries
Requires: %{name}-mpich2-devel%{?_isa} = %{version}-%{release}
%description mpich2-static
HDF5 parallel mpich2 static libraries
%endif %endif
@ -99,10 +109,20 @@ HDF5 parallel openmpi libraries
%package openmpi-devel %package openmpi-devel
Summary: HDF5 openmpi development files Summary: HDF5 openmpi development files
Group: Development/Libraries Group: Development/Libraries
Requires: openmpi-devel, %{name}-openmpi = %{version}-%{release} Requires: %{name}-openmpi%{_isa} = %{version}-%{release}
Requires: openmpi-devel
%description openmpi-devel %description openmpi-devel
HDF5 parallel openmpi development files HDF5 parallel openmpi development files
%package openmpi-static
Summary: HDF5 openmpi static libraries
Group: Development/Libraries
Requires: %{name}-openmpi-devel%{?_isa} = %{version}-%{release}
%description openmpi-static
HDF5 parallel openmpi static libraries
%endif %endif
@ -155,7 +175,6 @@ do
%configure \ %configure \
%{configure_opts} \ %{configure_opts} \
--enable-parallel \ --enable-parallel \
--disable-static \
--libdir=%{_libdir}/$mpi/lib \ --libdir=%{_libdir}/$mpi/lib \
--bindir=%{_libdir}/$mpi/bin \ --bindir=%{_libdir}/$mpi/bin \
--sbindir=%{_libdir}/$mpi/sbin \ --sbindir=%{_libdir}/$mpi/sbin \
@ -311,6 +330,10 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/mpich2/bin/h5pfc %{_libdir}/mpich2/bin/h5pfc
%{_libdir}/mpich2/lib/lib*.so %{_libdir}/mpich2/lib/lib*.so
%{_libdir}/mpich2/lib/lib*.settings %{_libdir}/mpich2/lib/lib*.settings
%files mpich2-static
%defattr(-,root,root,-)
%{_libdir}/mpich2/lib/*.a
%endif %endif
%if %{with_openmpi} %if %{with_openmpi}
@ -345,10 +368,17 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/openmpi/bin/h5pfc %{_libdir}/openmpi/bin/h5pfc
%{_libdir}/openmpi/lib/lib*.so %{_libdir}/openmpi/lib/lib*.so
%{_libdir}/openmpi/lib/lib*.settings %{_libdir}/openmpi/lib/lib*.settings
%files openmpi-static
%defattr(-,root,root,-)
%{_libdir}/openmpi/lib/*.a
%endif %endif
%changelog %changelog
* Fri Nov 25 2011 Orion Poplawski <orion@cora.nwra.com> 1.8.8-3
- Enable static MPI builds
* Wed Nov 16 2011 Orion Poplawski <orion@cora.nwra.com> 1.8.8-2 * Wed Nov 16 2011 Orion Poplawski <orion@cora.nwra.com> 1.8.8-2
- Add rpm macro %%{_hdf5_version} for convenience - Add rpm macro %%{_hdf5_version} for convenience

Loading…
Cancel
Save