|
|
|
@ -1,7 +1,8 @@
|
|
|
|
|
Name: langtable
|
|
|
|
|
Version: 0.0.54
|
|
|
|
|
Version: 0.0.51
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Summary: Guessing reasonable defaults for locale, keyboard layout, territory, and language.
|
|
|
|
|
Group: Development/Tools
|
|
|
|
|
# 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:
|
|
|
|
@ -11,6 +12,7 @@ URL: https://github.com/mike-fabian/langtable
|
|
|
|
|
Source0: https://github.com/mike-fabian/langtable/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: perl-interpreter
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -22,11 +24,15 @@ already known.
|
|
|
|
|
|
|
|
|
|
%package -n python3-langtable
|
|
|
|
|
Summary: Python module to query the langtable-data
|
|
|
|
|
Group: Development/Tools
|
|
|
|
|
License: GPLv3+
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-data < %{version}-%{release}
|
|
|
|
|
Provides: %{name}-data = %{version}-%{release}
|
|
|
|
|
%{?python_provide:%python_provide python3-%{name}}
|
|
|
|
|
# Remove before F30
|
|
|
|
|
Provides: %{name}-python3 = %{version}-%{release}
|
|
|
|
|
Provides: %{name}-python3%{?_isa} = %{version}-%{release}
|
|
|
|
|
Obsoletes: %{name}-python3 < %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description -n python3-langtable
|
|
|
|
|
This package contains a Python module to query the data
|
|
|
|
@ -36,7 +42,7 @@ from langtable-data.
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl -pi -e "s,_DATADIR = '(.*)',_DATADIR = '%{_datadir}/langtable'," langtable/langtable.py
|
|
|
|
|
perl -pi -e "s,_datadir = '(.*)',_datadir = '%{_datadir}/langtable'," langtable.py
|
|
|
|
|
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
@ -67,6 +73,11 @@ xmllint --noout --relaxng \
|
|
|
|
|
%license COPYING unicode-license.txt
|
|
|
|
|
%doc README ChangeLog test_cases.py langtable/schemas/*.rng
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python2}
|
|
|
|
|
%files -n python2-langtable
|
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files -n python3-langtable
|
|
|
|
|
%dir %{python3_sitelib}/langtable
|
|
|
|
|
%{python3_sitelib}/langtable/*
|
|
|
|
@ -74,209 +85,21 @@ xmllint --noout --relaxng \
|
|
|
|
|
%{python3_sitelib}/langtable-*.egg-info/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.0.54-4
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.0.54-3
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.54-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Oct 29 2020 Mike FABIAN <mfabian@redhat.com> - 0.0.54-1
|
|
|
|
|
- Update to 0.0.54
|
|
|
|
|
- add list_common_languages derived from gnome-control-center
|
|
|
|
|
by Sundeep ANAND <suanand@redhat.com>
|
|
|
|
|
|
|
|
|
|
* Tue Sep 15 2020 Mike FABIAN <mfabian@redhat.com> - 0.0.53-1
|
|
|
|
|
- Update to 0.0.53
|
|
|
|
|
- Capitalize the return values of language_name() and territory_name()
|
|
|
|
|
(See: https://github.com/rhinstaller/anaconda/pull/2837).
|
|
|
|
|
- Add more translations from CLDR
|
|
|
|
|
- Get translation changes from CLDR
|
|
|
|
|
|
|
|
|
|
* Tue Aug 18 2020 Mike FABIAN <mfabian@redhat.com> - 0.0.52-1
|
|
|
|
|
- Update to 0.0.52
|
|
|
|
|
- add list_common_keyboards() to public api by Sundeep ANAND <suanand@redhat.com>
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.51-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.0.51-3
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.51-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 14 2020 Mike FABIAN <mfabian@redhat.com> - 0.0.51-1
|
|
|
|
|
- Parse stuff in glibc locale names after @ which is not a script as a variant
|
|
|
|
|
- Add ckb_IQ.UTF-8 locale
|
|
|
|
|
|
|
|
|
|
* Fri Dec 20 2019 Mike FABIAN <mfabian@redhat.com> - 0.0.50-1
|
|
|
|
|
- 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=''
|
|
|
|
|
(noticed by Marco Myllynen, thank you!)
|
|
|
|
|
|
|
|
|
|
* Fri Dec 13 2019 Mike FABIAN <mfabian@redhat.com> - 0.0.49-1
|
|
|
|
|
- Add new public function parse_locale()
|
|
|
|
|
- Let info() print a bit more stuff
|
|
|
|
|
|
|
|
|
|
* Tue Nov 05 2019 Mike FABIAN <mfabian@redhat.com> - 0.0.48-1
|
|
|
|
|
- Fix typo in mo entry
|
|
|
|
|
- Add mnw
|
|
|
|
|
- Fix translation of IN in te
|
|
|
|
|
|
|
|
|
|
* Sun Sep 29 2019 Mike FABIAN <mfabian@redhat.com> - 0.0.47-1
|
|
|
|
|
- Three changed translations into sr_Latn from CLDR
|
|
|
|
|
- Add translations of PL in csb and szl (from native speakers)
|
|
|
|
|
- Add tools/compare_with_glib_source.py script to compare stuff with glibc
|
|
|
|
|
- Add translation of DZ in ber
|
|
|
|
|
- Add translation for MA in ber, ber_Tfng, ber_MA
|
|
|
|
|
- Add translation of MX in nah and nhn
|
|
|
|
|
- Add translation of NP in the
|
|
|
|
|
- Add translation for PH in tl
|
|
|
|
|
- Fix translation of IN in te
|
|
|
|
|
- Add translation of MM in shn
|
|
|
|
|
- Add translation of IN in sat
|
|
|
|
|
- Add translation of IR in az_Arab, az_IR
|
|
|
|
|
- Add translation for NU in niu
|
|
|
|
|
- Add translation of PE in ayc (from glibc)
|
|
|
|
|
- Add translation of PE in agr (from glibc)
|
|
|
|
|
- Fix translation of RU into tt
|
|
|
|
|
- Fix translation of ZA in xh
|
|
|
|
|
- Add translation of IN in mni (from glibc)
|
|
|
|
|
- Add translation of CA in iu (from glibc)
|
|
|
|
|
- Add translation of ET in sid (from glibc)
|
|
|
|
|
- Add translations of ER and ET in gez (from glibc)
|
|
|
|
|
- Add translation of ZA in nr, nso, ss, st, tn, ts, ve (from glibc)
|
|
|
|
|
- Add translation of MV in dv (from glibc)
|
|
|
|
|
- Add translation of CA in ik (from glibc)
|
|
|
|
|
- Add translation of IN in mjw (from glibc)
|
|
|
|
|
- Add translations of TW in cmn, hak, nan, nan_Latn (from glibc)
|
|
|
|
|
- Fix translation of BY in be_Latn to agree with glibc
|
|
|
|
|
- Add translation of NP in bho
|
|
|
|
|
- Add translation of IN in bhb, bho, doi, hif, hne, ks_Deva, mag, raj, sa, sd_Deva
|
|
|
|
|
- Use "Crimean Tatar" instead of "Crimean Turkish" as English translation for crh
|
|
|
|
|
- Use Shuswap instead of "Shuswap langauge" as the English translation of shs
|
|
|
|
|
- Correct capitalization of endonym for ss
|
|
|
|
|
- Fix translations of sr_Latn and sr_Cyrl into sr_Latn
|
|
|
|
|
- Use standard translations of zh and yue from cldr, not the alt='menu' variant
|
|
|
|
|
- Fix endonym of uz_Cyrl to agree with glibc and cldr
|
|
|
|
|
- Change endonym for tcy to agree with glibc (cldr does not have tcy)
|
|
|
|
|
- Change endonym for sid to agree with glibc (cldr does not have sid)
|
|
|
|
|
- Change endonym for sgs to agree with glibc (cldr does not have sgs)
|
|
|
|
|
- Give Olck higher priority than Deva for sat
|
|
|
|
|
- Change endonym for lzh to agree with glibc
|
|
|
|
|
- Change endonym for csb to agree with glibc
|
|
|
|
|
- Change endonym for cmn_Hans from 官话 to 汉语官话 and for cmn_Hant from 官話 to 漢語官話
|
|
|
|
|
- Add endonym for ber_MA
|
|
|
|
|
- Add endonym for az_Arab, az_IR (from az_IR in glibc)
|
|
|
|
|
- Add endonym for fy_NL
|
|
|
|
|
- Fix endonym for nhn and add English name for nhn
|
|
|
|
|
- Fix endonym for pa_Arab (agrees with CLDR now)
|
|
|
|
|
|
|
|
|
|
* Wed Sep 04 2019 Mike FABIAN <mfabian@redhat.com> - 0.0.46-1
|
|
|
|
|
- Add some documentation about the parsing of languageId
|
|
|
|
|
- Adapt test cases to translation changes from CLDR
|
|
|
|
|
- Get translation changes from CLDR
|
|
|
|
|
- Add more translations from CLDR
|
|
|
|
|
- More test cases
|
|
|
|
|
- Add optional boolean parameter “fallback” in language_name() and territory_name()
|
|
|
|
|
- Add translation of ES in an
|
|
|
|
|
- Add dummy translation of IN in ks_Deva
|
|
|
|
|
- Add endonyms for ik, iu, cv, csb, crh, an, ayc, ber, bho
|
|
|
|
|
- Add translation of IT in lij
|
|
|
|
|
- Add endonym for nan_Latn
|
|
|
|
|
- Add endonym for oc and translation of FR in oc
|
|
|
|
|
- Add translations of AW and CW in pap
|
|
|
|
|
- Add endonyms for sat, sa, quz
|
|
|
|
|
- Add translation of IT in sc
|
|
|
|
|
- Add dummy translation of IN in sd_Deva
|
|
|
|
|
- Add endonyms for sid, the
|
|
|
|
|
- Add translations of “Tok Pisin” and “Papua New Guinea” in the Tok Pisin language
|
|
|
|
|
- Add translations of “Walloon” and “Belgium” in the Walloon language
|
|
|
|
|
- Some comments in Makefile
|
|
|
|
|
|
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.0.45-4
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
* Tue Jul 30 2019 Mike FABIAN <mfabian@redhat.com> - 0.0.45-3
|
|
|
|
|
- Add “Provides: langtable-data”
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.45-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri May 31 2019 Mike FABIAN <mfabian@redhat.com> - 0.0.45-1
|
|
|
|
|
- Add python_provide macro to make the switch from Python 2 to
|
|
|
|
|
Python 3 automatic (Resolves: rhbz#1717341)
|
|
|
|
|
- Use “us(intl)” keyboard instead of “us” as the default for af and ZA
|
|
|
|
|
(Resolves: https://github.com/mike-fabian/langtable/issues/9)
|
|
|
|
|
- Add za keyboard layout for nso, tn, ve
|
|
|
|
|
(Resolves: https://github.com/mike-fabian/langtable/issues/10)
|
|
|
|
|
- “us” is a possible layout for “ZA”, it is used by default for “zu” for example
|
|
|
|
|
- Return number of failed tests in test_cases.py doctests.
|
|
|
|
|
|
|
|
|
|
* Fri May 31 2019 Mike FABIAN <mfabian@redhat.com> - 0.0.44-2
|
|
|
|
|
- Obsolete langtable-data
|
|
|
|
|
|
|
|
|
|
* Fri May 31 2019 Mike FABIAN <mfabian@redhat.com> - 0.0.44-1
|
|
|
|
|
- Use setuptools instead of distutils
|
|
|
|
|
- Add a version() function and an info() function.
|
|
|
|
|
- Restructure langtable project a bit to be able to upload to PyPi
|
|
|
|
|
- Increase the rank of zh_SG.UTF-8 back to 10 again for languageId="zh"
|
|
|
|
|
- Remove old provides and obsoletes
|
|
|
|
|
|
|
|
|
|
* Fri May 10 2019 Mike FABIAN <mfabian@redhat.com> - 0.0.43-1
|
|
|
|
|
- Get translation changes from CLDR
|
|
|
|
|
- Add some new translations from CLDR
|
|
|
|
|
- Add dsb_DE.UTF-8 sah_RU.UTF-8 locales
|
|
|
|
|
- Fix ranks for "en" and "zh" in "SG", English should be the default for "SG"
|
|
|
|
|
- Reduce the rank of cmn_TW.UTF-8 and zh_SG.UTF-8 to 0 for languageId="zh"
|
|
|
|
|
(Resolves: https://github.com/mike-fabian/langtable/issues/8)
|
|
|
|
|
|
|
|
|
|
* Mon Apr 08 2019 Mike FABIAN <mfabian@redhat.com> - 0.0.42-1
|
|
|
|
|
- Add special support for languageId ca_ES_VALENCIA (Resolves: rhbz#1698984)
|
|
|
|
|
|
|
|
|
|
* Fri Mar 08 2019 Mike FABIAN <mfabian@redhat.com> - 0.0.41-3
|
|
|
|
|
- Remove python2-langtable subpackage (Resolves: rhbz#1686395)
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.41-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 29 2019 Mike FABIAN <mfabian@redhat.com> - 0.0.41-1
|
|
|
|
|
- The territory can be 2 upper case letters *or* 3 digits
|
|
|
|
|
- Get translation changes from CLDR
|
|
|
|
|
- Add many languages and territories and also add new translations from CLDR
|
|
|
|
|
|
|
|
|
|
* Mon Jan 07 2019 Mike FABIAN <mfabian@redhat.com> - 0.0.40-1
|
|
|
|
|
- Add Esperanto locale and test case
|
|
|
|
|
(Thanks to Carmen Bianca Bakker <carmen@carmenbianca.eu>).
|
|
|
|
|
- Add sel
|
|
|
|
|
|
|
|
|
|
* Thu Nov 08 2018 Mike FABIAN <mfabian@redhat.com> - 0.0.39-2
|
|
|
|
|
- Remove unnecessary LC_CTYPE=en_US.UTF-8 in check section.
|
|
|
|
|
|
|
|
|
|
* Mon Oct 15 2018 Mike FABIAN <mfabian@redhat.com> - 0.0.39-1
|
|
|
|
|
- Add the new keyboard layout "au" for Australia (same as "us")
|
|
|
|
|
- Add locales missing in languages.xml, territiories.xml or in both.
|
|
|
|
|
- Add ibus/libzhuyin and make it the default for TW.
|
|
|
|
|
- Add cmn_TW.UTF-8 to the Chinese locales
|
|
|
|
|
- Add several missing languages (Resolves: rhbz#1631214):
|
|
|
|
|
ab av bin bm bua ch co cu ee fat gn ho hz ie ii io kaa ki kj kr kum
|
|
|
|
|
kwm lah lez mh mo na ng nqo nv ota rm rn sco sg sh sma smn sms sn su
|
|
|
|
|
syr tw ty tyv vo vot wen yap za
|
|
|
|
|
|
|
|
|
|
* Tue Jul 17 2018 Miro Hrončok <mhroncok@redhat.com> - 0.0.38-8
|
|
|
|
|
- Update Python macros to new packaging standards
|
|
|
|
|
(See https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package)
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.38-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.0.38-6
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
* Mon May 25 2020 Mike FABIAN <mfabian@redhat.com> - 0.0.51-4
|
|
|
|
|
- Fix wrong date in changelog.
|
|
|
|
|
- Related: rhbz#1682172
|
|
|
|
|
|
|
|
|
|
* Mon May 25 2020 Mike FABIAN <mfabian@redhat.com> - 0.0.51-3
|
|
|
|
|
- gating.yaml added by Radek Vykydal
|
|
|
|
|
- Related: rhbz#1682172
|
|
|
|
|
|
|
|
|
|
* Tue May 19 2020 Mike FABIAN <mfabian@redhat.com> - 0.0.51-2
|
|
|
|
|
- Add CI tests
|
|
|
|
|
- Resolves: rhbz#1682172
|
|
|
|
|
|
|
|
|
|
* Mon May 04 2020 Mike FABIAN <mfabian@redhat.com> - 0.0.51-1
|
|
|
|
|
- Rebase to 0.0.51
|
|
|
|
|
- Resolves: rhbz#1816635
|
|
|
|
|
|
|
|
|
|
* Tue Apr 10 2018 Pete Walter <pwalter@fedoraproject.org> - 0.0.38-5
|
|
|
|
|
- Conditionally add back Python 2 subpackage on Fedora
|
|
|
|
|