configure glibc locales for langpack language in post scripts [release 4.1-2mamba;Wed Oct 16 2024]

This commit is contained in:
Silvan Calarco 2024-10-16 22:05:24 +02:00
parent a7342fa41c
commit af9808d887

View File

@ -1,6 +1,6 @@
Name: langpacks
Version: 4.1
Release: 1mamba
Release: 2mamba
Summary: Langpacks meta-package
Group: System/Internationalization
Vendor: openmamba
@ -25,6 +25,22 @@ 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
@ -133,6 +149,9 @@ DESTDIR=%{buildroot} appstream-util split-appstream %{SOURCE0}
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%changelog
* 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