609f4c7
Name:      langpacks
609f4c7
Version:   1.0
b4f19eb
Release:   11%{?dist}
609f4c7
Summary:   Langpacks meta-package
609f4c7
609f4c7
License:   GPLv2+
609f4c7
BuildArch: noarch
Richard Hughes 7a104f9
Source0:   https://people.freedesktop.org/~hughsient/temp/org.fedoraproject.LangPacks.xml
Richard Hughes 7a104f9
Richard Hughes 7a104f9
# to split up the AppStream file
Richard Hughes 7a104f9
BuildRequires: libappstream-glib >= 0.5.10
609f4c7
609f4c7
%description
609f4c7
Langpack meta-package to provide individual langpacks packages.
609f4c7
609f4c7
# mk_pkg (langcode langname)
609f4c7
# we are using macro to auto-generate subpackages which is
609f4c7
# defined below with %%define so no %%global here
609f4c7
%define mk_pkg() \
609f4c7
%package -n %{name}-%1\
609f4c7
Summary: %{?2:%(echo %* | sed -e "s/%1 //")} langpacks meta-package\
609f4c7
\
609f4c7
%description -n %{name}-%1\
609f4c7
This package provides %{?2:%(echo %* | sed -e "s/%1 //")} langpacks meta-package.\
609f4c7
\
Richard Hughes 7a104f9
%files -n %{name}-%1 \
Richard Hughes 40d4071
%{_datadir}/metainfo/org.fedoraproject.LangPack-%1.metainfo.xml
609f4c7
609f4c7
# The following language list is generated based on
1b9934e
# 1) take the languages where anaconda translations are available
609f4c7
# ls /usr/share/locale/*/LC_MESSAGES/anaconda.mo
609f4c7
# Then pick those languages which provides at least a single langpack
1b9934e
# 2) Added br ga he nn nr ss tn ts ve xh
4d53bd5
# as per requested in https://bugzilla.redhat.com/show_bug.cgi?id=1310538
4d53bd5
# 3) Enabled en langpack https://bugzilla.redhat.com/show_bug.cgi?id=1312890
4d53bd5
609f4c7
%mk_pkg af Afrikaans
609f4c7
%mk_pkg am Amharic
609f4c7
%mk_pkg ar Arabic
609f4c7
%mk_pkg as Assamese
609f4c7
%mk_pkg ast Asturian
609f4c7
%mk_pkg be Belarusian
609f4c7
%mk_pkg bg Bulgarian
609f4c7
%mk_pkg bn Bengali
1b9934e
%mk_pkg br Breton
609f4c7
%mk_pkg bs Bosnian
609f4c7
%mk_pkg ca Catalan
609f4c7
%mk_pkg cs Czech
609f4c7
%mk_pkg cy Welsh
609f4c7
%mk_pkg da Danish
609f4c7
%mk_pkg de German
609f4c7
%mk_pkg el Greek
4d53bd5
%mk_pkg en English
609f4c7
%mk_pkg en_GB English \(United Kingdom\)
609f4c7
%mk_pkg es Spanish
609f4c7
%mk_pkg et Estonian
609f4c7
%mk_pkg eu Basque
609f4c7
%mk_pkg fa Persian
609f4c7
%mk_pkg fi Finnish
609f4c7
%mk_pkg fr French
1b9934e
%mk_pkg ga Irish
609f4c7
%mk_pkg gl Galician
609f4c7
%mk_pkg gu Gujarati
1b9934e
%mk_pkg he Hebrew
609f4c7
%mk_pkg hi Hindi
609f4c7
%mk_pkg hr Croatian
609f4c7
%mk_pkg hu Hungarian
609f4c7
%mk_pkg ia Interlingua
609f4c7
%mk_pkg id Indonesian
609f4c7
%mk_pkg is Icelandic
609f4c7
%mk_pkg it Italian
609f4c7
%mk_pkg ja Japanese
609f4c7
%mk_pkg kk Kazakh
609f4c7
%mk_pkg kn Kannada
609f4c7
%mk_pkg ko Korean
609f4c7
%mk_pkg lt Lithuanian
609f4c7
%mk_pkg lv Latvian
609f4c7
%mk_pkg mai Maithili
609f4c7
%mk_pkg mk Macedonian
609f4c7
%mk_pkg ml Malayalam
609f4c7
%mk_pkg mr Marathi
609f4c7
%mk_pkg ms Malay
609f4c7
%mk_pkg nb Norwegian Bokmål
609f4c7
%mk_pkg ne Nepali
609f4c7
%mk_pkg nl Dutch
1b9934e
%mk_pkg nn Nynorsk
1b9934e
%mk_pkg nr Southern Ndebele
609f4c7
%mk_pkg nso Northern Sotho
609f4c7
%mk_pkg or Oriya
609f4c7
%mk_pkg pa Punjabi
609f4c7
%mk_pkg pl Polish
609f4c7
%mk_pkg pt Portuguese
609f4c7
%mk_pkg pt_BR Portuguese \(Brazil\)
609f4c7
%mk_pkg ro Romanian
609f4c7
%mk_pkg ru Russian
609f4c7
%mk_pkg si Sinhala
609f4c7
%mk_pkg sk Slovak
609f4c7
%mk_pkg sl Slovenian
609f4c7
%mk_pkg sq Albanian
1b9934e
%mk_pkg ss Swati
609f4c7
%mk_pkg sr Serbian
609f4c7
%mk_pkg sv Swedish
609f4c7
%mk_pkg ta Tamil
609f4c7
%mk_pkg te Telugu
609f4c7
%mk_pkg th Thai
1b9934e
%mk_pkg tn Tswana
609f4c7
%mk_pkg tr Turkish
1b9934e
%mk_pkg ts Tsonga
609f4c7
%mk_pkg uk Ukrainian
609f4c7
%mk_pkg ur Urdu
1b9934e
%mk_pkg ve Venda
609f4c7
%mk_pkg vi Vietnamese
1b9934e
%mk_pkg xh Xhosa
609f4c7
%mk_pkg zh_CN Simplified Chinese
609f4c7
%mk_pkg zh_TW Traditional Chinese
609f4c7
%mk_pkg zu Zulu
609f4c7
609f4c7
%prep
609f4c7
# nothing to prep
609f4c7
609f4c7
%build
609f4c7
# nothing to build
609f4c7
609f4c7
%install
Richard Hughes 7a104f9
# Explode the metainfo files into the subpackages so they get added to the
Richard Hughes 7a104f9
# distro-specific AppStream metadata
Richard Hughes 40d4071
mkdir -p %{buildroot}/usr/share/metainfo
Richard Hughes 7a104f9
DESTDIR=%{buildroot} appstream-util split-appstream %{SOURCE0}
609f4c7
609f4c7
%changelog
b4f19eb
* Thu Feb 01 2018 Parag Nemade <pnemade AT redhat DOT com> - 1.0-11
b4f19eb
- Added description in appdata metainfo files (rh#1538105)
b4f19eb
c1cace6
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-10
c1cace6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c1cace6
b66267e
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-9
b66267e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b66267e
Richard Hughes 1862dbb
* Mon Aug 15 2016 Richard Hughes <richard@hughsie.com> - 1.0-8
Richard Hughes 1862dbb
- Use a specific AppStream component type of localization.
Richard Hughes 1862dbb
4d53bd5
* Mon Feb 29 2016 Parag Nemade <pnemade AT redhat DOT com> - 1.0-7
4d53bd5
- Resolves:rh#1312890: langpacks-en should be added
4d53bd5
Richard Hughes 7a104f9
* Fri Feb 26 2016 Richard Hughes <richard@hughsie.com> - 1.0-6
Richard Hughes 7a104f9
- Explode the metainfo files into the subpackages so they get added to the
Richard Hughes 7a104f9
  distro-specific AppStream metadata.
Richard Hughes 7a104f9
- This allows us to add and remove languages in GNOME Software.
Richard Hughes 7a104f9
1b9934e
* Tue Feb 23 2016 Parag Nemade <pnemade AT redhat DOT com> - 1.0-5
1b9934e
- Resolves:rh#1310538: Added br ga he nn nr ss tn ts ve xh languages
1b9934e
2e82c7e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-4
2e82c7e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2e82c7e
609f4c7
* Wed Jan 27 2016 Parag Nemade <pnemade AT redhat DOT com> - 1.0-3
609f4c7
- Removed %%files to disable langpacks.noarch package
609f4c7
609f4c7
* Tue Jan 26 2016 Parag Nemade <pnemade AT redhat DOT com> - 1.0-2
609f4c7
- Changed metapackage -> meta-package
609f4c7
- Added information about how we chose language list
609f4c7
609f4c7
* Thu Jan 21 2016 Parag Nemade <pnemade AT redhat DOT com> - 1.0-1
609f4c7
- Initial packaging
609f4c7