rpms/hdf5/FC-3 hdf5-1.6.5-flags.patch,NONE,1.1 hdf5.spec,1.2,1.3

Orion Poplawski (orion) fedora-extras-commits at redhat.com
Mon Mar 13 20:14:51 UTC 2006


Author: orion

Update of /cvs/extras/rpms/hdf5/FC-3
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15273

Modified Files:
	hdf5.spec 
Added Files:
	hdf5-1.6.5-flags.patch 
Log Message:
Add patch to avoid HDF setting the march compiler flag


hdf5-1.6.5-flags.patch:

--- NEW FILE hdf5-1.6.5-flags.patch ---
--- hdf5-1.6.5/config/gnu-flags.orig	2005-10-28 14:15:26.000000000 -0600
+++ hdf5-1.6.5/config/gnu-flags	2006-03-13 10:59:58.000000000 -0700
@@ -107,25 +107,6 @@
   gcc*|egcs*|pgcc*)
     # Architecture-specific flags
     arch=
-    case "$host_os-$host_cpu" in
-        # FreeBSD sets the information from "uname -m" to the general machine
-        # architecture, not the specific CPU for the machine, so even our
-        # Pentium II Xeon server is set to "i386".  Once we know we are on a FreeBSD
-        # machine, use the "sysctl" command to get the CPU hardware model.
-        freebsd*-i386)
-            host_cpu_model=`sysctl -n hw.model`
-            case "$host_cpu_model" in
-                # Hmm.. this might not catch Celerons, but it won't hurt them either...
-                *Pro*|*II*|*III*|*IV*|*Athlon*)
-                    arch="-march=i686"
-                ;;
-            esac
-            ;;
-
-        *-i686)
-            arch="-march=i686"
-            ;;
-    esac
 
     # Host-specific flags
     case "`hostname`" in
--- hdf5-1.6.5/fortran/config/gnu-flags.orig	2005-10-28 14:57:02.000000000 -0600
+++ hdf5-1.6.5/fortran/config/gnu-flags	2006-03-13 10:59:22.000000000 -0700
@@ -107,25 +107,6 @@
   gcc*|egcs*|pgcc*)
     # Architecture-specific flags
     arch=
-    case "$host_os-$host_cpu" in
-        # FreeBSD sets the information from "uname -m" to the general machine
-        # architecture, not the specific CPU for the machine, so even our
-        # Pentium II Xeon server is set to "i386".  Once we know we are on a FreeBSD
-        # machine, use the "sysctl" command to get the CPU hardware model.
-        freebsd*-i386)
-            host_cpu_model=`sysctl -n hw.model`
-            case "$host_cpu_model" in
-                # Hmm.. this might not catch Celerons, but it won't hurt them either...
-                *Pro*|*II*|*III*|*IV*|*Athlon*)
-                    arch="-march=i686"
-                ;;
-            esac
-            ;;
-
-        *-i686)
-            arch="-march=i686"
-            ;;
-    esac
 
     # Host-specific flags
     case "`hostname`" in


Index: hdf5.spec
===================================================================
RCS file: /cvs/extras/rpms/hdf5/FC-3/hdf5.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- hdf5.spec	2 Mar 2006 21:38:43 -0000	1.2
+++ hdf5.spec	13 Mar 2006 20:14:51 -0000	1.3
@@ -1,6 +1,6 @@
 Name: hdf5
 Version: 1.6.5
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: A general purpose library and file format for storing scientific data
 License: BSD-ish
 Group: System Environment/Libraries
@@ -11,6 +11,7 @@
 Patch2: hdf5-1.6.4-norpath.patch
 Patch3: hdf5-1.6.4-testh5repack.patch
 Patch4: hdf5-1.6.5-h5diff_attr.patch
+Patch5: hdf5-1.6.5-flags.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: krb5-devel, openssl-devel, zlib-devel, time
 
@@ -38,6 +39,7 @@
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1 -b .flags
 
 %build
 autoconf
@@ -92,6 +94,9 @@
 %{_libdir}/*.so
 
 %changelog
+* Mon Mar 13 2006 Orion Poplawski <orion at cora.nwra.com> 1.6.5-2
+- Add patch to avoid HDF setting the march compiler flag
+
 * Thu Mar 02 2006 Orion Poplawski <orion at cora.nwra.com> 1.6.5-1
 - Update to 1.6.5
 




More information about the fedora-extras-commits mailing list