[icu/f18] Resolves: rhbz#889781 big endian build breakage
Eike Rathke
erack at fedoraproject.org
Fri Jan 25 13:17:08 UTC 2013
commit 828baaacf8f17bd25fea5cccda2c9db952992575
Author: Eike Rathke <erack at redhat.com>
Date: Fri Jan 25 14:16:34 2013 +0100
Resolves: rhbz#889781 big endian build breakage
icu.spec | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/icu.spec b/icu.spec
index dc02c2a..241792f 100644
--- a/icu.spec
+++ b/icu.spec
@@ -1,13 +1,13 @@
Name: icu
Version: 49.1.1
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: International Components for Unicode
Group: Development/Tools
License: MIT and UCD and Public Domain
URL: http://www.icu-project.org/
Source0: http://download.icu-project.org/files/icu4c/49.1.1/icu4c-49_1_1-src.tgz
Source1: icu-config.sh
-BuildRequires: doxygen, autoconf
+BuildRequires: doxygen, autoconf, python
Requires: lib%{name} = %{version}-%{release}
Patch1: icu.8198.revert.icu5431.patch
@@ -51,6 +51,9 @@ BuildArch: noarch
%description -n lib%{name}-doc
%{summary}.
+%{!?endian: %global endian %(%{__python} -c "import sys;print (0 if sys.byteorder=='big' else 1)")}
+# " this line just fixes syntax highlighting for vim that is confused by the above and continues literal
+
%prep
%setup -q -n %{name}
%patch1 -p2 -R -b .icu8198.revert.icu5431.patch
@@ -63,6 +66,10 @@ cd source
autoconf
CFLAGS='%optflags -fno-strict-aliasing'
CXXFLAGS='%optflags -fno-strict-aliasing'
+# Endian: BE=0 LE=1
+%if ! 0%{?endian}
+CPPFLAGS='-DU_IS_BIG_ENDIAN=1'
+%endif
%configure --with-data-packaging=library --disable-samples
#rhbz#225896
sed -i 's|-nodefaultlibs -nostdlib||' config/mh-linux
@@ -153,6 +160,9 @@ make %{?_smp_mflags} -C source check
%doc source/__docs/%{name}/html/*
%changelog
+* Fri Jan 25 2013 Eike Rathke <erack at redhat.com> - 49.1.1-6
+- Resolves: rhbz#889781 big endian build breakage
+
* Fri Aug 31 2012 Tom Callaway <spot at fedoraproject.org> - 49.1.1-5
- apply upstream fix (bug 9283) for regexcmp crash causing Chromium segfaults
More information about the scm-commits
mailing list