- Add Requires: zlib-devel to hdf5-devel

epel9
Orion Poplawski 14 years ago
commit a8071dba83

@ -1,7 +1,7 @@
%global snaprel %{nil} %global snaprel %{nil}
Name: hdf5 Name: hdf5
Version: 1.8.5.patch1 Version: 1.8.5.patch1
Release: 6%{?dist} Release: 7%{?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
@ -13,11 +13,25 @@ Patch1: hdf5-1.8.5-longdouble.patch
Patch4: hdf5-1.8.5-tstlite.patch Patch4: hdf5-1.8.5-tstlite.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: krb5-devel, openssl-devel, zlib-devel, gcc-gfortran, time BuildRequires: krb5-devel, openssl-devel, zlib-devel, gcc-gfortran, time
#No mpich2 on ppc64
%global with_mpich2 1
%global with_openmpi 1
%if 0%{?rhel}
%ifarch ppc64 %ifarch ppc64
%global mpi_list openmpi # No mpich2 on ppc64 in EL
%else %global with_mpich2 0
%global mpi_list mpich2 openmpi %endif
%endif
%ifarch s390 s390x
# No openmpi on s390(x)
%global with_openmpi 0
%endif
%if %{with_mpich2}
%global mpi_list mpich2
%endif
%if %{with_openmpi}
%global mpi_list %{mpi_list} openmpi
%endif %endif
%description %description
@ -49,8 +63,7 @@ Requires: %{name}-devel = %{version}-%{release}
HDF5 static libraries. HDF5 static libraries.
#No mpich2 on ppc64 %if %{with_mpich2}
%ifnarch ppc64
%package mpich2 %package mpich2
Summary: HDF5 mpich2 libraries Summary: HDF5 mpich2 libraries
Group: Development/Libraries Group: Development/Libraries
@ -71,6 +84,7 @@ HDF5 parallel mpich2 development files
%endif %endif
%if %{with_openmpi}
%package openmpi %package openmpi
Summary: HDF5 openmpi libraries Summary: HDF5 openmpi libraries
Group: Development/Libraries Group: Development/Libraries
@ -88,6 +102,7 @@ Requires: openmpi-devel, %{name}-openmpi = %{version}-%{release}
%description openmpi-devel %description openmpi-devel
HDF5 parallel openmpi development files HDF5 parallel openmpi development files
%endif
%prep %prep
@ -253,7 +268,7 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/*.a %{_libdir}/*.a
%ifnarch ppc64 %if %{with_mpich2}
%files mpich2 %files mpich2
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING MANIFEST README.txt release_docs/RELEASE.txt %doc COPYING MANIFEST README.txt release_docs/RELEASE.txt
@ -276,8 +291,17 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/mpich2/bin/h5unjam %{_libdir}/mpich2/bin/h5unjam
%{_libdir}/mpich2/bin/ph5diff %{_libdir}/mpich2/bin/ph5diff
%{_libdir}/mpich2/lib/*.so.* %{_libdir}/mpich2/lib/*.so.*
%files mpich2-devel
%defattr(-,root,root,-)
%{_includedir}/mpich2-%{_arch}
%{_libdir}/mpich2/bin/h5pcc
%{_libdir}/mpich2/bin/h5pfc
%{_libdir}/mpich2/lib/lib*.so
%{_libdir}/mpich2/lib/lib*.settings
%endif %endif
%if %{with_openmpi}
%files openmpi %files openmpi
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING MANIFEST README.txt release_docs/RELEASE.txt %doc COPYING MANIFEST README.txt release_docs/RELEASE.txt
@ -301,16 +325,6 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/openmpi/bin/ph5diff %{_libdir}/openmpi/bin/ph5diff
%{_libdir}/openmpi/lib/*.so.* %{_libdir}/openmpi/lib/*.so.*
%ifnarch ppc64
%files mpich2-devel
%defattr(-,root,root,-)
%{_includedir}/mpich2-%{_arch}
%{_libdir}/mpich2/bin/h5pcc
%{_libdir}/mpich2/bin/h5pfc
%{_libdir}/mpich2/lib/lib*.so
%{_libdir}/mpich2/lib/lib*.settings
%endif
%files openmpi-devel %files openmpi-devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_includedir}/openmpi-%{_arch} %{_includedir}/openmpi-%{_arch}
@ -318,12 +332,16 @@ 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
%endif
%changelog %changelog
* Sun Feb 6 2011 Orion Poplawski <orion@cora.nwra.com> 1.8.5.patch1-6 * Sun Feb 6 2011 Orion Poplawski <orion@cora.nwra.com> 1.8.5.patch1-7
- Add Requires: zlib-devel to hdf5-devel - Add Requires: zlib-devel to hdf5-devel
* Sun Dec 12 2010 Dan Horák <dan[at]danny.cz> 1.8.5.patch1-6
- fully conditionalize MPI support
* Wed Dec 8 2010 Orion Poplawski <orion@cora.nwra.com> 1.8.5.patch1-5 * Wed Dec 8 2010 Orion Poplawski <orion@cora.nwra.com> 1.8.5.patch1-5
- Add EL6 compatibility - no mpich2 on ppc64 - Add EL6 compatibility - no mpich2 on ppc64

Loading…
Cancel
Save