12 Commits

Author SHA256 Message Date
a50eb9873f Accepting request 1274890 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1274890
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyICU?expand=0&rev=23
2025-05-07 17:14:57 +00:00
938ce7e775 Accepting request 1274848 from home:glaubitz:branches:devel:languages:python
- Update to 2.15.2
  * fixed calloc/free mismatch with arg::Q() uses (Fredrik Roubert)
  * replaced all malloc/calloc/free with std::unique_ptr<T[]>
- from version 2.15.1
  * fixed build error missing conditional ICU < 70 in UnicodeSetIterator()
  * fixed Enum arg parser with broken strict aliasing rules (Jakub Wilk)
  * replaced all new[]/delete[] with std::unique_ptr<[]>, fixed leaks
  * replaced most new/delete with std::unique_ptr<>, fixed leaks
- Adjust upstream source name in spec file

OBS-URL: https://build.opensuse.org/request/show/1274848
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyICU?expand=0&rev=47
2025-05-06 11:16:54 +00:00
838fb3884d Accepting request 1274788 from home:hsk17:branches:openSUSE:Factory:Staging:Gcc7
add pyicu-2.15-gcc15.patch to fix gcc15 compile time error

OBS-URL: https://build.opensuse.org/request/show/1274788
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyICU?expand=0&rev=46
2025-05-06 08:02:47 +00:00
428c443308 Accepting request 1269329 from devel:languages:python
- Update to 2.15
  * fixed build error missing conditional ICU < 70 in UnicodeSetIterator()
  * fixed Enum arg parser with broken strict aliasing rules (Jakub Wilk)
- Refresh remove_six.patch

- Wrap the metadata directory name in a distro-based conditional

- Lowercase metadata directory name.

OBS-URL: https://build.opensuse.org/request/show/1269329
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyICU?expand=0&rev=22
2025-04-15 18:46:47 +00:00
b3d990a486 Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyICU?expand=0&rev=44
2025-04-14 15:00:44 +00:00
0336a75692 Accepting request 1268579 from home:glaubitz:branches:devel:languages:python
- Update to 2.15
  * fixed build error missing conditional ICU < 70 in UnicodeSetIterator()
  * fixed Enum arg parser with broken strict aliasing rules (Jakub Wilk)
- Refresh remove_six.patch

OBS-URL: https://build.opensuse.org/request/show/1268579
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyICU?expand=0&rev=43
2025-04-14 14:54:19 +00:00
7931025e94 - Wrap the metadata directory name in a distro-based conditional
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyICU?expand=0&rev=42
2025-04-01 12:50:40 +00:00
1bcce7329a - Lowercase metadata directory name.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyICU?expand=0&rev=41
2025-03-25 04:31:51 +00:00
fb528d2121 Accepting request 1243233 from devel:languages:python
- Actually drop BuildRequires on six.

OBS-URL: https://build.opensuse.org/request/show/1243233
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyICU?expand=0&rev=21
2025-02-07 21:54:33 +00:00
84d3fe3314 - Actually drop BuildRequires on six.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyICU?expand=0&rev=39
2025-02-05 02:22:36 +00:00
13fc2dee5c Accepting request 1222456 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1222456
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-PyICU?expand=0&rev=20
2024-11-08 10:55:50 +00:00
817ecf1268 Accepting request 1222084 from home:glaubitz:branches:devel:languages:python
- Update to 2.14
  * added wrappers for UCPMap.get|getRange and Char.getIntPropertyMap
  * added wrapper for Locale.getUnicodeKeywordValue
  * added wrapper for UnicodeString.remove, UnicodeString.removeBetween
  * added wrapper for UnicodeString.retainBetween, UnicodeString.truncate
  * fixed bogus UBool uses on stack instead of int (Martin Jansche)
  * added support for ICU 76.1

OBS-URL: https://build.opensuse.org/request/show/1222084
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyICU?expand=0&rev=37
2024-11-07 13:17:37 +00:00
5 changed files with 36 additions and 30 deletions

29
pyicu-2.15-gcc15.patch Normal file
View File

@@ -0,0 +1,29 @@
gitlab.pyicu.org/main/pyicu/-/issues/173
gitlab.pyicu.org/main/pyicu/-/commit/82fa082
From 82fa082b149db81c894e0d887c0fff67c3d2826f Mon Sep 17 00:00:00 2001
From: Andi Vajda <vajda@pyicu.org>
Date: Mon, 5 May 2025 18:55:09 -0700
Subject: [PATCH] switch to is_trivially_copyable for sake of g++ 15+
---
arg.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arg.h b/arg.h
index 5cabfaf..35a7b62 100644
--- a/arg.h
+++ b/arg.h
@@ -853,7 +853,7 @@ public:
};
#define _IS_POD(T) \
- static_assert(std::is_trivial<T>::value); \
+ static_assert(std::is_trivially_copyable<T>::value); \
static_assert(std::is_standard_layout<T>::value)
_IS_POD(AnyPythonObject);
--
GitLab

3
pyicu-2.15.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:561e77eedff17cec6839f26211f7a5ce3c071b776e8a0ec9d1207f46cbce598f
size 267721

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:42b3a8062e3b23e927ca727e6b5e1730d86c70279834e4887152895d2eb012d9
size 268126

View File

@@ -1,28 +1,3 @@
-------------------------------------------------------------------
Fri Nov 7 08:01:07 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Update to 2.16
* fixed issue #178
* added new enums from new unicode release in UBlockCode,
UScriptCode
* added missing wrappers for ECollationStrength and
EComparisonResult
* added wrapper for UIndicConjunctBreak
* added support for ICU 78.1 (bsc#1253118)
-------------------------------------------------------------------
Thu Sep 25 10:46:41 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.15.3
* switch pl2cpa to new[]
* replaced uses of calloc with std::unique_ptr<[]>
* changed pl2cpa into template returning std::unique_ptr
* switch to is_trivially_copyable for sake of g++ 15+
* added wrapper for ES_PUNCTUATION
* added wrapper for UProperty.DEPRECATED
* drop trainling space from INVALID_CODE wrapper
- Drop pyicu-2.15-gcc15.patch, merged upstream
-------------------------------------------------------------------
Tue May 6 09:30:09 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-PyICU
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
%global modname PyICU
%{?sle15_python_module_pythons}
Name: python-%{modname}
Version: 2.16
Version: 2.15.2
Release: 0
Summary: Python Extension Wrapping the ICU C++ API
License: MIT
@@ -28,6 +28,8 @@ Source0: https://files.pythonhosted.org/packages/source/p/pyicu/pyicu-%{v
# PATCH-FEATURE-UPSTREAM remove_six.patch mcepl@suse.com
# Remove dependency on six
Patch0: remove_six.patch
# PATCH-FIX-UPSTREAM pyicu-2.15-gcc15.patch
Patch1: pyicu-2.15-gcc15.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}