Correct assumption about ppc64 endianess
This commit is contained in:
parent
c242ac155d
commit
b199f04133
14
define-ppc64le-endian.patch
Normal file
14
define-ppc64le-endian.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff -Naur lcms2-2.6.orig/include/lcms2.h lcms2-2.6/include/lcms2.h
|
||||
--- lcms2-2.6.orig/include/lcms2.h 2014-03-27 09:56:56.880010248 -0500
|
||||
+++ lcms2-2.6/include/lcms2.h 2014-03-27 13:08:25.020010825 -0500
|
||||
@@ -192,8 +192,8 @@
|
||||
|
||||
#if defined(__powerpc__) || defined(__ppc__) || defined(TARGET_CPU_PPC)
|
||||
# define CMS_USE_BIG_ENDIAN 1
|
||||
-# if defined (__GNUC__) && defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN)
|
||||
-# if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
+# if defined (__GNUC__) && defined(__BYTE_ORDER__) && defined(__LITTLE_ENDIAN__)
|
||||
+# if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
||||
// // Don't use big endian for PowerPC little endian mode
|
||||
# undef CMS_USE_BIG_ENDIAN
|
||||
# endif
|
@ -1,10 +1,11 @@
|
||||
Name: lcms2
|
||||
Version: 2.6
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Color Management Engine
|
||||
License: MIT
|
||||
URL: http://www.littlecms.com/
|
||||
Source0: http://www.littlecms.com/lcms2-2.6.tar.gz
|
||||
Patch0: define-ppc64le-endian.patch
|
||||
|
||||
BuildRequires: libjpeg-devel
|
||||
BuildRequires: libtiff-devel
|
||||
@ -34,7 +35,7 @@ Development files for LittleCMS.
|
||||
|
||||
%prep
|
||||
%setup -q -n lcms2-2.6
|
||||
|
||||
%patch0 -p1
|
||||
%build
|
||||
%configure --disable-static --program-suffix=2
|
||||
|
||||
@ -81,6 +82,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
|
||||
%changelog
|
||||
* Wed May 21 2014 Brent Baude <baude@us.ibm.com> - 2.6-2
|
||||
- Correct assumption about ppc64 endianess
|
||||
|
||||
* Mon Mar 17 2014 Richard Hughes <richard@hughsie.com> 2.6-1
|
||||
- Update to new upstream version.
|
||||
- Added a way to retrieve matrix shaper always, no matter LUT is present
|
||||
|
Loading…
Reference in New Issue
Block a user