langpacks/langpacks.spec

177 lines
5.0 KiB
RPMSpec
Raw Permalink Normal View History

Name: langpacks
Version: 4.1
Release: 4mamba
Summary: Langpacks meta-package
Group: System/Internationalization
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://openmamba.org/en/
Source: org.openmamba.LangPacks.xml
License: GPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildArch: noarch
BuildRequires: libappstream-glib
BuildRequires: shared-mime-info
%description
Langpack meta-package to provide individual langpacks packages.
%define langpacks_subpkg() \
%package %{1}\
Summary: %{2} langpacks meta-package\
\
%description %{1}\
This package provides %{2} langpacks meta-package.\
\
%post %{1}\
if [ $1 -ge 1 ]; then\
l=`echo %{1}|cut -d_ -f1`\
sed -i "s|^#\\(${l}_.* UTF-8\\)|\\1|" /etc/locale.gen\
locale-gen\
fi\
:\
\
%postun %{1}\
if [ $1 -eq 0 ]; then\
l=`echo %{1}|cut -d_ -f1`\
sed -i "s|^\\(${l}_.* UTF-8\\)|#\\1|" /etc/locale.gen\
locale-gen\
fi\
:\
\
%files %{1}\
%defattr(-,root,root)\
%{_datadir}/metainfo/org.openmamba.LangPack-%{1}.metainfo.xml
%langpacks_subpkg af Afrikaans
%langpacks_subpkg am Amharic
%langpacks_subpkg ar Arabic
%langpacks_subpkg as Assamese
%langpacks_subpkg ast Asturian
%langpacks_subpkg be Belarusian
%langpacks_subpkg bg Bulgarian
%langpacks_subpkg bn Bengali
%langpacks_subpkg bo Tibetan
%langpacks_subpkg br Breton
%langpacks_subpkg bs Bosnian
%langpacks_subpkg ca Catalan
%langpacks_subpkg cs Czech
%langpacks_subpkg cy Welsh
%langpacks_subpkg da Danish
%langpacks_subpkg de German
%langpacks_subpkg dz Bhutanese
%langpacks_subpkg el Greek
%langpacks_subpkg en English
%langpacks_subpkg en_GB %{quote:English (United Kingdom)}
%langpacks_subpkg eo Esperanto
%langpacks_subpkg es Spanish
%langpacks_subpkg et Estonian
%langpacks_subpkg eu Basque
%langpacks_subpkg fa Persian
%langpacks_subpkg fi Finnish
%langpacks_subpkg fr French
%langpacks_subpkg ga Irish
%langpacks_subpkg gl Galician
%langpacks_subpkg gu Gujarati
%langpacks_subpkg he Hebrew
%langpacks_subpkg hi Hindi
%langpacks_subpkg hr Croatian
%langpacks_subpkg hu Hungarian
%langpacks_subpkg hy Armenian
%langpacks_subpkg ia Interlingua
%langpacks_subpkg id Indonesian
%langpacks_subpkg is Icelandic
%langpacks_subpkg it Italian
%langpacks_subpkg ja Japanese
%langpacks_subpkg ka Georgian
%langpacks_subpkg kk Kazakh
%langpacks_subpkg km Khmer
%langpacks_subpkg kn Kannada
%langpacks_subpkg ko Korean
%langpacks_subpkg ku Kurdish
%langpacks_subpkg lt Lithuanian
%langpacks_subpkg lv Latvian
%langpacks_subpkg mai Maithili
%langpacks_subpkg mk Macedonian
%langpacks_subpkg ml Malayalam
%langpacks_subpkg mr Marathi
%langpacks_subpkg ms Malay
%langpacks_subpkg my Burmese
%langpacks_subpkg nb %{quote:Norwegian Bokmål}
%langpacks_subpkg ne Nepali
%langpacks_subpkg nl Dutch
%langpacks_subpkg nn Nynorsk
%langpacks_subpkg nr %{quote:Southern Ndebele}
%langpacks_subpkg nso %{quote:Northern Sotho}
%langpacks_subpkg or Oriya
%langpacks_subpkg pa Punjabi
%langpacks_subpkg pl Polish
%langpacks_subpkg pt_BR %{quote:Portuguese (Brazil)}
%langpacks_subpkg pt Portuguese
%langpacks_subpkg ro Romanian
%langpacks_subpkg ru Russian
%langpacks_subpkg si Sinhala
%langpacks_subpkg sk Slovak
%langpacks_subpkg sl Slovenian
%langpacks_subpkg sq Albanian
%langpacks_subpkg sr Serbian
%langpacks_subpkg ss Swati
%langpacks_subpkg sv Swedish
%langpacks_subpkg ta Tamil
%langpacks_subpkg te Telugu
%langpacks_subpkg th Thai
%langpacks_subpkg tl Tagalog
%langpacks_subpkg tn Tswana
%langpacks_subpkg tr Turkish
%langpacks_subpkg ts Tsonga
%langpacks_subpkg uk Ukrainian
%langpacks_subpkg ur Urdu
%langpacks_subpkg ve Venda
%langpacks_subpkg vi Vietnamese
%langpacks_subpkg xh Xhosa
%langpacks_subpkg yi Yiddish
%langpacks_subpkg zh_CN %{quote:Simplified Chinese}
%langpacks_subpkg zh_TW %{quote:Traditional Chinese}
%langpacks_subpkg zu Zulu
%prep
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
# Explode the metainfo files into the subpackages so they get added to the
# distro-specific AppStream metadata (from Fedora)
mkdir -p %{buildroot}/usr/share/metainfo
DESTDIR=%{buildroot} appstream-util split-appstream %{SOURCE0}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%changelog
* Tue Nov 05 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1-4mamba
- added hy (Armenian) and tl (Tagalog)
* Thu Oct 17 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1-3mamba
- fix a mistake in locale.gen editing
* Wed Oct 16 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1-2mamba
- configure glibc locales for langpack language in post scripts
* Sun Jul 14 2024 Automatic Build System <autodist@openmamba.org> 4.1-1mamba
- automatic update by autodist
* Tue Sep 05 2023 Automatic Build System <autodist@mambasoft.it> 4.0-1mamba
- automatic update by autodist
* Sun Feb 19 2023 Automatic Build System <autodist@mambasoft.it> 3.0-1mamba
- automatic update by autodist
* Sat Sep 12 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0-2mamba
- rebuilt as noarch
* Sat Sep 12 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0-1mamba
- package created by autospec