From a4c95f767d7a656274daafe0c65d47ff139b9a7d04aa08a7cab81b9f6a7cc2db Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 13 Dec 2024 10:13:50 +0000 Subject: [PATCH] - update to 0.3.0: - Removes Python 3.8 support. - Fixes transcriptions for "you" and "yong". OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dragonmapper?expand=0&rev=10 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + 31-fix-erroneous-IPA-you-yong.patch | 24 +++++++++++ dragonmapper-0.2.6.tar.gz | 3 ++ dragonmapper-0.2.7.tar.gz | 3 ++ dragonmapper-0.3.0.tar.gz | 3 ++ python-dragonmapper.changes | 41 ++++++++++++++++++ python-dragonmapper.spec | 67 +++++++++++++++++++++++++++++ 8 files changed, 165 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 31-fix-erroneous-IPA-you-yong.patch create mode 100644 dragonmapper-0.2.6.tar.gz create mode 100644 dragonmapper-0.2.7.tar.gz create mode 100644 dragonmapper-0.3.0.tar.gz create mode 100644 python-dragonmapper.changes create mode 100644 python-dragonmapper.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/31-fix-erroneous-IPA-you-yong.patch b/31-fix-erroneous-IPA-you-yong.patch new file mode 100644 index 0000000..85acedd --- /dev/null +++ b/31-fix-erroneous-IPA-you-yong.patch @@ -0,0 +1,24 @@ +From 3cdeea72d5e3e5983dcf1a4c9be7950b71dfcdde Mon Sep 17 00:00:00 2001 +From: Connor Boyle +Date: Tue, 31 Aug 2021 23:44:57 -0700 +Subject: [PATCH] Fix Erroneous IPA for "you" and "yong" + +--- + dragonmapper/data/transcriptions.csv | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +Index: dragonmapper-0.2.6/dragonmapper/data/transcriptions.csv +=================================================================== +--- dragonmapper-0.2.6.orig/dragonmapper/data/transcriptions.csv ++++ dragonmapper-0.2.6/dragonmapper/data/transcriptions.csv +@@ -368,8 +368,8 @@ ye,ㄧㄝ,jɛ + yi,ㄧ,i + yin,ㄧㄣ,in + ying,ㄧㄥ,iŋ +-yong,ㄩㄥ,yʊŋ +-you,ㄧㄡ,yoʊ ++yong,ㄩㄥ,jʊŋ ++you,ㄧㄡ,joʊ + yu,ㄩ,y + yuan,ㄩㄢ,ɥœn + yue,ㄩㄝ,ɥœ diff --git a/dragonmapper-0.2.6.tar.gz b/dragonmapper-0.2.6.tar.gz new file mode 100644 index 0000000..e8b1177 --- /dev/null +++ b/dragonmapper-0.2.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:77443bef7b31b00fed2861514ac59510bae87478237bab8bbe54aa1b79934f4a +size 1400854 diff --git a/dragonmapper-0.2.7.tar.gz b/dragonmapper-0.2.7.tar.gz new file mode 100644 index 0000000..e58b6ba --- /dev/null +++ b/dragonmapper-0.2.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f1137034f94665d93ec58db869a6a560266e6245f06e738618e49d1d32a4a38a +size 1396019 diff --git a/dragonmapper-0.3.0.tar.gz b/dragonmapper-0.3.0.tar.gz new file mode 100644 index 0000000..562a61c --- /dev/null +++ b/dragonmapper-0.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:669c04cbc83e64dc580c5c350d773efab7363c300c7934aec57cc35943f5b913 +size 1396061 diff --git a/python-dragonmapper.changes b/python-dragonmapper.changes new file mode 100644 index 0000000..87c5a72 --- /dev/null +++ b/python-dragonmapper.changes @@ -0,0 +1,41 @@ +------------------------------------------------------------------- +Fri Dec 13 10:10:25 UTC 2024 - Matej Cepl + +- update to 0.3.0: + - Removes Python 3.8 support. + - Fixes transcriptions for "you" and "yong". + +------------------------------------------------------------------- +Sun Nov 10 22:06:57 UTC 2024 - Dirk Müller + +- update to 0.2.7: + * Removes Python 3.7 support. + * Adds zhuyin for "dai". Fixes #22. + * Adds transcription for "yo". Fixes #26. +- drop 31-fix-erroneous-IPA-you-yong.patch (upstream) + +------------------------------------------------------------------- +Thu Nov 23 15:17:48 UTC 2023 - Matej Cepl + +- Add 31-fix-erroneous-IPA-you-yong.patch (gh#tsroten/dragonmapper#31) +- Skip failing tests (gh#tsroten/dragonmapper#35) + +------------------------------------------------------------------- +Fri Apr 21 12:24:28 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:41:00 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Thu Dec 9 09:04:21 UTC 2021 - pgajdos@suse.com + +- do not require pytest-runner for build, not required + +------------------------------------------------------------------- +Tue Aug 27 06:38:17 PM UTC 2019 - John Vandenberg + +- Initial spec for v0.2.6 diff --git a/python-dragonmapper.spec b/python-dragonmapper.spec new file mode 100644 index 0000000..7e7a1b4 --- /dev/null +++ b/python-dragonmapper.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-dragonmapper +# +# Copyright (c) 2024 SUSE LLC +# +# 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. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-dragonmapper +Version: 0.3.0 +Release: 0 +Summary: Identification and conversion functions for Chinese text processing +License: MIT +Group: Development/Languages/Python +URL: https://github.com/tsroten/dragonmapper +Source: https://github.com/tsroten/dragonmapper/archive/v%{version}.tar.gz#/dragonmapper-%{version}.tar.gz +BuildRequires: %{python_module base > 3.8} +BuildRequires: %{python_module hatch_vcs} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-hanzidentifier >= 1.2.0 +Requires: python-zhon >= 2.0.0 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module hanzidentifier >= 1.2.0} +BuildRequires: %{python_module zhon >= 2.0.0} +# /SECTION +%python_subpackages + +%description +Identification and conversion functions for Chinese text processing. + +%prep +%autosetup -p1 -n dragonmapper-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export LANG=en_US.UTF-8 +%pytest + +%files %{python_files} +%doc AUTHORS.rst CHANGES.rst README.rst +%license LICENSE.txt +%{python_sitelib}/dragonmapper +%{python_sitelib}/dragonmapper-%{version}.dist-info + +%changelog