fix build with icu 53.1

This commit is contained in:
David Tardon 2014-08-27 15:28:40 +02:00
parent 70893346a0
commit 2506b76bbe
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,24 @@
From 761c64927512d40858bb1d8b24cc5331b95e9ceb Mon Sep 17 00:00:00 2001
From: David Tardon <dtardon@redhat.com>
Date: Wed, 27 Aug 2014 15:27:53 +0200
Subject: [PATCH] fix build with icu 53.1
---
common.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/common.h b/common.h
index 2ea50e4..88c99fb 100644
--- a/common.h
+++ b/common.h
@@ -129,6 +129,7 @@ typedef intintobjargproc ssizessizeobjargproc;
#include <unicode/regex.h>
#include <unicode/normlzr.h>
#include <unicode/search.h>
+#include <unicode/sortkey.h>
#include <unicode/stsearch.h>
#define VERSION_HEX(major, minor, patch) \
--
1.9.3

View File

@ -19,6 +19,8 @@ BuildRequires: libicu
BuildRequires: libicu-devel
BuildRequires: gcc-c++
Patch0: 0001-fix-build-with-icu-53.1.patch
%description
PyICU is Python extension wrapping IBM's International Components
for Unicode C++ library (ICU). ICU is a mature, widely used set of
@ -34,6 +36,8 @@ Summary: Python3 extension wrapping IBM's ICU C++ libraries
%prep
%setup -q -n %{realname}-%{version}
%patch0 -p1
rm -rf %{py3dir}
cp -a . %{py3dir}