Compare commits

...
Sign in to create a new pull request.

7 commits

Author SHA1 Message Date
Fedora Release Engineering
da15bed8b6 dist-git conversion 2010-07-28 17:40:01 +00:00
Bill Nottingham
748e9f7ce4 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:17:19 +00:00
Orion Poplawski
73cb43a58c Remove netcdf-devel requires 2007-05-10 15:18:46 +00:00
Orion Poplawski
eb4022e201 More open files 2007-04-20 21:36:58 +00:00
Orion Poplawski
04010afd92 - 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 21:20:41 +00:00
Orion Poplawski
5af4e36386 - Use 4.2r1-hrepack-p4.tar.gz for hrepack patch
- Remove configure patch applied upstream
2007-04-20 17:21:12 +00:00
Jeremy Katz
2b99ba6b6f Initialize branch FC-6 for hdf 2006-10-23 15:49:35 +00:00
7 changed files with 39 additions and 128 deletions

View file

@ -1,2 +0,0 @@
4.2r1-hrepack-patch.tar
HDF4.2r1.tar.gz

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
4.2r1-hrepack-p4.tar.gz

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: hdf
# $Id$
NAME := hdf
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -1,92 +0,0 @@
--- HDF4.2r1/configure.ac.orig 2005-07-15 14:52:14.000000000 -0600
+++ HDF4.2r1/configure.ac 2005-07-15 14:53:35.000000000 -0600
@@ -528,7 +528,7 @@
dnl ======================================================================
AC_MSG_CHECKING([for math library support])
-AC_TRY_LINK([#include <math.h>], [sqrt(37.927)],
+AC_TRY_LINK([#include <math.h>], [sinh(37.927)],
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no]); LIBS="$LIBS -lm"])
--- HDF4.2r1/mfhdf/fortran/config/ftest-linux.f.orig 2005-02-08 20:04:07.000000000 -0700
+++ HDF4.2r1/mfhdf/fortran/config/ftest-linux.f 2005-07-15 15:37:22.000000000 -0600
@@ -138,13 +138,13 @@
integer*2 shval(2)
integer i, j, k
character*31 varnam, attname(2,7), gattnam(2)
- byte bytval(2)
+ integer*1 bytval(2)
common /atts/attname, gattnam
integer*2 svalidrg(2)
real rvalidrg(2)
integer lvalidrg(2)
double precision dvalidrg(2)
- byte bvalidrg(2)
+ integer*1 bvalidrg(2)
character*31 gavalue(2), cavalue(2)
real epsilon
@@ -337,7 +337,7 @@
real flval(2)
integer lngval(2)
integer*2 shval(2)
- byte bytval(2)
+ integer*1 bytval(2)
integer vartyp, nvdims, vdims(MAXVDIMS), nvatts
character*31 varnam, attname(2,7), gattnam(2)
@@ -346,7 +346,7 @@
real rvalidrg(2)
integer lvalidrg(2)
double precision dvalidrg(2)
- byte bvalidrg(2)
+ integer*1 bvalidrg(2)
character*31 gavalue(2), cavalue(2)
real epsilon
@@ -470,7 +470,7 @@
real rvalidrg(2)
integer lvalidrg(2)
double precision dvalidrg(2)
- byte bvalidrg(2)
+ integer*1 bvalidrg(2)
c variable ids
integer bid, sid, lid, fid, did, cid, chid
@@ -883,7 +883,7 @@
integer itime, ilev, ilat, ilon
c arrays of data values to be read
- byte barray(times), byval(times)
+ integer*1 barray(times), byval(times)
integer*2 sarray(times), shval(times)
integer larray(lats)
real farray(levels, lats, lons, times)
@@ -1009,7 +1009,7 @@
integer bid, sid, lid, fid, did, cid, chid
common /vars/bid, sid, lid, fid, did, cid, chid
- byte bvalue
+ integer*1 bvalue
integer*2 svalue
integer lvalue
real fvalue
@@ -1097,7 +1097,7 @@
integer count(MAXNCDIM)
c arrays of data values to be written
- byte barray(times)
+ integer*1 barray(times)
integer*2 sarray(times)
integer larray(lats)
real farray(levels, lats, lons, times)
@@ -1184,7 +1184,7 @@
integer lvalue
integer*2 svalue
- byte bvalue
+ integer*1 bvalue
double precision onethird
integer bid, sid, lid, fid, did, cid, chid
common /vars/bid, sid, lid, fid, did, cid, chid

View file

@ -0,0 +1,11 @@
--- 4.2r1-hrepack-p4/mfhdf/libsrc/file.c.maxavailfiles 2007-04-20 12:21:12.000000000 -0600
+++ 4.2r1-hrepack-p4/mfhdf/libsrc/file.c 2007-04-20 12:21:50.000000000 -0600
@@ -31,7 +31,7 @@
/* Maximum number of files can be opened at one time; subtract 3 from
the system allowed to account for stdin, stdout, and stderr */
-#define MAX_AVAIL_OPENFILES (MAX_SYS_OPENFILES - 3)
+#define MAX_AVAIL_OPENFILES (MAX_SYS_OPENFILES - 12)
static int _ncdf = 0 ; /* high water mark on open cdf's */
static NC **_cdfs;

View file

@ -1,18 +1,19 @@
Name: hdf Name: hdf
Version: 4.2r1 Version: 4.2r1
Release: 11%{?dist} Release: 13%{?dist}
Summary: A general purpose library and file format for storing scientific data Summary: A general purpose library and file format for storing scientific data
License: BSD-ish License: BSD-ish
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://hdf.ncsa.uiuc.edu/hdf4.html URL: http://hdf.ncsa.uiuc.edu/hdf4.html
Source0: ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/HDF%{version}.tar.gz #Source0: ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/HDF%{version}.tar.gz
Source1: ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/patches/4.2r1-hrepack-patch.tar Source0: ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/4.2r1-hrepack-p4.tar.gz
Patch0: hdf-4.2r1-configure.patch Patch0: hdf-4.2r1p4-maxavailfiles.patch
Patch1: hdf-4.2r1-ppc.patch Patch1: hdf-4.2r1-ppc.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: autoconf flex byacc libjpeg-devel zlib-devel BuildRequires: autoconf flex byacc libjpeg-devel zlib-devel
BuildRequires: gcc-gfortran BuildRequires: gcc-gfortran
%description %description
HDF is a general purpose library and file format for storing scientific data. 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 HDF can store two primary objects: datasets and groups. A dataset is
@ -22,29 +23,31 @@ objects, one can create and store almost any kind of scientific data
structure, such as images, arrays of vectors, and structured and unstructured 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. grids. You can also mix and match them in HDF files according to your needs.
%package devel %package devel
Summary: HDF development files Summary: HDF development files
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires: libjpeg-devel zlib-devel netcdf-devel Requires: libjpeg-devel zlib-devel
%description devel %description devel
HDF development headers and libraries. HDF development headers and libraries.
%prep %prep
%setup -q -n HDF%{version} #%setup -q -n HDF%{version}
tar xf %{SOURCE1} --directory mfhdf/hrepack %setup -q -n 4.2r1-hrepack-p4
mv mfhdf/hrepack/4.2r1-hrepack-patch/*.[ch] mfhdf/hrepack %patch -p1 -b .maxavailfiles
rm -r mfhdf/hrepack/4.2r1-hrepack-patch
%patch0 -p1 -b .orig
%patch1 -p1 -b .orig %patch1 -p1 -b .orig
%build %build
autoconf autoconf
export CFLAGS="$RPM_OPT_FLAGS -fPIC -DHAVE_NETCDF" export CFLAGS="$RPM_OPT_FLAGS -fPIC -DHAVE_NETCDF"
%configure F77=gfortran FFLAGS=-ffixed-line-length-none %configure F77=gfortran FFLAGS=-ffixed-line-length-none --disable-production
make make
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%makeinstall includedir=${RPM_BUILD_ROOT}%{_includedir}/%{name} \ %makeinstall includedir=${RPM_BUILD_ROOT}%{_includedir}/%{name} \
@ -52,9 +55,11 @@ rm -rf $RPM_BUILD_ROOT
#Don't conflict with netcdf #Don't conflict with netcdf
rm $RPM_BUILD_ROOT%{_bindir}/nc* $RPM_BUILD_ROOT%{_mandir}/man1/nc* rm $RPM_BUILD_ROOT%{_bindir}/nc* $RPM_BUILD_ROOT%{_mandir}/man1/nc*
%check %check
make check make check
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -70,7 +75,17 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/%{name}/ %{_includedir}/%{name}/
%{_libdir}/%{name}/ %{_libdir}/%{name}/
%changelog %changelog
* Thu May 10 2007 Orion Poplawski <orion@cora.nwra.com> 4.2r1-13
- Remove netcdf-devel requires. (bug #239631)
* 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
- Use --disable-production configure flag to avoid stripping -g compile flag
- Add patch to fix open file test when run under mock
* Tue Aug 29 2006 Orion Poplawski <orion@cora.nwra.com> 4.2r1-11 * Tue Aug 29 2006 Orion Poplawski <orion@cora.nwra.com> 4.2r1-11
- Rebuild for FC6 - Rebuild for FC6

View file

@ -1,2 +1 @@
d172631b6e6f32c4f93f647a09862011 4.2r1-hrepack-patch.tar 47e42192b00814d8f815b7b4f8243b01 4.2r1-hrepack-p4.tar.gz
9082c6fa913b9188452fa6c5217e1573 HDF4.2r1.tar.gz