Sync from SUSE:SLFO:Main python-langtable revision 9b0d329b64436ec438ac817ae7d056bd
This commit is contained in:
commit
b4af69cb5d
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>data</package>
|
||||||
|
</multibuild>
|
BIN
langtable-0.0.61.tar.gz
(Stored with Git LFS)
Normal file
BIN
langtable-0.0.61.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
76
python-langtable.changes
Normal file
76
python-langtable.changes
Normal file
@ -0,0 +1,76 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 25 06:16:29 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Build data package with multibuild
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 27 20:56:49 UTC 2023 - Josef Reidinger <jreidinger@suse.com>
|
||||||
|
|
||||||
|
- Split python-langtable-data subpackage to hold XML data that
|
||||||
|
package use it saves some spaces and allows usage of that XML
|
||||||
|
without python dependency
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 6 03:52:27 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||||
|
|
||||||
|
- Update to version 0.0.61
|
||||||
|
* Add mnw_MM.UTF-8 and ckb_IQ.UTF-8
|
||||||
|
* Do not run test cases using Python2 anymore
|
||||||
|
* Add bih
|
||||||
|
* Add more translations from CLDR
|
||||||
|
* Migrate license tag to SPDX
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 12 03:39:37 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||||
|
|
||||||
|
- Update to version 0.0.60
|
||||||
|
* Add list_common_locales() function (Resolves: #15)
|
||||||
|
* For ar_IN locale, langtable should give the 'ara' keyboard layout as the first choice (Resolves: Resolves: #14)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 6 11:05:16 UTC 2022 - Gordon Leung <pirateclip@protonmail.com>
|
||||||
|
|
||||||
|
update: 0.0.58 -> 0.0.59
|
||||||
|
- Add ibus/m17n:ar:kbd as input method for Arabic and fix iso639-1 code for Arabic
|
||||||
|
- Add new translations and changes to translations from CLDR
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jun 26 20:07:21 UTC 2022 - Gordon Leung <pirateclip@protonmail.com> - 0.0.58
|
||||||
|
|
||||||
|
update: 0.0.51 -> 0.0.58
|
||||||
|
- add list_common_keyboards() to public api (Sundeep Anand suanand@redhat.com)
|
||||||
|
- Capitalize the return values of language_name() and territory_name()
|
||||||
|
* gh#rhinstaller/anaconda#2837
|
||||||
|
- Add more translations and changes from CLDR
|
||||||
|
- add list_common_languages derived from gnome-control-center (Sundeep Anand suanand@redhat.com)
|
||||||
|
- Make inscript2 instead of inscript input methods the default
|
||||||
|
* https://fedoraproject.org/wiki/Changes/Enhanced_Inscript_as_default_Indic_IM
|
||||||
|
- Make ibus/m17n:vi:telex the default input method for Vietnamese
|
||||||
|
- Fallback to translations in “xx” from “xx_Zzzz” only if “Zzzz” is the main script of “xx”
|
||||||
|
* gh#mike-fabian/langtable#13
|
||||||
|
- Replace “ibus/cangjie” with “ibus/table:cangjie5”
|
||||||
|
- Update Sami languages and Finnish keyboard layouts (from Marko Myllynen)
|
||||||
|
- Add syr and ab_GE locales
|
||||||
|
- Add rif language
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 11 21:07:39 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add python-rpm-macros dependency
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 15 10:32:10 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
- update to version 0.0.51
|
||||||
|
* Parse stuff in glibc locale names after @ which is not a script as a variant
|
||||||
|
* Add ckb_IQ.UTF-8 locale
|
||||||
|
* Make parse_locale() return something reasonable for
|
||||||
|
C, POSIX, en_US_POSIX, and C.UTF-8
|
||||||
|
* Fix exception in language_name() when called with languageId=''
|
||||||
|
* Add new public function parse_locale()
|
||||||
|
* Let info() print a bit more stuff
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 7 10:33:47 UTC 2019 - Ludwig Nussel <lnussel@suse.de>
|
||||||
|
|
||||||
|
- initial package version 0.0.48 for openSUSE
|
109
python-langtable.spec
Normal file
109
python-langtable.spec
Normal file
@ -0,0 +1,109 @@
|
|||||||
|
#
|
||||||
|
# spec file
|
||||||
|
#
|
||||||
|
# Copyright (c) 2023 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "data"
|
||||||
|
%define psuffix -data-src
|
||||||
|
%bcond_without data
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%bcond_with data
|
||||||
|
%endif
|
||||||
|
%define skip_python2 1
|
||||||
|
%global literalpython python
|
||||||
|
Name: python-langtable%{psuffix}
|
||||||
|
Version: 0.0.61
|
||||||
|
Release: 0
|
||||||
|
Summary: Database to guess defaults for locale settings
|
||||||
|
# the translations in languages.xml and territories.xml are (mostly)
|
||||||
|
# imported from CLDR and are thus under the Unicode license, the
|
||||||
|
# short name for this license is "MIT", see:
|
||||||
|
# https://fedoraproject.org/wiki/Licensing:MIT?rd=Licensing/MIT#Modern_Style_without_sublicense_.28Unicode.29
|
||||||
|
License: GPL-3.0-or-later
|
||||||
|
Group: System/Localization
|
||||||
|
URL: https://github.com/mike-fabian/langtable
|
||||||
|
Source0: https://github.com/mike-fabian/langtable/releases/download/%{version}/langtable-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{pythons}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: libxml2-tools
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
%if %{without data}
|
||||||
|
Requires: %{literalpython}-langtable-data = %{version}
|
||||||
|
%endif
|
||||||
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
langtable is used to guess reasonable defaults for locale, keyboard layout,
|
||||||
|
territory, and language, if part of that information is already known. For
|
||||||
|
example, guess the territory and the keyboard layout if the language
|
||||||
|
is known or guess the language and keyboard layout if the territory is
|
||||||
|
already known.
|
||||||
|
|
||||||
|
%package -n python-langtable-data
|
||||||
|
Summary: XML data to map various locale settingsn and its relations
|
||||||
|
|
||||||
|
%description -n python-langtable-data
|
||||||
|
Provides XML data used by python-langtable. Packaged separately so it is not affected
|
||||||
|
by more python target versions and also it can be used indenpendently.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n langtable-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%python_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
|
||||||
|
%if %{with data}
|
||||||
|
# Data package
|
||||||
|
mkdir -p %{buildroot}/%{_datadir}/langtable/data
|
||||||
|
mv langtable/data/* %{buildroot}/%{_datadir}/langtable/data
|
||||||
|
%else
|
||||||
|
# Main package
|
||||||
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%python_expand rm -rf %{buildroot}%{$python_sitelib}/langtable/data
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# Main package
|
||||||
|
%if %{without data}
|
||||||
|
|
||||||
|
%check
|
||||||
|
(cd langtable; python3 langtable.py)
|
||||||
|
python3 test_cases.py
|
||||||
|
for i in keyboards languages territories timezoneidparts timezones; do
|
||||||
|
xmllint --noout --relaxng \
|
||||||
|
langtable/schemas/$i.rng \
|
||||||
|
langtable/data/$i.xml.gz
|
||||||
|
done
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%license COPYING unicode-license.txt
|
||||||
|
%doc README ChangeLog
|
||||||
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
%else
|
||||||
|
# Data package
|
||||||
|
|
||||||
|
%files -n python-langtable-data
|
||||||
|
%{_datadir}/langtable
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user