Subpaquetes de diccionarios (myspell-dict)
This commit is contained in:
parent
78cbbe1e45
commit
41f79b39f2
2 changed files with 36 additions and 2 deletions
|
@ -2773,8 +2773,8 @@ gtk-update-icon-cache -q %{_datadir}/icons/hicolor &>/dev/null || :
|
|||
%{_includedir}/LibreOfficeKit
|
||||
|
||||
%changelog
|
||||
* Fri Nov 24 2023 Sandino Araido Sánchez <sandino@sandino.net> - 1:7.6.2.1-4+gob.mx
|
||||
- Dictionaries
|
||||
* Tue Nov 28 2023 Sandino Araido Sánchez <sandino@sandino.net> - 1:7.6.2.1-4+gob.mx
|
||||
- Myspell dictionaries
|
||||
|
||||
* Thu Nov 23 2023 Sandino Araido Sánchez <sandino@sandino.net> - 1:7.6.2.1-3+gob.mx
|
||||
- Removed ICU patch (already applied)
|
||||
|
|
34
scripts/dict-pkg.sh
Executable file
34
scripts/dict-pkg.sh
Executable file
|
@ -0,0 +1,34 @@
|
|||
#!/bin/bash
|
||||
|
||||
SRC=dict.lst
|
||||
[[ -f $SRC ]] || exit 1
|
||||
SPEC=CentOS-9/SPECS/libreoffice.spec
|
||||
[[ -f $SPEC ]] || exit 2
|
||||
|
||||
for D in `cat dict.lst` ; do
|
||||
LNG=`cut -d '-' -f 2-3 <<< $D`
|
||||
LNW=`sed 's/#.*$//' $SPEC | grep 'langpack -l' | grep " $LNG " \
|
||||
| head -1 | cut -d ' ' -f 5`
|
||||
if [[ -n $LNW ]] ; then
|
||||
if [[ -n `grep langpack <<< $LNW` ]] ; then
|
||||
#echo "Looking for $LNG " >&2
|
||||
LNW=`sed 's/#.*$//' $SPEC | grep -B1 $LNG | grep 'define' \
|
||||
| head -1 | cut -d ' ' -f 3-9`
|
||||
#LNW=$LNP
|
||||
fi
|
||||
#echo "$D - $LNW"
|
||||
cat << EOF
|
||||
%package myspell-$D
|
||||
Summary: Myspell dictionary for $LNG
|
||||
BuildArch: noarch
|
||||
|
||||
%description myspell-$D
|
||||
Myspell dictionary for $LNG
|
||||
|
||||
%files myspell-$D
|
||||
%{baseinstdir}/share/extensions/$D
|
||||
|
||||
EOF
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in a new issue