SPECS: libmd5.spec - select endianess during build if possible.

pluto pluto at pld-linux.org
Wed Sep 17 14:26:50 CEST 2008


Author: pluto                        Date: Wed Sep 17 12:26:50 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- select endianess during build if possible.

---- Files affected:
SPECS:
   libmd5.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/libmd5.spec
diff -u SPECS/libmd5.spec:1.3 SPECS/libmd5.spec:1.4
--- SPECS/libmd5.spec:1.3	Wed Sep 17 13:04:34 2008
+++ SPECS/libmd5.spec	Wed Sep 17 14:26:44 2008
@@ -11,6 +11,16 @@
 BuildRequires:	libtool
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%ifarch %{ix86} %{x8664} alpha
+%define		specflags	-DARCH_IS_BIG_ENDIAN=0
+%endif
+%ifarch sparc sparc64 powerpc ppc ppc64
+%define		specflags	-DARCH_IS_BIG_ENDIAN=1
+%endif
+%ifarch arm
+# detect endianess in runtime.
+%endif
+
 %description
 This is a very small C library implementing RFC1321, the MD5 message
 digest function. Unlike the existing W3C libmd5, it was written from
@@ -79,6 +89,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2008/09/17 12:26:44  pluto
+- select endianess during build if possible.
+
 Revision 1.3  2008/09/17 11:04:34  pluto
 - libtoolize.
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/libmd5.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list