forked from pool/python-PyICU
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
This commit is contained in:
committed by
Git OBS Bridge
parent
78c32d7174
commit
a7416abbdb
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:db27cd1cc150b879c5465872bec7fdaf340eca140aa922be03891d5b9f855b61
|
||||
size 183235
|
3
PyICU-2.0.2.tar.gz
Normal file
3
PyICU-2.0.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:dd8fedfb7e790fb829d0051a27295770146447e4176cb1b6425992e9b5016f10
|
||||
size 194525
|
@@ -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);
|
@@ -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
|
||||
|
||||
|
@@ -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}
|
||||
|
Reference in New Issue
Block a user