diff --git a/hdf5-1.6.4-ppc.patch b/hdf5-1.6.4-ppc.patch new file mode 100644 index 0000000..735db35 --- /dev/null +++ b/hdf5-1.6.4-ppc.patch @@ -0,0 +1,18 @@ +--- hdf5-1.6.4/fortran/src/H5f90i.h.orig 2005-01-10 16:56:29.000000000 -0700 ++++ hdf5-1.6.4/fortran/src/H5f90i.h 2005-11-18 11:06:58.000000000 -0700 +@@ -102,6 +102,15 @@ + typedef int size_t_f; + #define FNAME_POST_UNDERSCORE + ++/* PPC specific definitions */ ++#elif defined __PPC__ ++ ++typedef long long haddr_t_f; ++typedef long long hsize_t_f; ++typedef long long hssize_t_f; ++typedef int size_t_f; ++#define FNAME_POST_UNDERSCORE ++ + /* IA64 specific definitions */ + #elif defined __ia64 + diff --git a/hdf5.spec b/hdf5.spec index e2686b0..254072c 100644 --- a/hdf5.spec +++ b/hdf5.spec @@ -1,6 +1,6 @@ Name: hdf5 Version: 1.6.4 -Release: 6%{?dist} +Release: 7%{?dist} Summary: A general purpose library and file format for storing scientific data License: BSD-ish Group: System Environment/Libraries @@ -11,6 +11,7 @@ Patch1: hdf5-1.6.4-destdir.patch Patch2: hdf5-1.6.4-norpath.patch Patch3: hdf5-1.6.4-testh5repack.patch Patch4: hdf5-1.6.4-h5diff_attr.patch +Patch5: hdf5-1.6.4-ppc.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: krb5-devel, openssl-devel, zlib-devel, gcc-gfortran @@ -38,6 +39,7 @@ HDF5 development headers and libraries. %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %build autoconf @@ -91,6 +93,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/*.so %changelog +* Fri Nov 18 2005 Orion Poplawski 1.6.4-7 +- Add patch for fortran compilation on ppc + * Wed Nov 16 2005 Orion Poplawski 1.6.4-6 - Bump for new openssl