%define _pkgname hdf5 %define approot /opt/hdf5/mpich1 %define _modroot /usr/share/Modules/modulefiles/hdf5 %define debug_package %{nil} Name: hdf5-mpich1-gnu Version: 1.8.1 Release: 3 Summary: A general purpose library and file format for storing scientific data License: Distributable Group: System Environment/Libraries URL: http://www.hdfgroup.org/HDF5/ Source: %{name}-%{version}.1.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: zlib-devel gcc mpich1-ethernet-gnu Requires: zlib zlib-devel gcc mpich1-ethernet-gnu %description HDF5 is a general purpose library and file format for storing scientific data. HDF5 can store two primary objects: datasets and groups. A dataset is essentially a multidimensional array of data elements, and a group is a structure for organizing objects in an HDF5 file. Using these two basic objects, one can create and store almost any kind of scientific data structure, such as images, arrays of vectors, and structured and unstructured grids. You can also mix and match them in HDF5 files according to your needs. %prep %setup -q -n %{name} %build tar xzf %{_pkgname}-%{version}.tar.gz cd %{_pkgname}-%{version} export CC=/opt/mpich1/gnu/bin/mpicc export FC=/opt/mpich1/gnu/bin/mpif90 ./configure --prefix=%{approot} --enable-fortran --enable-shared make %clean rm -rf $RPM_BUILD_ROOT %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{approot} ( cd %{_pkgname}-%{version} make prefix=$RPM_BUILD_ROOT%{approot} install ) install -D -m 0644 %{name}-module %{buildroot}%{_modroot}/%{name} %post %postun %files %defattr(-, root, root) %{approot} %{_modroot}/%{name} %changelog * Mon Nov 24 2008 Mehdi Bozzo-Rey 1.8.1-3 - update * Mon Jun 2 2008 Mike Frisch 1.6.6-2 - Add missing copyright * Tue Sep 12 2007 Tsai Li Ming 1.6.6-1 - Initial package.