2005-07-25 18:07:39 +00:00
|
|
|
Name: hdf
|
2008-02-08 16:52:36 +00:00
|
|
|
Version: 4.2r3
|
2008-10-01 17:59:49 +00:00
|
|
|
Release: 4%{?dist}
|
2005-07-25 18:07:39 +00:00
|
|
|
Summary: A general purpose library and file format for storing scientific data
|
2007-08-24 15:49:21 +00:00
|
|
|
License: BSD
|
2005-07-25 18:07:39 +00:00
|
|
|
Group: System Environment/Libraries
|
2008-10-01 17:16:30 +00:00
|
|
|
URL: http://hdfgroup.org/products/hdf4/index.html
|
2007-10-17 22:40:10 +00:00
|
|
|
Source0: ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/HDF%{version}.tar.gz
|
2008-10-01 17:59:49 +00:00
|
|
|
Patch0: hdf-4.2r3-maxavailfiles.patch
|
2008-02-08 16:52:36 +00:00
|
|
|
Patch1: hdf-4.2r3-ppc.patch
|
2008-01-07 21:17:13 +00:00
|
|
|
Patch2: hdf-4.2r2-sparc.patch
|
2008-02-05 18:56:15 +00:00
|
|
|
Patch3: hdf-4.2r2-s390.patch
|
2008-02-05 22:06:18 +00:00
|
|
|
Patch4: hdf-4.2r2-libm.patch
|
2005-07-25 18:07:39 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2007-10-17 22:40:10 +00:00
|
|
|
BuildRequires: flex byacc libjpeg-devel zlib-devel
|
2005-07-25 18:07:39 +00:00
|
|
|
BuildRequires: gcc-gfortran
|
|
|
|
|
2007-04-20 17:16:29 +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:16:29 +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:21:56 +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:16:29 +00:00
|
|
|
|
2005-07-25 18:07:39 +00:00
|
|
|
%prep
|
2007-10-17 22:40:10 +00:00
|
|
|
%setup -q -n HDF%{version}
|
2008-09-21 08:32:09 +00:00
|
|
|
%patch0 -p1 -b .maxavailfiles
|
2007-05-11 15:16:17 +00:00
|
|
|
%patch1 -p1 -b .ppc
|
2008-01-07 21:17:13 +00:00
|
|
|
%patch2 -p1 -b .sparc
|
2008-02-05 18:56:15 +00:00
|
|
|
%patch3 -p1 -b .s390
|
2008-02-05 22:06:18 +00:00
|
|
|
%patch4 -p1 -b .libm
|
2005-07-25 18:07:39 +00:00
|
|
|
|
2007-10-17 22:40:10 +00:00
|
|
|
chmod a-x *hdf/*/*.c hdf/*/*.h
|
2007-10-29 10:42:42 +00:00
|
|
|
# restore include file timestamps modified by patching
|
2008-03-02 20:31:05 +00:00
|
|
|
touch -c -r ./hdf/src/hdfi.h.ppc ./hdf/src/hdfi.h
|
|
|
|
touch -c -r ./mfhdf/libsrc/config/netcdf-linux.h.ppc ./mfhdf/libsrc/config/netcdf-linux.h
|
2007-10-17 22:40:10 +00:00
|
|
|
|
2007-04-20 17:16:29 +00:00
|
|
|
|
2005-07-25 18:07:39 +00:00
|
|
|
%build
|
2007-10-29 10:42:42 +00:00
|
|
|
# avoid upstream compiler flags settings
|
2007-10-17 22:40:10 +00:00
|
|
|
rm config/*linux-gnu
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
|
|
|
export FFLAGS="$RPM_OPT_FLAGS -ffixed-line-length-none"
|
2007-10-29 10:42:42 +00:00
|
|
|
%configure F77=gfortran --disable-production --disable-netcdf \
|
2007-10-17 22:40:10 +00:00
|
|
|
--includedir=%{_includedir}/%{name} --libdir=%{_libdir}/%{name}
|
2005-07-25 18:07:39 +00:00
|
|
|
|
2007-10-29 10:42:42 +00:00
|
|
|
make
|
|
|
|
# correct the timestamps based on files used to generate the header files
|
2008-03-02 20:31:05 +00:00
|
|
|
touch -c -r ./mfhdf/fortran/config/netcdf-linux.inc mfhdf/fortran/netcdf.inc
|
|
|
|
touch -c -r hdf/src/hdf.inc hdf/src/hdf.f90
|
|
|
|
touch -c -r hdf/src/dffunc.inc hdf/src/dffunc.f90
|
|
|
|
touch -c -r mfhdf/fortran/mffunc.inc mfhdf/fortran/mffunc.f90
|
2007-10-29 10:42:42 +00:00
|
|
|
# netcdf fortran include need same treatement, but they are not shipped
|
2007-04-20 17:16:29 +00:00
|
|
|
|
2005-07-25 18:07:39 +00:00
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-10-29 10:42:42 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
|
2005-07-25 18:07:39 +00:00
|
|
|
#Don't conflict with netcdf
|
2007-10-29 10:42:42 +00:00
|
|
|
#rm $RPM_BUILD_ROOT%{_bindir}/nc* $RPM_BUILD_ROOT%{_mandir}/man1/nc*
|
|
|
|
for file in ncdump ncgen; do
|
|
|
|
mv $RPM_BUILD_ROOT%{_bindir}/$file $RPM_BUILD_ROOT%{_bindir}/h$file
|
|
|
|
# man pages are the same than netcdf ones
|
|
|
|
rm $RPM_BUILD_ROOT%{_mandir}/man1/${file}.1
|
|
|
|
done
|
|
|
|
|
|
|
|
# this is done to have the same timestamp on multiarch setups
|
2008-03-02 20:31:05 +00:00
|
|
|
touch -c -r README $RPM_BUILD_ROOT/%{_includedir}/hdf/h4config.h
|
2007-10-29 10:42:42 +00:00
|
|
|
|
|
|
|
# Remove an autoconf conditional from the API that is unused and cause
|
|
|
|
# the API to be different on x86 and x86_64
|
|
|
|
pushd $RPM_BUILD_ROOT/%{_includedir}/hdf
|
|
|
|
grep -v 'H4_SIZEOF_INTP' h4config.h > h4config.h.tmp
|
2008-03-02 20:31:05 +00:00
|
|
|
touch -c -r h4config.h h4config.h.tmp
|
2007-10-29 10:42:42 +00:00
|
|
|
mv h4config.h.tmp h4config.h
|
|
|
|
popd
|
2007-04-20 17:16:29 +00:00
|
|
|
|
2005-07-25 18:07:39 +00:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
2007-04-20 17:16:29 +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:16:29 +00:00
|
|
|
|
2005-07-25 18:07:39 +00:00
|
|
|
%changelog
|
2008-10-01 17:59:49 +00:00
|
|
|
* Wed Oct 1 2008 Orion Poplawski <orion@cora.nwra.com> 4.2.r3-4
|
|
|
|
- Rebase maxavailfiles patch
|
|
|
|
|
2008-09-21 08:32:09 +00:00
|
|
|
* Sun Sep 21 2008 Ville Skyttä <ville.skytta at iki.fi> - 4.2r3-3
|
|
|
|
- Fix Patch0:/%%patch mismatch.
|
|
|
|
|
2008-03-02 20:31:05 +00:00
|
|
|
* Sun Mar 2 2008 Patrice Dumas <pertusus@free.fr> 4.2r3-2
|
|
|
|
- don't ship an empty netcdf.h file. The related definitions are now
|
|
|
|
in hdf4_netcdf.h
|
|
|
|
|
2008-02-08 16:52:36 +00:00
|
|
|
* Tue Feb 5 2008 Orion Poplawski <orion@cora.nwra.com> 4.2.r3-1
|
|
|
|
- Update to 4.2r3
|
|
|
|
|
2008-02-05 22:06:18 +00:00
|
|
|
* Tue Feb 5 2008 Orion Poplawski <orion@cora.nwra.com> 4.2.r2-7
|
|
|
|
- Add patch to add -lm to hdiff link
|
|
|
|
|
2008-02-05 18:56:15 +00:00
|
|
|
* Tue Feb 5 2008 Orion Poplawski <orion@cora.nwra.com> 4.2.r2-6
|
|
|
|
- Add patch for s390 support (bug #431511)
|
|
|
|
|
2008-01-07 21:17:13 +00:00
|
|
|
* Mon Jan 7 2008 Orion Poplawski <orion@cora.nwra.com> 4.2.r2-5
|
|
|
|
- Add patches for sparc support (bug #427639)
|
|
|
|
|
2007-10-29 12:02:04 +00:00
|
|
|
* Mon Oct 29 2007 Patrice Dumas <pertusus@free.fr> 4.2r2-4
|
|
|
|
- install the netcdf.h file that describes the netcdf2 hdf enabled
|
|
|
|
API
|
|
|
|
|
2007-10-29 10:42:42 +00:00
|
|
|
* Mon Oct 29 2007 Patrice Dumas <pertusus@free.fr> 4.2r2-3
|
|
|
|
- ship hdf enabled nc* utils as hnc*
|
|
|
|
- add --disable-netcdf that replaces HAVE_NETCDF
|
|
|
|
- keep include files timestamps, and have the same accross arches
|
|
|
|
- fix multiarch difference in include files (#341491)
|
|
|
|
|
2007-10-17 22:58:08 +00:00
|
|
|
* Wed Oct 17 2007 Patrice Dumas <pertusus@free.fr> 4.2r2-2
|
2007-10-17 22:40:10 +00:00
|
|
|
- update to 4.2r2
|
|
|
|
|
2007-08-24 15:49:21 +00:00
|
|
|
* Fri Aug 24 2007 Orion Poplawski <orion@cora.nwra.com> 4.2r1-15
|
|
|
|
- Update license tag to BSD
|
|
|
|
- Rebuild for BuildID
|
|
|
|
|
2007-05-11 15:16:17 +00:00
|
|
|
* Thu May 10 2007 Balint Cristian <cbalint@redhat.com> 4.2r1-14
|
|
|
|
- Fix ppc64 too.
|
|
|
|
|
2007-05-10 15:21:56 +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:16:29 +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 19:41:18 +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:16:29 +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
|