- Update to git state 20170511:

* Add Tibetian dictionary
- Update update.sh script to not bother < 12.3 releases

OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/myspell-dictionaries?expand=0&rev=49
This commit is contained in:
Tomáš Chvátal 2017-05-11 12:19:26 +00:00 committed by Git OBS Bridge
parent d63bb69384
commit 3c1487849c
4 changed files with 112 additions and 8 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:81c35afc561f926e6dba313711bc042682b90d71f3b9bbff14c8fab0dbf4af72
size 44147784
oid sha256:696107f1a7b70f042342ff72e82937b76294bdcb4ce649e0158821ba74337327
size 44639052

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu May 11 12:19:08 UTC 2017 - tchvatal@suse.com
- Update to git state 20170511:
* Add Tibetian dictionary
- Update update.sh script to not bother < 12.3 releases
-------------------------------------------------------------------
Mon Oct 31 14:15:19 UTC 2016 - tchvatal@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package myspell-dictionaries
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -21,7 +21,7 @@
## Generate: sh update.sh
###################################################################
Name: myspell-dictionaries
Version: 20161031
Version: 20170511
Release: 0
Summary: A Source Package for Dictionaries Used by MySpell
License: AGPL-3.0 and BSD-2-Clause and BSD-3-Clause and BSD-4-Clause and CC-BY-SA-1.0 and CC-BY-SA-3.0 and GFDL-1.1 and GPL-2.0 and GPL-2.0+ and GPL-3.0 and GPL-3.0+ and LGPL-2.0 and LGPL-2.1 and LGPL-2.1+ and LGPL-3.0 and LGPL-3.0+ and MPL-1.1
@ -501,6 +501,50 @@ BuildArch: noarch
%description -n myspell-bn_BD
Bengali spelling dictionary.
%package -n myspell-bo_CN
Summary: MySpell bo_CN Dictionary
Group: Productivity/Text/Spell
Requires: myspell-bo
Requires: myspell-dictionaries
Provides: myspell-dictionary
Provides: locale(libreoffice:bo_CN)
Provides: locale(seamonkey-spellchecker:bo_CN)
%if 0%{?suse_version} > 1230
BuildArch: noarch
%endif
%description -n myspell-bo_CN
Classical Tibetan syllable spellchecker for Hunspell.
%package -n myspell-bo
Summary: MySpell bo Dictionary
Group: Productivity/Text/Spell
Requires: myspell-dictionaries
Provides: myspell-dictionary
Provides: locale(libreoffice:bo)
Provides: locale(seamonkey-spellchecker:bo)
%if 0%{?suse_version} > 1230
BuildArch: noarch
%endif
%description -n myspell-bo
Classical Tibetan syllable spellchecker for Hunspell.
%package -n myspell-bo_IN
Summary: MySpell bo_IN Dictionary
Group: Productivity/Text/Spell
Requires: myspell-bo
Requires: myspell-dictionaries
Provides: myspell-dictionary
Provides: locale(libreoffice:bo_IN)
Provides: locale(seamonkey-spellchecker:bo_IN)
%if 0%{?suse_version} > 1230
BuildArch: noarch
%endif
%description -n myspell-bo_IN
Classical Tibetan syllable spellchecker for Hunspell.
%package -n myspell-br_FR
Summary: MySpell br_FR Dictionary
Group: Productivity/Text/Spell
@ -1583,7 +1627,7 @@ BuildArch: noarch
%endif
%description -n myspell-gug
Guarani thesaurus.
Guarani thesaurus and spell checker.
%package -n myspell-gug_PY
Summary: MySpell gug_PY Dictionary
@ -1598,7 +1642,7 @@ BuildArch: noarch
%endif
%description -n myspell-gug_PY
Guarani thesaurus.
Guarani thesaurus and spell checker.
%package -n myspell-gu_IN
Summary: MySpell gu_IN Dictionary
@ -2554,6 +2598,21 @@ mkdir -p %{buildroot}%{_docdir}/myspell-bn_BD
cp -P bn_BD/dictionaries.xcu %{buildroot}%{_docdir}/myspell-bn_BD/dictionaries.xcu
cp -P bn_BD/COPYING %{buildroot}%{_docdir}/myspell-bn_BD/COPYING
cp -P bn_BD/description.xml %{buildroot}%{_docdir}/myspell-bn_BD/description.xml
ln -s %{_datadir}/hunspell/bo.aff %{buildroot}%{_datadir}/hunspell/bo_CN.aff
ln -s %{_datadir}/hunspell/bo_CN.aff %{buildroot}%{_datadir}/myspell/bo_CN.aff
ln -s %{_datadir}/hunspell/bo.aff %{buildroot}%{_datadir}/hunspell/bo_IN.aff
ln -s %{_datadir}/hunspell/bo_IN.aff %{buildroot}%{_datadir}/myspell/bo_IN.aff
cp -P bo/bo.aff %{buildroot}%{_datadir}/hunspell/bo.aff
ln -s %{_datadir}/hunspell/bo.aff %{buildroot}%{_datadir}/myspell/bo.aff
ln -s %{_datadir}/hunspell/bo.dic %{buildroot}%{_datadir}/hunspell/bo_CN.dic
ln -s %{_datadir}/hunspell/bo_CN.dic %{buildroot}%{_datadir}/myspell/bo_CN.dic
ln -s %{_datadir}/hunspell/bo.dic %{buildroot}%{_datadir}/hunspell/bo_IN.dic
ln -s %{_datadir}/hunspell/bo_IN.dic %{buildroot}%{_datadir}/myspell/bo_IN.dic
cp -P bo/bo.dic %{buildroot}%{_datadir}/hunspell/bo.dic
ln -s %{_datadir}/hunspell/bo.dic %{buildroot}%{_datadir}/myspell/bo.dic
mkdir -p %{buildroot}%{_docdir}/myspell-bo
cp -P bo/dictionaries.xcu %{buildroot}%{_docdir}/myspell-bo/dictionaries.xcu
cp -P bo/description.xml %{buildroot}%{_docdir}/myspell-bo/description.xml
cp -P br_FR/br_FR.aff %{buildroot}%{_datadir}/hunspell/br_FR.aff
ln -s %{_datadir}/hunspell/br_FR.aff %{buildroot}%{_datadir}/myspell/br_FR.aff
cp -P br_FR/br_FR.dic %{buildroot}%{_datadir}/hunspell/br_FR.dic
@ -3289,6 +3348,14 @@ cp -P gl/Changelog.txt %{buildroot}%{_docdir}/myspell-gl/Changelog.txt
cp -P gl/COPYING_th_gl %{buildroot}%{_docdir}/myspell-gl/COPYING_th_gl
cp -P gl/README_hyph-gl.txt %{buildroot}%{_docdir}/myspell-gl/README_hyph-gl.txt
cp -P gl/description.xml %{buildroot}%{_docdir}/myspell-gl/description.xml
ln -s %{_datadir}/hunspell/gug.aff %{buildroot}%{_datadir}/hunspell/gug_PY.aff
ln -s %{_datadir}/hunspell/gug_PY.aff %{buildroot}%{_datadir}/myspell/gug_PY.aff
cp -P gug/gug.aff %{buildroot}%{_datadir}/hunspell/gug.aff
ln -s %{_datadir}/hunspell/gug.aff %{buildroot}%{_datadir}/myspell/gug.aff
ln -s %{_datadir}/hunspell/gug.dic %{buildroot}%{_datadir}/hunspell/gug_PY.dic
ln -s %{_datadir}/hunspell/gug_PY.dic %{buildroot}%{_datadir}/myspell/gug_PY.dic
cp -P gug/gug.dic %{buildroot}%{_datadir}/hunspell/gug.dic
ln -s %{_datadir}/hunspell/gug.dic %{buildroot}%{_datadir}/myspell/gug.dic
ln -s %{_datadir}/mythes/th_gug_PY.dat %{buildroot}%{_datadir}/mythes/th_gug_PY_v2.dat
ln -s %{_datadir}/mythes/th_gug_PY_v2.dat %{buildroot}%{_datadir}/myspell/th_gug_PY_v2.dat
cp -P gug/th_gug_PY.dat %{buildroot}%{_datadir}/mythes/th_gug_PY.dat
@ -4135,6 +4202,30 @@ cp -P zu_ZA/description.xml %{buildroot}%{_docdir}/myspell-zu_ZA/description.xml
%{_docdir}/myspell-bn_BD/COPYING
%{_docdir}/myspell-bn_BD/description.xml
%files -n myspell-bo_CN
%defattr(-,root,root,-)
%{_datadir}/hunspell/bo_CN.aff
%{_datadir}/myspell/bo_CN.aff
%{_datadir}/hunspell/bo_CN.dic
%{_datadir}/myspell/bo_CN.dic
%files -n myspell-bo
%defattr(-,root,root,-)
%{_datadir}/hunspell/bo.aff
%{_datadir}/myspell/bo.aff
%{_datadir}/hunspell/bo.dic
%{_datadir}/myspell/bo.dic
%dir %{_docdir}/myspell-bo
%{_docdir}/myspell-bo/dictionaries.xcu
%{_docdir}/myspell-bo/description.xml
%files -n myspell-bo_IN
%defattr(-,root,root,-)
%{_datadir}/hunspell/bo_IN.aff
%{_datadir}/myspell/bo_IN.aff
%{_datadir}/hunspell/bo_IN.dic
%{_datadir}/myspell/bo_IN.dic
%files -n myspell-br_FR
%defattr(-,root,root,-)
%{_datadir}/hunspell/br_FR.aff
@ -5070,6 +5161,10 @@ cp -P zu_ZA/description.xml %{buildroot}%{_docdir}/myspell-zu_ZA/description.xml
%files -n myspell-gug
%defattr(-,root,root,-)
%{_datadir}/hunspell/gug.aff
%{_datadir}/myspell/gug.aff
%{_datadir}/hunspell/gug.dic
%{_datadir}/myspell/gug.dic
%{_datadir}/mythes/th_gug_PY.dat
%{_datadir}/myspell/th_gug_PY.dat
%{_datadir}/mythes/th_gug_PY.idx
@ -5081,6 +5176,10 @@ cp -P zu_ZA/description.xml %{buildroot}%{_docdir}/myspell-zu_ZA/description.xml
%files -n myspell-gug_PY
%defattr(-,root,root,-)
%{_datadir}/hunspell/gug_PY.aff
%{_datadir}/myspell/gug_PY.aff
%{_datadir}/hunspell/gug_PY.dic
%{_datadir}/myspell/gug_PY.dic
%{_datadir}/mythes/th_gug_PY_v2.dat
%{_datadir}/myspell/th_gug_PY_v2.dat
%{_datadir}/mythes/th_gug_PY_v2.idx

View File

@ -277,9 +277,7 @@ function package_metadata()
for p in ${recommends_map["myspell-$locale"]}; do
sed -i "s#@METADATA@#Recommends: $p\n@METADATA@#" myspell-dictionaries.spec
done
sed -i "s#@METADATA@#%if 0%{?suse_version} > 1230\n@METADATA@#" myspell-dictionaries.spec
sed -i "s#@METADATA@#BuildArch: noarch\n@METADATA@#" myspell-dictionaries.spec
sed -i "s#@METADATA@#%endif\n@METADATA@#" myspell-dictionaries.spec
if have_lightproof $dir; then
sed -i "s#@METADATA@#Recommends: myspell-lightproof-$dir\n@METADATA@#" myspell-dictionaries.spec
fi