configure glibc locales for langpack language in post scripts [release 4.1-2mamba;Wed Oct 16 2024]
This commit is contained in:
parent
a7342fa41c
commit
af9808d887
@ -1,6 +1,6 @@
|
|||||||
Name: langpacks
|
Name: langpacks
|
||||||
Version: 4.1
|
Version: 4.1
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
Summary: Langpacks meta-package
|
Summary: Langpacks meta-package
|
||||||
Group: System/Internationalization
|
Group: System/Internationalization
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -25,6 +25,22 @@ Summary: %{2} langpacks meta-package\
|
|||||||
%description %{1}\
|
%description %{1}\
|
||||||
This package provides %{2} langpacks meta-package.\
|
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}\
|
%files %{1}\
|
||||||
%defattr(-,root,root)\
|
%defattr(-,root,root)\
|
||||||
%{_datadir}/metainfo/org.openmamba.LangPack-%{1}.metainfo.xml
|
%{_datadir}/metainfo/org.openmamba.LangPack-%{1}.metainfo.xml
|
||||||
@ -133,6 +149,9 @@ DESTDIR=%{buildroot} appstream-util split-appstream %{SOURCE0}
|
|||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sun Jul 14 2024 Automatic Build System <autodist@openmamba.org> 4.1-1mamba
|
||||||
- automatic update by autodist
|
- automatic update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user