2017-06-21 13:57:18 +00:00
|
|
|
#
|
Accepting request 912078 from home:DocB:branches:devel:languages:python
- 2.7.4
- added wrappers for UWordBreak and BreakIterator.getRuleStatusVec()
- added wrappers for MessagePattern (Roman Kalukiewicz)
- added wrapper for Collator::getKeywordValuesForLocale
- added wrappers for LocaleMatcher.acceptLanguage|FromHTTP()
- worked around limitation of Visual Studio 2017 (cgohlke)
- added missing test and samples files to distribution (foutrelis)
- added some tests for TimeZone classes
- fixed bug w/FormattedNumberRange.getFirst|SecondDecimal() gone w/ ICU 68.1+
- fixed bug with VTimeZone.write() wrapper invoking VTimeZone.writeSimple()
- added wrapper for Locale.canonicalize()
- added wrappers for MeasureUnit.product(), reciprocal(), getDimensionality()
- added wrapper for MeasureUnit.forIdentifier()
- implemented *, /, **, 1/m for MeasureUnit in terms of product and reciprocal
- added wrappers for BasicTimeZone, RuleBasedTimeZone, VTimeZone
- added wrappers for TimeZoneTransition, TimeZoneRule and its subclasses
- added wrappers for DateTimeRule, DateRuleType, TimeRuleType
- added support for ICU 69.1 (support-icu-69.patch reomoved)
OBS-URL: https://build.opensuse.org/request/show/912078
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyICU?expand=0&rev=19
2021-08-14 19:00:27 +00:00
|
|
|
# spec file
|
2017-06-21 13:57:18 +00:00
|
|
|
#
|
2023-06-25 19:18:39 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2017-06-21 13:57:18 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-11-01 09:12:21 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-06-21 13:57:18 +00:00
|
|
|
#
|
|
|
|
|
2018-01-24 13:47:43 +00:00
|
|
|
|
2023-06-29 13:47:11 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2017-06-21 13:57:18 +00:00
|
|
|
%global modname PyICU
|
|
|
|
Name: python-%{modname}
|
2023-12-18 14:06:33 +00:00
|
|
|
Version: 2.12
|
2017-06-21 13:57:18 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python Extension Wrapping the ICU C++ API
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/Python
|
2021-08-16 08:58:58 +00:00
|
|
|
URL: https://gitlab.pyicu.org
|
2023-12-18 14:06:33 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/P/PyICU/PyICU-%{version}.tar.gz
|
2023-06-25 20:54:36 +00:00
|
|
|
# PATCH-FEATURE-UPSTREAM remove_six.patch mcepl@suse.com
|
|
|
|
# Remove dependency on six
|
|
|
|
Patch0: remove_six.patch
|
2017-06-21 13:57:18 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
2023-06-25 20:54:36 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2018-11-01 09:12:21 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2023-12-18 14:06:33 +00:00
|
|
|
BuildRequires: %{python_module six}
|
2023-06-25 20:54:36 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2017-06-21 13:57:18 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
2018-11-01 09:12:21 +00:00
|
|
|
BuildRequires: pkgconfig
|
2018-01-24 13:47:43 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-11-01 09:12:21 +00:00
|
|
|
BuildRequires: pkgconfig(icu-i18n)
|
|
|
|
BuildRequires: pkgconfig(icu-uc)
|
2017-06-21 13:57:18 +00:00
|
|
|
Provides: %{modname} = %{version}
|
|
|
|
Provides: python-ICU = %{version}
|
|
|
|
Obsoletes: python-ICU < 1.2
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Python extension wrapping IBM's International Components for Unicode C++
|
|
|
|
library (ICU).
|
|
|
|
|
|
|
|
%prep
|
2023-06-25 20:54:36 +00:00
|
|
|
%autosetup -p1 -n %{modname}-%{version}
|
2017-06-21 13:57:18 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
2023-06-25 20:54:36 +00:00
|
|
|
%pyproject_wheel
|
2017-06-21 13:57:18 +00:00
|
|
|
|
|
|
|
%install
|
2023-06-25 20:54:36 +00:00
|
|
|
%pyproject_install
|
2018-11-01 09:12:21 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2017-06-21 13:57:18 +00:00
|
|
|
|
|
|
|
%check
|
2023-06-29 13:47:11 +00:00
|
|
|
%if 0%{?sle_version} && 0%{?sle_version} <= 150500
|
|
|
|
# The timezone package is not up to date
|
|
|
|
%pytest_arch -v -k 'not (testAcceptLanguage or testAcceptLanguageFromHTTP or testTransition)' -rs test
|
|
|
|
%else
|
2021-08-16 08:58:58 +00:00
|
|
|
%pytest_arch -v -k 'not (testAcceptLanguage or testAcceptLanguageFromHTTP)' -rs test
|
2023-06-29 13:47:11 +00:00
|
|
|
%endif
|
2017-06-21 13:57:18 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
2018-11-01 09:12:21 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES CREDITS README.md
|
2023-06-25 19:30:42 +00:00
|
|
|
%{python_sitearch}/icu
|
|
|
|
%{python_sitearch}/PyICU-%{version}*-info
|
2017-06-21 13:57:18 +00:00
|
|
|
|
|
|
|
%changelog
|