From a7416abbdbfe71169ccd6b96b6b9d1b5026ff4f9c8a09e0c4fc8707abaf2e15f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 24 Jan 2018 13:47:43 +0000 Subject: [PATCH] Accepting request 568896 from home:mlin7442:branches:devel:languages:python update to new version and fixed build failure with icu 60 OBS-URL: https://build.opensuse.org/request/show/568896 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyICU?expand=0&rev=3 --- PyICU-1.9.7.tar.gz | 3 -- PyICU-2.0.2.tar.gz | 3 ++ python-PyICU-1.9.7-quote_Version.patch | 16 ---------- python-PyICU.changes | 44 ++++++++++++++++++++++++++ python-PyICU.spec | 18 ++++++----- 5 files changed, 57 insertions(+), 27 deletions(-) delete mode 100644 PyICU-1.9.7.tar.gz create mode 100644 PyICU-2.0.2.tar.gz delete mode 100644 python-PyICU-1.9.7-quote_Version.patch diff --git a/PyICU-1.9.7.tar.gz b/PyICU-1.9.7.tar.gz deleted file mode 100644 index 349c4f8..0000000 --- a/PyICU-1.9.7.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:db27cd1cc150b879c5465872bec7fdaf340eca140aa922be03891d5b9f855b61 -size 183235 diff --git a/PyICU-2.0.2.tar.gz b/PyICU-2.0.2.tar.gz new file mode 100644 index 0000000..4d59b3c --- /dev/null +++ b/PyICU-2.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd8fedfb7e790fb829d0051a27295770146447e4176cb1b6425992e9b5016f10 +size 194525 diff --git a/python-PyICU-1.9.7-quote_Version.patch b/python-PyICU-1.9.7-quote_Version.patch deleted file mode 100644 index b9a1599..0000000 --- a/python-PyICU-1.9.7-quote_Version.patch +++ /dev/null @@ -1,16 +0,0 @@ -Index: _icu.cpp -=================================================================== ---- _icu.cpp.orig -+++ _icu.cpp -@@ -238,7 +238,11 @@ static PyObject *PyInit_icu(PyObject *m) - PyType_Ready(&ConstVariableDescriptorType); - Py_INCREF(&ConstVariableDescriptorType); - -+#if PY_MAJOR_VERSION > 3 || (PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION >= 7) -+ ver = PyString_FromString("PYICU_VER"); -+#else - ver = PyString_FromString(PYICU_VER); -+#endif - PyObject_SetAttrString(m, "VERSION", ver); Py_DECREF(ver); - - ver = PyString_FromString(U_ICU_VERSION); diff --git a/python-PyICU.changes b/python-PyICU.changes index 39eca1d..c641eb2 100644 --- a/python-PyICU.changes +++ b/python-PyICU.changes @@ -1,3 +1,47 @@ +------------------------------------------------------------------- +Wed Jan 24 09:34:53 UTC 2018 - mlin@suse.com + +- Update to 2.0.2 + * Added wrappers for Region class and URegionType enum + * Added wrappers for MeasureFormat.formatMeasure and formatMeasurePerUnit + * Fixed build error with ICU < 53 +- Update the URL +- Removed unneed python-PyICU-1.9.7-quote_Version.patch +- Running test on python3 only, upstream has problem with running test on + python2, upstream issue #61 + +------------------------------------------------------------------- +Wed Jan 24 09:34:20 UTC 2018 - mlin@suse.com + +- Update to 2.0.1 + * Made Measure wrapper abstract when building with ICU < 53.1 + * str(Measure) uses NumberFormatter when available + +------------------------------------------------------------------- +Wed Jan 24 09:32:56 UTC 2018 - mlin@suse.com + +- Update to 2.0.0 + * Use icu-config for configuring compiler and linker (Constantine Peresypkin) + * Added wrappers for UBidiPairedBracketType enum + * Added wrappers for UWordBreakValues enum + * Added wrappers for UJoiningGroup enum + * Added wrappers for 120+ MeasureUnit static factory methods + * Added wrapper for NoUnit class + * Added wrapper for TimeUnit class + * Added missing Measure constructor(Formattable or number, MeasureUnit) + * Added wrappers for NumberFormatter and related classes and enums, and tests + * Added wrapper for SimpleFormatter and tests + * Fixed bugs in test_LocaleData.py using undefined values (Fredrik Roubert) + * Added wrapper for UMemory and made it UObject's base + * Removed unused docs.py + +------------------------------------------------------------------- +Wed Jan 24 09:30:17 UTC 2018 - mlin@suse.com + +- Update to 1.9.8 + * Fixed bugs in "UnicodeString as sequence"; it's a sequence of 16-bit UChar + * Added support for ICU 60.1 + ------------------------------------------------------------------- Thu Jun 8 14:48:36 UTC 2017 - okurz@suse.com diff --git a/python-PyICU.spec b/python-PyICU.spec index a7ac468..f79db94 100644 --- a/python-PyICU.spec +++ b/python-PyICU.spec @@ -1,7 +1,7 @@ # -# spec file for package python-PyICU +# spec file for package python # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,24 +15,24 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + %{?!python_module:%define python_module() python-%{**} python3-%{**}} %global modname PyICU Name: python-%{modname} -Version: 1.9.7 +Version: 2.0.2 Release: 0 Summary: Python Extension Wrapping the ICU C++ API License: MIT Group: Development/Libraries/Python -Url: http://pyicu.osafoundation.org/ +Url: https://github.com/ovalhub/pyicu Source0: https://pypi.io/packages/source/P/%{modname}/%{modname}-%{version}.tar.gz -Patch0: python-%{modname}-%{version}-quote_Version.patch %{?python_provide:%python_provide python-%{modname}} BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: python-rpm-macros BuildRequires: gcc-c++ +BuildRequires: python-rpm-macros Provides: %{modname} = %{version} Provides: python-ICU = %{version} Obsoletes: python-ICU < 1.2 @@ -56,7 +56,6 @@ library (ICU). %prep %setup -q -n %{modname}-%{version} -%patch0 %build export CXXFLAGS="%{optflags} -fno-strict-aliasing" @@ -69,7 +68,10 @@ export CFLAGS="%{optflags} -fno-strict-aliasing" %if 0%{?suse_version} > 1320 %check -%python_exec setup.py test +# Running test on python3 only due to pyicu issue 61 +%if 0%{?have_python3} +python3 setup.py test +%endif %endif %files %{python_files}