Compare commits
No commits in common. "c8" and "c10s" have entirely different histories.
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
||||
@ -1,169 +0,0 @@
|
||||
Name: langpacks
|
||||
Version: 1.0
|
||||
Release: 12%{?dist}
|
||||
Summary: Langpacks meta-package
|
||||
|
||||
License: GPLv2+
|
||||
BuildArch: noarch
|
||||
Source0: https://people.freedesktop.org/~hughsient/temp/org.fedoraproject.LangPacks.xml
|
||||
|
||||
# to split up the AppStream file
|
||||
BuildRequires: libappstream-glib >= 0.5.10
|
||||
|
||||
%description
|
||||
Langpack meta-package to provide individual langpacks packages.
|
||||
|
||||
# mk_pkg (langcode langname)
|
||||
# we are using macro to auto-generate subpackages which is
|
||||
# defined below with %%define so no %%global here
|
||||
%define mk_pkg() \
|
||||
%package -n %{name}-%1\
|
||||
Summary: %{?2:%(echo %* | sed -e "s/%1 //")} langpacks meta-package\
|
||||
\
|
||||
%description -n %{name}-%1\
|
||||
This package provides %{?2:%(echo %* | sed -e "s/%1 //")} langpacks meta-package.\
|
||||
\
|
||||
%files -n %{name}-%1 \
|
||||
%{_datadir}/metainfo/org.fedoraproject.LangPack-%1.metainfo.xml
|
||||
|
||||
# The following language list is generated based on
|
||||
# 1) take the languages where anaconda translations are available
|
||||
# ls /usr/share/locale/*/LC_MESSAGES/anaconda.mo
|
||||
# Then pick those languages which provides at least a single langpack
|
||||
# 2) Added br ga he nn nr ss tn ts ve xh
|
||||
# as per requested in https://bugzilla.redhat.com/show_bug.cgi?id=1310538
|
||||
# 3) Enabled en langpack https://bugzilla.redhat.com/show_bug.cgi?id=1312890
|
||||
|
||||
%mk_pkg af Afrikaans
|
||||
%mk_pkg am Amharic
|
||||
%mk_pkg ar Arabic
|
||||
%mk_pkg as Assamese
|
||||
%mk_pkg ast Asturian
|
||||
%mk_pkg be Belarusian
|
||||
%mk_pkg bg Bulgarian
|
||||
%mk_pkg bn Bengali
|
||||
%mk_pkg br Breton
|
||||
%mk_pkg bs Bosnian
|
||||
%mk_pkg ca Catalan
|
||||
%mk_pkg cs Czech
|
||||
%mk_pkg cy Welsh
|
||||
%mk_pkg da Danish
|
||||
%mk_pkg de German
|
||||
%mk_pkg el Greek
|
||||
%mk_pkg en English
|
||||
%mk_pkg en_GB English \(United Kingdom\)
|
||||
%mk_pkg es Spanish
|
||||
%mk_pkg et Estonian
|
||||
%mk_pkg eu Basque
|
||||
%mk_pkg fa Persian
|
||||
%mk_pkg fi Finnish
|
||||
%mk_pkg fr French
|
||||
%mk_pkg ga Irish
|
||||
%mk_pkg gl Galician
|
||||
%mk_pkg gu Gujarati
|
||||
%mk_pkg he Hebrew
|
||||
%mk_pkg hi Hindi
|
||||
%mk_pkg hr Croatian
|
||||
%mk_pkg hu Hungarian
|
||||
%mk_pkg ia Interlingua
|
||||
%mk_pkg id Indonesian
|
||||
%mk_pkg is Icelandic
|
||||
%mk_pkg it Italian
|
||||
%mk_pkg ja Japanese
|
||||
%mk_pkg kk Kazakh
|
||||
%mk_pkg kn Kannada
|
||||
%mk_pkg ko Korean
|
||||
%mk_pkg lt Lithuanian
|
||||
%mk_pkg lv Latvian
|
||||
%mk_pkg mai Maithili
|
||||
%mk_pkg mk Macedonian
|
||||
%mk_pkg ml Malayalam
|
||||
%mk_pkg mr Marathi
|
||||
%mk_pkg ms Malay
|
||||
%mk_pkg nb Norwegian Bokmål
|
||||
%mk_pkg ne Nepali
|
||||
%mk_pkg nl Dutch
|
||||
%mk_pkg nn Nynorsk
|
||||
%mk_pkg nr Southern Ndebele
|
||||
%mk_pkg nso Northern Sotho
|
||||
%mk_pkg or Oriya
|
||||
%mk_pkg pa Punjabi
|
||||
%mk_pkg pl Polish
|
||||
%mk_pkg pt Portuguese
|
||||
%mk_pkg pt_BR Portuguese \(Brazil\)
|
||||
%mk_pkg ro Romanian
|
||||
%mk_pkg ru Russian
|
||||
%mk_pkg si Sinhala
|
||||
%mk_pkg sk Slovak
|
||||
%mk_pkg sl Slovenian
|
||||
%mk_pkg sq Albanian
|
||||
%mk_pkg ss Swati
|
||||
%mk_pkg sr Serbian
|
||||
%mk_pkg sv Swedish
|
||||
%mk_pkg ta Tamil
|
||||
%mk_pkg te Telugu
|
||||
%mk_pkg th Thai
|
||||
%mk_pkg tn Tswana
|
||||
%mk_pkg tr Turkish
|
||||
%mk_pkg ts Tsonga
|
||||
%mk_pkg uk Ukrainian
|
||||
%mk_pkg ur Urdu
|
||||
%mk_pkg ve Venda
|
||||
%mk_pkg vi Vietnamese
|
||||
%mk_pkg xh Xhosa
|
||||
%mk_pkg zh_CN Simplified Chinese
|
||||
%mk_pkg zh_TW Traditional Chinese
|
||||
%mk_pkg zu Zulu
|
||||
|
||||
%prep
|
||||
# nothing to prep
|
||||
|
||||
%build
|
||||
# nothing to build
|
||||
|
||||
%install
|
||||
# Explode the metainfo files into the subpackages so they get added to the
|
||||
# distro-specific AppStream metadata
|
||||
mkdir -p %{buildroot}/usr/share/metainfo
|
||||
DESTDIR=%{buildroot} appstream-util split-appstream %{SOURCE0}
|
||||
|
||||
%changelog
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Feb 01 2018 Parag Nemade <pnemade AT redhat DOT com> - 1.0-11
|
||||
- Added description in appdata metainfo files (rh#1538105)
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Mon Aug 15 2016 Richard Hughes <richard@hughsie.com> - 1.0-8
|
||||
- Use a specific AppStream component type of localization.
|
||||
|
||||
* Mon Feb 29 2016 Parag Nemade <pnemade AT redhat DOT com> - 1.0-7
|
||||
- Resolves:rh#1312890: langpacks-en should be added
|
||||
|
||||
* Fri Feb 26 2016 Richard Hughes <richard@hughsie.com> - 1.0-6
|
||||
- Explode the metainfo files into the subpackages so they get added to the
|
||||
distro-specific AppStream metadata.
|
||||
- This allows us to add and remove languages in GNOME Software.
|
||||
|
||||
* Tue Feb 23 2016 Parag Nemade <pnemade AT redhat DOT com> - 1.0-5
|
||||
- Resolves:rh#1310538: Added br ga he nn nr ss tn ts ve xh languages
|
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Wed Jan 27 2016 Parag Nemade <pnemade AT redhat DOT com> - 1.0-3
|
||||
- Removed %%files to disable langpacks.noarch package
|
||||
|
||||
* Tue Jan 26 2016 Parag Nemade <pnemade AT redhat DOT com> - 1.0-2
|
||||
- Changed metapackage -> meta-package
|
||||
- Added information about how we chose language list
|
||||
|
||||
* Thu Jan 21 2016 Parag Nemade <pnemade AT redhat DOT com> - 1.0-1
|
||||
- Initial packaging
|
||||
|
||||
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-10
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||
1930
langpacks.spec
Normal file
1930
langpacks.spec
Normal file
File diff suppressed because it is too large
Load Diff
7
normlang.py
Normal file
7
normlang.py
Normal file
@ -0,0 +1,7 @@
|
||||
import ctypes
|
||||
import sys
|
||||
|
||||
fontconfig = ctypes.CDLL("libfontconfig.so.1")
|
||||
fontconfig.FcLangNormalize.argtypes = [ctypes.c_char_p]
|
||||
fontconfig.FcLangNormalize.restype = ctypes.c_char_p
|
||||
print(fontconfig.FcLangNormalize(sys.argv[1].encode('utf-8')).decode('utf-8'))
|
||||
1060
org.fedoraproject.LangPacks-Core.xml
Normal file
1060
org.fedoraproject.LangPacks-Core.xml
Normal file
File diff suppressed because it is too large
Load Diff
@ -89,6 +89,17 @@
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-bo</id>
|
||||
<name>Tibetan</name>
|
||||
<summary>Localization support for Tibetan</summary>
|
||||
<description>
|
||||
<p>
|
||||
Meta-package to install available langpacks for the language available for the installed packages.
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-br</id>
|
||||
@ -122,6 +133,17 @@
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-chr</id>
|
||||
<name>Cherokee</name>
|
||||
<summary>Localization support for Cherokee</summary>
|
||||
<description>
|
||||
<p>
|
||||
Meta-package to install available langpacks for the language available for the installed packages.
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-cs</id>
|
||||
@ -166,6 +188,28 @@
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-dv</id>
|
||||
<name>Divehi</name>
|
||||
<summary>Localization support for Divehi</summary>
|
||||
<description>
|
||||
<p>
|
||||
Meta-package to install available langpacks for the language available for the installed packages.
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-dz</id>
|
||||
<name>Bhutanese</name>
|
||||
<summary>Localization support for Bhutanese</summary>
|
||||
<description>
|
||||
<p>
|
||||
Meta-package to install available langpacks for the language available for the installed packages.
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-el</id>
|
||||
@ -199,6 +243,17 @@
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-eo</id>
|
||||
<name>Esperanto</name>
|
||||
<summary>Localization support for Esperanto</summary>
|
||||
<description>
|
||||
<p>
|
||||
Meta-package to install available langpacks for the language available for the installed packages.
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-es</id>
|
||||
@ -342,6 +397,17 @@
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-hy</id>
|
||||
<name>Armenian</name>
|
||||
<summary>Localization support for Armenian</summary>
|
||||
<description>
|
||||
<p>
|
||||
Meta-package to install available langpacks for the language available for the installed packages.
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-ia</id>
|
||||
@ -386,6 +452,17 @@
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-iu</id>
|
||||
<name>Inuktitut</name>
|
||||
<summary>Localization support for Inuktitut</summary>
|
||||
<description>
|
||||
<p>
|
||||
Meta-package to install available langpacks for the language available for the installed packages.
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-ja</id>
|
||||
@ -397,6 +474,17 @@
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-ka</id>
|
||||
<name>Georgian</name>
|
||||
<summary>Localization support for Georgian</summary>
|
||||
<description>
|
||||
<p>
|
||||
Meta-package to install available langpacks for the language available for the installed packages.
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-kk</id>
|
||||
@ -408,6 +496,17 @@
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-km</id>
|
||||
<name>Khmer</name>
|
||||
<summary>Localization support for Khmer</summary>
|
||||
<description>
|
||||
<p>
|
||||
Meta-package to install available langpacks for the language available for the installed packages.
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-kn</id>
|
||||
@ -430,6 +529,28 @@
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-ku</id>
|
||||
<name>Kurdish</name>
|
||||
<summary>Localization support for Kurdish</summary>
|
||||
<description>
|
||||
<p>
|
||||
Meta-package to install available langpacks for the language available for the installed packages.
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-lo</id>
|
||||
<name>Lao</name>
|
||||
<summary>Localization support for Lao</summary>
|
||||
<description>
|
||||
<p>
|
||||
Meta-package to install available langpacks for the language available for the installed packages.
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-lt</id>
|
||||
@ -484,6 +605,17 @@
|
||||
Meta-package to install available langpacks for the language available for the installed packages.
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-mni</id>
|
||||
<name>Manipuri</name>
|
||||
<summary>Localization support for Manipuri</summary>
|
||||
<description>
|
||||
<p>
|
||||
Meta-package to install available langpacks for the language available for the installed packages.
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
@ -507,6 +639,17 @@
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-my</id>
|
||||
<name>Burmese</name>
|
||||
<summary>Localization support for Burmese</summary>
|
||||
<description>
|
||||
<p>
|
||||
Meta-package to install available langpacks for the language available for the installed packages.
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-nb</id>
|
||||
@ -650,6 +793,17 @@
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-sat</id>
|
||||
<name>Santali</name>
|
||||
<summary>Localization support for Santali</summary>
|
||||
<description>
|
||||
<p>
|
||||
Meta-package to install available langpacks for the language available for the installed packages.
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-si</id>
|
||||
@ -848,6 +1002,17 @@
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-yi</id>
|
||||
<name>Yiddish</name>
|
||||
<summary>Localization support for Yiddish</summary>
|
||||
<description>
|
||||
<p>
|
||||
Meta-package to install available langpacks for the language available for the installed packages.
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-zh_CN</id>
|
||||
@ -859,11 +1024,22 @@
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-zh_HK</id>
|
||||
<name>Hong Kong Traditional Chinese</name>
|
||||
<summary>Localization support for Hong Kong Traditional Chinese</summary>
|
||||
<description>
|
||||
<p>
|
||||
Meta-package to install available langpacks for the language available for the installed packages.
|
||||
</p>
|
||||
</description>
|
||||
</component>
|
||||
<component type="localization">
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<id>org.fedoraproject.LangPack-zh_TW</id>
|
||||
<name>Traditional Chinese</name>
|
||||
<summary>Localization support for Traditional Chinese</summary>
|
||||
<name>Taiwan Traditional Chinese</name>
|
||||
<summary>Localization support for Taiwan Traditional Chinese</summary>
|
||||
<description>
|
||||
<p>
|
||||
Meta-package to install available langpacks for the language available for the installed packages.
|
||||
1202
org.fedoraproject.default-fonts.xml
Normal file
1202
org.fedoraproject.default-fonts.xml
Normal file
File diff suppressed because it is too large
Load Diff
1038
org.fedoraproject.langpacks-fonts.xml
Normal file
1038
org.fedoraproject.langpacks-fonts.xml
Normal file
File diff suppressed because it is too large
Load Diff
5
plans/langpacks.fmf
Normal file
5
plans/langpacks.fmf
Normal file
@ -0,0 +1,5 @@
|
||||
summary: Basic smoke test
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
33
tests/check-default-font-installed.sh
Executable file
33
tests/check-default-font-installed.sh
Executable file
@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
echo "Check hi language"
|
||||
sudo dnf list installed|grep google-noto-sans-devanagari-vf-fonts
|
||||
retval=$?
|
||||
echo $retval
|
||||
if [ $retval -ne 0 ]; then
|
||||
echo "langpacks-core-hi failed to install google-noto-sans-devanagari-vf-fonts as default font package"
|
||||
else
|
||||
echo "langpacks-core-hi installed with default font google-noto-sans-devanagari-vf-fonts package"
|
||||
fi
|
||||
|
||||
echo "Check ja language"
|
||||
sudo dnf list installed|grep google-noto-sans-cjk-vf-fonts
|
||||
retval=$?
|
||||
echo $retval
|
||||
if [ $retval -ne 0 ]; then
|
||||
echo "langpacks-core-ja failed to install google-noto-sans-cjk-vf-fonts as default font package"
|
||||
else
|
||||
echo "langpacks-core-ja installed with default font google-noto-sans-cjk-vf-fonts package"
|
||||
fi
|
||||
|
||||
echo "Check zh_CN language"
|
||||
sudo dnf list installed|grep google-noto-sans-cjk-vf-fonts
|
||||
retval=$?
|
||||
echo $retval
|
||||
if [ $retval -ne 0 ]; then
|
||||
echo "langpacks-core-zh_CN failed to install google-noto-sans-cjk-vf-fonts as default font package"
|
||||
else
|
||||
echo "langpacks-core-zh_CN installed with default font google-noto-sans-cjk-vf-fonts package"
|
||||
fi
|
||||
|
||||
4
tests/main.fmf
Normal file
4
tests/main.fmf
Normal file
@ -0,0 +1,4 @@
|
||||
require:
|
||||
- langpacks-core-ja
|
||||
test: bash ./check-default-font-installed.sh
|
||||
framework: shell
|
||||
Loading…
Reference in New Issue
Block a user