2005-07-25 18:07:39 +00:00
|
|
|
Name: hdf
|
|
|
|
Version: 4.2r1
|
2007-05-10 15:15:37 +00:00
|
|
|
Release: 13%{?dist}
|
2005-07-25 18:07:39 +00:00
|
|
|
Summary: A general purpose library and file format for storing scientific data
|
|
|
|
License: BSD-ish
|
|
|
|
Group: System Environment/Libraries
|
2005-08-23 20:56:22 +00:00
|
|
|
URL: http://hdf.ncsa.uiuc.edu/hdf4.html
|
2007-04-20 17:18:51 +00:00
|
|
|
#Source0: ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/HDF%{version}.tar.gz
|
|
|
|
Source0: ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/4.2r1-hrepack-p4.tar.gz
|
2007-04-20 21:20:36 +00:00
|
|
|
Patch0: hdf-4.2r1p4-maxavailfiles.patch
|
2006-02-02 22:10:26 +00:00
|
|
|
Patch1: hdf-4.2r1-ppc.patch
|
2005-07-25 18:07:39 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: autoconf flex byacc libjpeg-devel zlib-devel
|
|
|
|
BuildRequires: gcc-gfortran
|
|
|
|
|
2007-04-20 17:18:51 +00:00
|
|
|
|
2005-07-25 18:07:39 +00:00
|
|
|
%description
|
|
|
|
HDF is a general purpose library and file format for storing scientific data.
|
|
|
|
HDF 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 HDF 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 HDF files according to your needs.
|
|
|
|
|
2007-04-20 17:18:51 +00:00
|
|
|
|
2005-07-25 18:07:39 +00:00
|
|
|
%package devel
|
|
|
|
Summary: HDF development files
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2007-05-10 15:15:37 +00:00
|
|
|
Requires: libjpeg-devel zlib-devel
|
2005-07-25 18:07:39 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
HDF development headers and libraries.
|
|
|
|
|
2007-04-20 17:18:51 +00:00
|
|
|
|
2005-07-25 18:07:39 +00:00
|
|
|
%prep
|
2007-04-20 17:18:51 +00:00
|
|
|
#%setup -q -n HDF%{version}
|
|
|
|
%setup -q -n 4.2r1-hrepack-p4
|
2007-04-20 21:20:36 +00:00
|
|
|
%patch -p1 -b .maxavailfiles
|
2006-02-02 22:10:26 +00:00
|
|
|
%patch1 -p1 -b .orig
|
2005-07-25 18:07:39 +00:00
|
|
|
|
2007-04-20 17:18:51 +00:00
|
|
|
|
2005-07-25 18:07:39 +00:00
|
|
|
%build
|
|
|
|
autoconf
|
2006-02-08 23:09:40 +00:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fPIC -DHAVE_NETCDF"
|
2007-04-20 21:20:36 +00:00
|
|
|
%configure F77=gfortran FFLAGS=-ffixed-line-length-none --disable-production
|
2005-07-25 18:07:39 +00:00
|
|
|
make
|
|
|
|
|
2007-04-20 17:18:51 +00:00
|
|
|
|
2005-07-25 18:07:39 +00:00
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%makeinstall includedir=${RPM_BUILD_ROOT}%{_includedir}/%{name} \
|
|
|
|
libdir=$RPM_BUILD_ROOT%{_libdir}/%{name}
|
|
|
|
#Don't conflict with netcdf
|
|
|
|
rm $RPM_BUILD_ROOT%{_bindir}/nc* $RPM_BUILD_ROOT%{_mandir}/man1/nc*
|
|
|
|
|
2007-04-20 17:18:51 +00:00
|
|
|
|
2005-07-25 18:07:39 +00:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
2007-04-20 17:18:51 +00:00
|
|
|
|
2005-07-25 18:07:39 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
%doc COPYING MANIFEST README release_notes/*.txt
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man1/*.gz
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
%{_includedir}/%{name}/
|
|
|
|
%{_libdir}/%{name}/
|
|
|
|
|
2007-04-20 17:18:51 +00:00
|
|
|
|
2005-07-25 18:07:39 +00:00
|
|
|
%changelog
|
2007-05-10 15:15:37 +00:00
|
|
|
* Thu May 10 2007 Orion Poplawski <orion@cora.nwra.com> 4.2r1-13
|
|
|
|
- Remove netcdf-devel requires. (bug #239631)
|
|
|
|
|
2007-04-20 17:18:51 +00:00
|
|
|
* Fri Apr 20 2007 Orion Poplawski <orion@cora.nwra.com> 4.2r1-12
|
|
|
|
- Use 4.2r1-hrepack-p4.tar.gz for hrepack patch
|
|
|
|
- Remove configure patch applied upstream
|
2007-04-20 21:20:36 +00:00
|
|
|
- Use --disable-production configure flag to avoid stripping -g compile flag
|
|
|
|
- Add patch to fix open file test when run under mock
|
2007-04-20 17:18:51 +00:00
|
|
|
|
2006-08-30 02:36:31 +00:00
|
|
|
* Tue Aug 29 2006 Orion Poplawski <orion@cora.nwra.com> 4.2r1-11
|
|
|
|
- Rebuild for FC6
|
|
|
|
|
2006-04-20 22:17:12 +00:00
|
|
|
* Thu Apr 20 2006 Orion Poplawski <orion@cora.nwra.com> 4.2r1-10
|
|
|
|
- Add Requires netcdf-devel for hdf-devel (bug #189337)
|
|
|
|
|
2006-02-13 18:53:08 +00:00
|
|
|
* Mon Feb 13 2006 Orion Poplawski <orion@cora.nwra.com> 4.2r1-9
|
|
|
|
- Rebuild for gcc/glibc changes
|
|
|
|
|
2006-02-08 23:09:40 +00:00
|
|
|
* Wed Feb 8 2006 Orion Poplawski <orion@cora.nwra.com> 4.2r1-8
|
|
|
|
- Compile with -DHAVE_NETCDF for gdl hdf/netcdf compatibility
|
|
|
|
|
2006-02-02 22:10:26 +00:00
|
|
|
* Thu Feb 2 2006 Orion Poplawski <orion@cora.nwra.com> 4.2r1-7
|
|
|
|
- Add patch to build on ppc
|
|
|
|
|
2005-12-21 17:22:42 +00:00
|
|
|
* Wed Dec 21 2005 Orion Poplawski <orion@cora.nwra.com> 4.2r1-6
|
|
|
|
- Rebuild
|
|
|
|
|
2005-10-05 15:05:50 +00:00
|
|
|
* Wed Oct 05 2005 Orion Poplawski <orion@cora.nwra.com> 4.2r1-5
|
|
|
|
- Add Requires: libjpeg-devel zlib-devel to -devel package
|
|
|
|
|
2005-08-23 20:56:22 +00:00
|
|
|
* Tue Aug 23 2005 Orion Poplawski <orion@cora.nwra.com> 4.2r1-4
|
|
|
|
- Use -fPIC
|
|
|
|
- Fix project URL
|
|
|
|
|
2005-07-29 19:50:52 +00:00
|
|
|
* Fri Jul 29 2005 Orion Poplawski <orion@cora.nwra.com> 4.2r1-3
|
|
|
|
- Exclude ppc/ppc64 - HDF does not recognize it
|
|
|
|
|
2005-07-25 18:07:39 +00:00
|
|
|
* Wed Jul 20 2005 Orion Poplawski <orion@cora.nwra.com> 4.2r1-2
|
|
|
|
- Fix BuildRequires to have autoconf
|
|
|
|
|
|
|
|
* Fri Jul 15 2005 Orion Poplawski <orion@cora.nwra.com> 4.2r1-1
|
|
|
|
- inital package for Fedora Extras
|