e824436
Name: hdf
e824436
Version: 4.2r1
c7d518c
Release: 8%{?dist}
e824436
Summary: A general purpose library and file format for storing scientific data
e824436
License: BSD-ish
e824436
Group: System Environment/Libraries
29bcc26
URL: http://hdf.ncsa.uiuc.edu/hdf4.html
e824436
Source0: ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/HDF%{version}.tar.gz
e824436
Source1: ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/patches/4.2r1-hrepack-patch.tar
e824436
Patch0: hdf-4.2r1-configure.patch
2cac9a7
Patch1: hdf-4.2r1-ppc.patch
e824436
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e824436
BuildRequires: autoconf flex byacc libjpeg-devel zlib-devel
e824436
BuildRequires: gcc-gfortran
e824436
e824436
%description
e824436
HDF is a general purpose library and file format for storing scientific data.
e824436
HDF can store two primary objects: datasets and groups. A dataset is 
e824436
essentially a multidimensional array of data elements, and a group is a 
e824436
structure for organizing objects in an HDF file. Using these two basic 
e824436
objects, one can create and store almost any kind of scientific data 
e824436
structure, such as images, arrays of vectors, and structured and unstructured 
e824436
grids. You can also mix and match them in HDF files according to your needs.
e824436
e824436
%package devel
e824436
Summary: HDF development files
e824436
Group: Development/Libraries
e824436
Requires: %{name} = %{version}-%{release}
69a5013
Requires: libjpeg-devel zlib-devel
e824436
e824436
%description devel
e824436
HDF development headers and libraries.
e824436
e824436
%prep
e824436
%setup -q -n HDF%{version}
e824436
tar xf %{SOURCE1} --directory mfhdf/hrepack 
e824436
mv mfhdf/hrepack/4.2r1-hrepack-patch/*.[ch] mfhdf/hrepack
e824436
rm -r mfhdf/hrepack/4.2r1-hrepack-patch
e824436
%patch0 -p1 -b .orig
2cac9a7
%patch1 -p1 -b .orig
e824436
e824436
%build
e824436
autoconf
c7d518c
export CFLAGS="$RPM_OPT_FLAGS -fPIC -DHAVE_NETCDF"
e824436
%configure F77=gfortran FFLAGS=-ffixed-line-length-none
e824436
make
e824436
e824436
%install
e824436
rm -rf $RPM_BUILD_ROOT
e824436
%makeinstall includedir=${RPM_BUILD_ROOT}%{_includedir}/%{name} \
e824436
             libdir=$RPM_BUILD_ROOT%{_libdir}/%{name}
e824436
#Don't conflict with netcdf
e824436
rm $RPM_BUILD_ROOT%{_bindir}/nc* $RPM_BUILD_ROOT%{_mandir}/man1/nc*
e824436
e824436
%check
e824436
make check
e824436
e824436
%clean
e824436
rm -rf $RPM_BUILD_ROOT
e824436
e824436
%post
e824436
e824436
%postun
e824436
e824436
%files
e824436
%defattr(-,root,root,0755)
e824436
%doc COPYING MANIFEST README release_notes/*.txt
e824436
%{_bindir}/*
e824436
%{_mandir}/man1/*.gz
e824436
e824436
%files devel
e824436
%defattr(-,root,root,0755)
e824436
%{_includedir}/%{name}/
e824436
%{_libdir}/%{name}/
e824436
e824436
%changelog
c7d518c
* Wed Feb  8 2006 Orion Poplawski <orion@cora.nwra.com> 4.2r1-8
c7d518c
- Compile with -DHAVE_NETCDF for gdl hdf/netcdf compatibility
c7d518c
2cac9a7
* Thu Feb  2 2006 Orion Poplawski <orion@cora.nwra.com> 4.2r1-7
2cac9a7
- Add patch to build on ppc
2cac9a7
aad1b02
* Wed Dec 21 2005 Orion Poplawski <orion@cora.nwra.com> 4.2r1-6
aad1b02
- Rebuild
aad1b02
69a5013
* Wed Oct 05 2005 Orion Poplawski <orion@cora.nwra.com> 4.2r1-5
69a5013
- Add Requires: libjpeg-devel zlib-devel to -devel package
69a5013
29bcc26
* Tue Aug 23 2005 Orion Poplawski <orion@cora.nwra.com> 4.2r1-4
29bcc26
- Use -fPIC
29bcc26
- Fix project URL
29bcc26
58f7455
* Fri Jul 29 2005 Orion Poplawski <orion@cora.nwra.com> 4.2r1-3
58f7455
- Exclude ppc/ppc64 - HDF does not recognize it
58f7455
e824436
* Wed Jul 20 2005 Orion Poplawski <orion@cora.nwra.com> 4.2r1-2
e824436
- Fix BuildRequires to have autoconf
e824436
e824436
* Fri Jul 15 2005 Orion Poplawski <orion@cora.nwra.com> 4.2r1-1
e824436
- inital package for Fedora Extras