15
0
Files
python-langtable/python-langtable.spec
Dirk Mueller dd0f7b4a53 Accepting request 985169 from home:Pi-Cla:branches:devel:languages:python
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

OBS-URL: https://build.opensuse.org/request/show/985169
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-langtable?expand=0&rev=6
2022-06-27 07:44:06 +00:00

73 lines
2.4 KiB
RPMSpec

#
# spec file for package python-langtable
#
# Copyright (c) 2022 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/
#
%define skip_python2 1
Name: python-langtable
Version: 0.0.58
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
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.
%prep
%autosetup -n langtable-%{version}
%build
sed -i -e "s,_DATADIR = .*,_DATADIR = '%{python3_sitelib}/langtable'," langtable/langtable.py
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%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}/*
%changelog