%define _pkgname hdf5 %define approot /opt/hdf5/serial %define _modroot /usr/share/Modules/modulefiles/hdf5 %define debug_package %{nil} Name: hdf5 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}.tar.gz Source1: hdf5-module BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: zlib-devel gcc-c++ gcc Requires: zlib zlib-devel gcc-c++ gcc %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. Source available at ftp://ftp.ncsa.uiuc.edu/HDF/HDF5/current/src/. %prep %setup -q -n %{name}-%{version} %build export F77=gfortran export FC=gfortran ./configure --prefix=%{approot} --enable-cxx --enable-fortran make make check %clean rm -rf $RPM_BUILD_ROOT %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{approot} install -D -m 0644 %{SOURCE1} %{buildroot}%{_modroot}/%{name} make prefix=$RPM_BUILD_ROOT%{approot} install %post %postun %files %defattr(-, root, root) %{approot} %{_modroot}/%{name} %changelog * Thu Nov 13 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.