From 2506b76bbe2d9e4079c729328bb102f70deb0c6e Mon Sep 17 00:00:00 2001 From: David Tardon Date: Wed, 27 Aug 2014 15:28:40 +0200 Subject: [PATCH] fix build with icu 53.1 --- 0001-fix-build-with-icu-53.1.patch | 24 ++++++++++++++++++++++++ pyicu.spec | 4 ++++ 2 files changed, 28 insertions(+) create mode 100644 0001-fix-build-with-icu-53.1.patch diff --git a/0001-fix-build-with-icu-53.1.patch b/0001-fix-build-with-icu-53.1.patch new file mode 100644 index 0000000..68ce7aa --- /dev/null +++ b/0001-fix-build-with-icu-53.1.patch @@ -0,0 +1,24 @@ +From 761c64927512d40858bb1d8b24cc5331b95e9ceb Mon Sep 17 00:00:00 2001 +From: David Tardon +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 + #include + #include ++#include + #include + + #define VERSION_HEX(major, minor, patch) \ +-- +1.9.3 + diff --git a/pyicu.spec b/pyicu.spec index bfa0d2d..97c42c3 100644 --- a/pyicu.spec +++ b/pyicu.spec @@ -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}