Sync from SUSE:SLFO:Main myspell-dictionaries revision 2084e5f05230b4d9f65dbd1c8946ad76

This commit is contained in:
Adrian Schröter 2024-05-03 16:54:57 +02:00
commit 0b0168e421
7 changed files with 7374 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
dictionaries.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,39 @@
*** dictionaries.xcu.orig 2020-12-30 09:46:24.787598830 +0100
--- dictionaries.xcu 2020-12-30 09:47:33.316019147 +0100
***************
*** 5,21 ****
<node oor:name="HunSpellDic_es" oor:op="fuse">
<prop oor:name="Locations" oor:type="oor:string-list">
<value>%origin%/es.aff %origin%/es.dic</value>
</prop>
<prop oor:name="Format" oor:type="xs:string">
<value>DICT_SPELL</value>
</prop>
<prop oor:name="Locales" oor:type="oor:string-list">
! <value>es es-AR es-BO es-CL es-CO es-CR es-CU es-DO es-EC es-ES es-GQ es-GT es-HN es-MX es-NI es-PA es-PE es-PH es-PR es-PY es-SV es-US es-UY es-VE</value>
</prop>
</node>
<node oor:name="HunSpellDic_es_AR" oor:op="fuse">
<prop oor:name="Locations" oor:type="oor:string-list">
<value>%origin%/es_AR.aff %origin%/es_AR.dic</value>
</prop>
<prop oor:name="Format" oor:type="xs:string">
<value>DICT_SPELL</value>
--- 5,21 ----
<node oor:name="HunSpellDic_es" oor:op="fuse">
<prop oor:name="Locations" oor:type="oor:string-list">
<value>%origin%/es.aff %origin%/es.dic</value>
</prop>
<prop oor:name="Format" oor:type="xs:string">
<value>DICT_SPELL</value>
</prop>
<prop oor:name="Locales" oor:type="oor:string-list">
! <value>es</value>
</prop>
</node>
<node oor:name="HunSpellDic_es_AR" oor:op="fuse">
<prop oor:name="Locations" oor:type="oor:string-list">
<value>%origin%/es_AR.aff %origin%/es_AR.dic</value>
</prop>
<prop oor:name="Format" oor:type="xs:string">
<value>DICT_SPELL</value>

View File

@ -0,0 +1,776 @@
-------------------------------------------------------------------
Wed Oct 12 09:04:41 UTC 2022 - Danilo Spinella <danilo.spinella@suse.com>
- Update to 20221012:
* Extend --enable-mpl-subset options effect to some dictionaries
* Recognise umlauts typed as -e on non DE keyboard
* Add missing ref to Mongolian dictionary icon in Dictionary_mn.mk
* tdf#149980 updated Ukrainian dictionaries to 5.8.0
* Add Persian (fa-IR) dictionary
* tdf#142152 replace keywords in Spanish dictionary description
* Updated Slovenian thesaurus
* Updated Danish spellchecker
* Related: tdf#147390 Add oc-FR-lengadoc to oc_FR/dictionaries.xcu
* Updated the English dictionaries: GB
* rdm#3572 update github-repo lockdown
* Update Mongolian dictionary
* There is no EO country, eo-EO is a bad language tag
* pt-BR thesaurus: remove idx file from source.
* Corrections to pt-BR thesaurus
* Adding Central Kurdish(ckb) Spell Checker & Dictionary
* resolve committed conflicts in this file
* Fixes to pt-BR thesaurus
* Update French hyphenation rules
-------------------------------------------------------------------
Mon Dec 13 12:59:20 UTC 2021 - pgajdos@suse.com
- version update to 20211213
* More pt-BR thesaurus cleanup
* Updated the British dictionary, based on the wordlist of Oxford Professors and checked one by one
* Add "exrtudir" to spell check for pt-BR
* Refactor by PTG tool
* Cleanup pt-BR thesaurus
* Add thesaurus to pt-BR
* Avoid duplicated pt_BR_pt_BR.properties in packaging's filelist
* add translations of pt_BR grammar checker dialog
* Belarusian hunspell dictionary update
* tdf#144730: Replace CONVERT_ADD to CONVERT to fix metric/non metric conversions
* More refactoring of dict_pt-BR lightproof
* Fix Flags not at the start of the expression in ru-RU
* Refactor lighproof_pt-BR impl script
* "троеточие" is vernacular
* Add regex checker for pt-BR LightProof
* Reformat lightproof_ru_RU.py to have 1 expression per line
* Refactor and fix pt-BR Lightproof rules
* tdf#139523: LightProof makes Python complain on FutureWarnings for pt-BR
* Portuguese Brasil lightproof: fix "Flags not at the start of the expression"
* Fix typo in "Expressão arcaica"
* Czech Hunspell: add several word forms
* Bump pt-BR dict version to 3.2.15
* Portuguese Brasil lightproof: numsep=>gerund since it concerns gerundismo
* tdf#143559: save the changes in options of Portuguese spellcheck
* tdf#143507: localize Grammar Checking (Portuguese) settings page
* Related tdf#138369: Remove spurious CR (ctrl-M) in ru_RU.dic
* tdf#143489: Update Galician dictionaries to version 20.08
* Czech Hunspell: fix declination of some nouns ending with "-ec"
- added sources
+ REMOVE_GIT_LOG
-------------------------------------------------------------------
Thu Feb 18 08:14:06 UTC 2021 - pgajdos@suse.com
- use github repo [bsc#1182375]
- modified sources
% update.sh
-------------------------------------------------------------------
Mon Dec 28 12:19:02 UTC 2020 - pgajdos@suse.com
- version update to 20201228
* several updated dictionaries, see
https://cgit.freedesktop.org/libreoffice/dictionaries/log/
-------------------------------------------------------------------
Mon Oct 5 09:35:50 UTC 2020 - pgajdos@suse.com
- version update to 20201005
* many updated dictionaries, see
https://cgit.freedesktop.org/libreoffice/dictionaries/log/
-------------------------------------------------------------------
Thu Dec 19 09:37:24 UTC 2019 - pgajdos@suse.com
- version update to 20191219
* Updated the English dictionaries: GB+US+CA+AU
* tdf#128341 use python3
* Bring shipped Spanish dictionary up to version 2.5
- modified sources
% update.sh
. gd_GB does not have dictionaries in gd_GB/dictionaries
anymore, thus removing exception
. check for /usr/bin/th_gen_idx.pl existence sooner
. no Group: tag
-------------------------------------------------------------------
Wed Oct 16 12:14:40 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 20191016:
* Updated Slovenian thesaurus
* Update the da_DK dictionary
* Remove abbreviations from Thai hunspell dictionary
* Updated the English dictionaries: GB
* Fix logo management for "ca"
-------------------------------------------------------------------
Tue Apr 23 11:28:30 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 20190423:
* Serbian dictionary updated
* Update af_ZA hunspell
* Update Spanish dictionary
* Update Slovenian dictionary
* Update Breton dictionary
* Update Galician dictionary
-------------------------------------------------------------------
Thu Oct 25 14:16:21 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 20181025:
* Turkish dictionary added
* Updated French dictionary
-------------------------------------------------------------------
Wed Jul 4 10:35:31 UTC 2018 - tchvatal@suse.com
- Update to 20180704 bsc#1102294 bsc#1099508:
* Indonesian hyphenation added
* English updates
* Croatian updates
* Bulgarian files converted to UTF8 in order to avoid bugs
-------------------------------------------------------------------
Tue Apr 3 10:26:06 UTC 2018 - tchvatal@suse.com
- Update to 20180403:
* Various updates around
* Indonesian spelling dictionary and thesaurus added
-------------------------------------------------------------------
Mon Dec 18 10:04:29 UTC 2017 - pgajdos@suse.com
- git state 20171218
* hungarian, spanish
- update.sh: save git log before removing .git; run spec-cleaner
if present
-------------------------------------------------------------------
Thu Nov 2 10:48:35 UTC 2017 - tchvatal@suse.com
- Version update to git state 20171102:
* Albanian dictionary
* Udates all around the place
Spanish/English/Swedish/...
-------------------------------------------------------------------
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
-------------------------------------------------------------------
Fri Dec 9 15:54:44 UTC 2016 - pgajdos@suse.com
- add FLAG UTF-8 to es_ANY.aff [bsc#1014742]
+ myspell-dictionaries-es-FLAG-UTF-8.patch
-------------------------------------------------------------------
Mon Oct 31 14:15:19 UTC 2016 - tchvatal@suse.com
- Update to git state 20161031:
* Various language updates
* Notably Swedish and pt_PT
-------------------------------------------------------------------
Wed May 11 10:15:02 UTC 2016 - tchvatal@suse.com
- Version update to git state 20160511:
* Notably croatian and czech rules updates
-------------------------------------------------------------------
Wed Feb 3 10:33:34 UTC 2016 - tchvatal@suse.com
- git state 20160203 to incorporate the previous change
-------------------------------------------------------------------
Wed Feb 3 10:21:41 UTC 2016 - tchvatal@suse.com
- Fix description of the package bnc#718113
-------------------------------------------------------------------
Thu Dec 17 12:22:19 UTC 2015 - pgajdos@suse.com
- git state 20151217
-------------------------------------------------------------------
Thu Aug 27 11:46:36 UTC 2015 - tchvatal@suse.com
- Fixup es generating in update script
-------------------------------------------------------------------
Thu Aug 27 11:21:23 UTC 2015 - tchvatal@suse.com
- Slightly whitespace the spec.in file
-------------------------------------------------------------------
Thu Aug 27 10:34:23 UTC 2015 - tchvatal@suse.com
- Update to git state 20150827 reflecting LO 5.0
-------------------------------------------------------------------
Thu Apr 23 09:28:23 UTC 2015 - pgajdos@suse.com
- fix build for 11sp3
-------------------------------------------------------------------
Mon Apr 20 10:51:32 UTC 2015 - pgajdos@suse.com
- remove Obsoletes: bits from myspell-dictionaries rpm which we
provide in language sub-subpackages
-------------------------------------------------------------------
Tue Apr 7 12:03:58 UTC 2015 - pgajdos@suse.com
- git state 20150407, fixes [bnc#806250]
-------------------------------------------------------------------
Fri Jan 30 09:24:32 UTC 2015 - pgajdos@suse.com
- git state 20150130
- fixed [bnc#914911]:
* gl: fixed dangling symlinks when gl_ES not installed
* de: _frami dropped from dictionaries name,
removed hyph_de.dic, th_de_v2.dat, th_de_v2.idx links from
myspell-de main language package (dangling when no
variant is installed)
* en: introduced dependenciencies between language subpackages
to not have dangling symlinks:
- all variants depends on en_US variant
- all except en_PH depends on en_GB
- en_MW, en_NA and en_ZW variants depends on en_ZA
* ca: ca-valencia.{dic,aff} regular files moved to
myspell-ca_ES_valencia
-------------------------------------------------------------------
Fri Dec 19 08:32:12 UTC 2014 - pgajdos@suse.com
- update to 20141215
- package split according to locale [bnc#907966]
-------------------------------------------------------------------
Thu Sep 11 09:43:48 UTC 2014 - pgajdos@suse.com
- package lightproof files [bnc#890735]
- package all doc files
- update to 20140911
-------------------------------------------------------------------
Tue May 20 14:15:52 UTC 2014 - tchvatal@suse.com
- Remove unzip buildrequire and add xz one.
-------------------------------------------------------------------
Tue May 13 09:05:03 UTC 2014 - pgajdos@suse.com
- always end thesaurus files with _v2
-------------------------------------------------------------------
Mon May 12 09:05:03 UTC 2014 - pgajdos@suse.com
- improve thesaurus link names
-------------------------------------------------------------------
Wed May 7 09:24:10 UTC 2014 - pgajdos@suse.com
- updated to 20140507
* fdo#73544 update catalan linguistic components
- improve dictionary file names
-------------------------------------------------------------------
Tue May 6 15:22:09 UTC 2014 - pgajdos@suse.com
- generate and package *.idx files
-------------------------------------------------------------------
Mon May 5 14:21:37 UTC 2014 - pgajdos@suse.com
- package compat symlinks in /usr/share/myspell
-------------------------------------------------------------------
Mon Apr 28 14:48:48 UTC 2014 - pgajdos@suse.com
- myspell-de provides myspell-austrian, myspell-german and
myspell-nswiss (removed subpackages from igerman98 source
package)
-------------------------------------------------------------------
Thu Apr 24 11:38:16 UTC 2014 - pgajdos@suse.cz
- obsolete libreoffice-hyphen
- obsolete/provide libreoffice-thesaurus-*
-------------------------------------------------------------------
Tue Apr 22 11:12:27 UTC 2014 - pgajdos@suse.com
- do not provide locale(OpenOffice_org:*) [bnc#806250#c21]
-------------------------------------------------------------------
Tue Apr 22 10:59:45 UTC 2014 - pgajdos@suse.com
- subpackages Provides old names
-------------------------------------------------------------------
Fri Apr 18 07:37:32 UTC 2014 - pgajdos@suse.com
- package reworked, using data and layout from
http://cgit.freedesktop.org/libreoffice/dictionaries/
[bnc#806250]
-------------------------------------------------------------------
Thu Jan 2 10:47:02 UTC 2014 - pmladek@suse.com
- update Polish dictionary to version 20140102 (bnc#857026)
-------------------------------------------------------------------
Thu Aug 9 18:24:06 UTC 2012 - elchevive@opensuse.org
- Update pt_BR dictionary (Vero 2.1.1), Portugue dictionary (12.7.1.1) and
its info (URL), correct Kichwa URL (there was an incorrect one)
-------------------------------------------------------------------
Tue Apr 3 13:21:48 UTC 2012 - pmladek@suse.com
- update license to follow spdx.org standard
-------------------------------------------------------------------
Tue Mar 27 13:55:20 UTC 2012 - elchevive@opensuse.org
- Update pt_BR dictionary (Vero 2.1), its license, URL and description
-------------------------------------------------------------------
Wed Feb 8 10:01:55 UTC 2012 - pmladek@suse.com
- http://extensions.services.openoffice.org was not reliable; removed this URL
from the source tag to pass the commit check; kept the URL just in a comment
-------------------------------------------------------------------
Thu Jan 26 20:10:24 UTC 2012 - asterios.dramis@gmail.com
- Updated Greek dictionary to version 20100124 (1.1.0)
- Updated spec file based on spec-cleaner run
-------------------------------------------------------------------
Tue Oct 4 12:03:58 UTC 2011 - pmladek@suse.com
- updated description for LibreOffice (bnc#718113)
-------------------------------------------------------------------
Mon Jun 13 19:22:03 CEST 2011 - pmladek@suse.cz
- myspell-portuguese (bnc#688200):
* added myspell-portuguese-dictionary into Provides to have a common
provides with the myspell-portuguese-preao package
* added myspell-portuguese-preao into Conflicts
-------------------------------------------------------------------
Sat Jun 4 08:19:21 CEST 2011 - kkemenczy@opensuse.org
- updated Portuguese (pt_PT) dictionary (bnc#688200)
-------------------------------------------------------------------
Thu Apr 21 19:30:45 CEST 2011 - pmladek@suse.cz
- updated Valencian dictionary; used avl version again (bnc#681560)
-------------------------------------------------------------------
Wed Feb 2 20:47:09 CET 2011 - pmladek@suse.cz
- added provides locale(libreoffice:<lang>) to make it installed
with libreoffice (bnc#668145)
-------------------------------------------------------------------
Thu Dec 16 14:56:22 CEST 2010 - kkemenczy@opensuse.org
- updated Belarusian (be_BY)
-------------------------------------------------------------------
Thu Nov 29 17:50:49 CEST 2010 - kkemenczy@opensuse.org
- add Coptic (cop_EG) dictionary, Valencian (ca_XV)
- updated Esperanto (eo_EO), Portuguese (pt_PT,)
Romanian (ro_RO) dictionary
-------------------------------------------------------------------
Thu Oct 02 22:26:41 CEST 2010 - kkemenczy@opensuse.org
- updated Yiddish (yi_IL) dictionary
-------------------------------------------------------------------
Thu Sep 16 12:10:52 CEST 2010 - kkemenczy@opensuse.org
- updated Bulgarian (bg_BG) dictionary
-------------------------------------------------------------------
Wed Sep 01 21:09:22 CEST 2010 - kkemenczy@opensuse.org
- added Armenian (hy_AM), Friulian (fur_IT), Kazakh (kk_KZ), Korean (ko_KR),
Latin (la_LA), Lower sorbian (dsb_DE), Serbian Latin (sh_RS),
Serbian Cyrillic (sr_RS), Sinhala (si_LK), Yiddish (yi_IL)
- updated Albanian (sq_AL), Chichewa (ny_MW), French (fr_FR), Khmer (km_KH)
-------------------------------------------------------------------
Sun May 16 22:46:34 CEST 2010 - kkemenczy@opensuse.org
- updated Italian (it_IT), Franch (fr_FR) dictionaries
-------------------------------------------------------------------
Mon Apr 19 13:10:18 CEST 2010 - kkemenczy@opensuse.org
- updated Latvian (lv_LV) dictionary
-------------------------------------------------------------------
Fri Apr 15 19:14:33 CEST 2010 - kkemenczy@opensuse.org
- added Asturian (ast_ES), Kikuyu (kik_KE) dictionaries, Canadian (en_CA)
- updated Hungarian (hu_HU), American (en_US), Australian (en_AU),
British (en_BG), South African English (en_ZA) dictionaries
-------------------------------------------------------------------
Fri Apr 9 19:59:07 CEST 2010 - pmladek@suse.cz
- used the be_BY locale instead of be_UA for Belarusian; the old one was not
detected by OOo
- added dos2unix to BuildRequires; called on documentation files
-------------------------------------------------------------------
Wed Apr 7 17:50:57 CEST 2010 - pmladek@suse.cz
- started to generate the spec file using a script:
+ avoid duplicated information; reduce cut&paste errors
+ update License tags according to Kalman's notes
+ list all licenses for the source package
-------------------------------------------------------------------
Mon Mar 16 16:31:29 CEST 2010 - kkemenczy@opensuse.org
- Remove German myspell dictionaries from openSUSE 11.3 and later
(de_DE, de_AT, de_CH) [bnc#547549]
-------------------------------------------------------------------
Mon Mar 08 13:55:32 CEST 2010 - kkemenczy@opensuse.org
- update NSwiss (de_CH) dictionary
-------------------------------------------------------------------
Mon MAr 08 13:48:22 CEST 2010 - kkemenczy@opensuse.org
- update Austrian (de_AT), German (de_DE) dictionaries
-------------------------------------------------------------------
Fri Feb 27 19:59:42 CEST 2010 - kkemenczy@opensuse.org
- update Breton (br_FR), Spanish-venezuelan (es_VE) dictionaries
-------------------------------------------------------------------
Tue Feb 12 13:22:14 CEST 2010 - kkemenczy@opensuse.org
- add Swedish in Finland (sv_FI) dictionary
- update Catalan (ca_ES), Costa Rican Spanish (es_CR) dictionaries
-------------------------------------------------------------------
Tue Feb 09 13:35:28 CEST 2010 - kkemenczy@opensuse.org
- update Slovak (sk_SK) dictionary
-------------------------------------------------------------------
Sat Feb 06 15:45:18 CEST 2010 - kkemenczy@opensuse.org
- update Hungarian (hu_HU) dictionary
-------------------------------------------------------------------
Mon Feb 01 14:46:11 CEST 2010 - kkemenczy@opensuse.org
- update Swedish (sv_SE) dictionary
-------------------------------------------------------------------
Mon Jan 27 12:01:22 CEST 2010 - kkemenczy@opensuse.org
- add Maithili (mai_IN) dictionary
- update French (fr_FR), Hungarian (hu_HU), Marathi (mr_IN), Brazilian (pt_BR) dictionaries
-------------------------------------------------------------------
Fri Jan 01 23:30:19 CEST 2010 - kkemenczy@opensuse.org
- add Belarusian (be_UA), Esperanto (eo_EO), Haitian (ht_HT), Kichwa (qu_EC) dictionary
- update Mexican (es_MX), Occitan-lengadocian (oc_FR), Zulu (zu_ZA) dictionary
-------------------------------------------------------------------
Fri Dec 11 09:30:19 CEST 2009 - kkemenczy@opensuse.org
- add Albanian (sq_AL) dictionary
-------------------------------------------------------------------
Fri Dec 4 09:45:00 CEST 2009 - kkemenczy@opensuse.org
- updated dictionaries: Afrikaans (af_ZA), Austrian (de_AT), American (en_US),
Brazilian (pt_BR), Bulgarian (bg_BG), Czech (cs_CZ), Estorian (et_EE), French (fr_FR),
Galleic-Scots (gd_GB), German (de_DE), Hindi (hi_IN), Icelandic (is_IS),
Kinyarwanda (rw_RW), Kurdish (ku_TR), Latvian (lv_LV), Malayalam (ml_IN), Marathi (mr_IN),
Ndebele (nr_ZA), New-Zealand English (en_NZ), NSwiss (de_CH), Romanian (ro_RO),
Slovene (sl_SI), South-African Englis (en_ZA), Spanish-argentine (es_AR),
Swati (ss_ZA), Swedish (sv_SE), Ukrainian (uk_UA), Venda (ve_ZA), Vietnamese (vi_VN),
Xhosa (xh_ZA), Zulu (zu_ZA)
- review all licenses
- add dictionary type (hunspell or myspell) to the new comment structure
-------------------------------------------------------------------
Tue Nov 24 18:07:09 CEST 2009 - kkemenczy@opensuse.org
- updated hu dictionary
-------------------------------------------------------------------
Wed Aug 5 16:29:34 CEST 2009 - pmladek@suse.cz
- added back the older Hungarian dictionary for openSUSE <= 11.1;
the new version requires hunspell-1.2.8; thanks to Kálmán Kéménczy
for pointing this out
-------------------------------------------------------------------
Fri Jul 31 16:52:57 CEST 2009 - pmladek@suse.cz
-updated dictionaries: Australian, Brazilian, Catalan, French, Galician,
Hebrew, Hungarian, Irish, Italian, Latvian, Marathi, Mexican, Occitan
Lengadocian, Polish, Portuguese, Romanian, Russian, Slovak, Spanish
Venezuelan, Swedish, Ukrainian
- updated license: Australian, Brazilian, Catalan, French, Hebrew, Hungarian,
Italian, Marathi, Occitan Lengadocian, Polish, Portuguese, Romanian, Russian,
Slovak, Spanish, Venezuelan
- added dictionaries: Arabic, Assamese, Bengali, Breton, Khmer, Malayalam
- more automatized packaging:
* added unzip to BuildRequires
* added support to repack dictionaries from different type of sources,
including OOo extensions
* added heuristics to install the documentation
* generated file list automatically
-------------------------------------------------------------------
Mon Sep 29 15:00:38 CEST 2008 - pmladek@suse.cz
- updated dictionaries: Australian, French, Maory, Norwegian Bokmaal,
Norwegian Nynorsk, Polish, Romanian, Setswana, Swedish
- removed obsolete triggerin and postun scripts; OOo-3.0 does not need
it anymore
-------------------------------------------------------------------
Tue Aug 12 18:20:46 CEST 2008 - lmichnovic@suse.cz
- updated sk_SK dictionary
-------------------------------------------------------------------
Fri Jun 27 16:24:29 CEST 2008 - lmichnovic@suse.cz
- erased nonsense part in zu_ZA dic file.
The source tarball was repacked (zu_ZA.tar.bz2)
-------------------------------------------------------------------
Fri Jun 27 12:07:18 CEST 2008 - lmichnovic@suse.cz
- fixed missing newline at the end of the *.dic file when adding
Novell jargon words.
-------------------------------------------------------------------
Wed Jun 25 16:23:26 CEST 2008 - lmichnovic@suse.cz
- Added Novell jargon [bnc#306333] (Nwordlist.tgz)
-------------------------------------------------------------------
Mon Apr 14 12:00:54 CEST 2008 - lmichnovic@suse.cz
- added hungarian dictionary which was in ispell-hungarian
-------------------------------------------------------------------
Fri Mar 14 14:31:32 CET 2008 - lmichnovic@suse.cz
- erased dots in Summary
- no remove RPM_BUILD_ROOT in %install section
-------------------------------------------------------------------
Fri Mar 14 13:36:49 CET 2008 - lmichnovic@suse.cz
- updated: bg_BG, da_dk, de_AT, de_CH, de_DE, gl_ES, lv_LV, sk_SK,
sv_SV
-------------------------------------------------------------------
Fri Aug 31 20:32:10 CEST 2007 - pmladek@suse.cz
- updated dictionaries: German, Austrian, Swiss [n#306321]
-------------------------------------------------------------------
Fri Jul 27 19:39:15 CEST 2007 - pmladek@suse.cz
- updated dictionaries: American, Brazilian, Czech, Danish, Dutch, Faroese,
Latvian, Polish, Slovene, Ukrainian
- added dictionaries: Occitan Lengadocian, South African English, Salvadorean
Spanish, Thai
-------------------------------------------------------------------
Tue Apr 17 15:18:41 CEST 2007 - pmladek@suse.cz
- updated Swedish dictionary from another source [#260708]
-------------------------------------------------------------------
Mon Oct 23 18:21:11 CEST 2006 - pmladek@suse.cz
- updated dictionaries: African, Austrian, Croatian, Danish, Faroese, French,
Galician, German, Hebwer, Italian, Irish, Latvian, Norwegian Bokmaal,
Norwegian Nynorsk, Polish, Zulu
- added dictionaries: Gujarati, Hindi, Marathi, Ndebele, Northern Sotho,
Swati, Tsonga, Venda, Xhosa
-------------------------------------------------------------------
Wed Mar 29 11:42:28 CEST 2006 - pmladek@suse.cz
- removed full specifiers from some more locales (bg_BG -> bg,
ca_ES -> ca) [#154079]
-------------------------------------------------------------------
Mon Mar 13 16:52:07 CET 2006 - pmladek@suse.cz
- one more attempt to fix the African locale() provides; the wrong
variant seems to be somewhat persistent ;-) [#154077]
-------------------------------------------------------------------
Tue Feb 28 14:54:24 CET 2006 - anicka@suse.cz
- fix african locale() provides [#154077]
- remove full specifiers from locale() provides where appropriate
[#154079]
-------------------------------------------------------------------
Fri Feb 24 21:08:04 CET 2006 - lmichnovic@suse.cz
- added Provides: locale(*_*)
-------------------------------------------------------------------
Wed Jan 25 21:47:04 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Mon Jan 16 16:53:41 CET 2006 - pmladek@suse.cz
- updated Austrian, German, and Swiss dictionaries to use better sources
from http://j3e.de/hunspell/ [#141750]
-------------------------------------------------------------------
Fri Jan 13 22:30:13 CET 2006 - pmladek@suse.cz
- updated dictionaries: African, Faroese, German, Mexican, Polish, Romanian,
Slovak, Spanish, Swiss, Ukrainian
- added dictionaries: Chichewa, Latvian, Macedonian, Argentine Spanish,
Bolivian Spanish, Chilean Spanish, Colombian Spanish, Costa Rican Spanish,
Dominican Spanish, Ecuadorian Spanish, Guatemalan Spanish, Honduran Spanish,
Nicaraguan Spanish, Panamanian Spanish, Peruvian Spanish,
Puerto Rican Spanish, Paraguayan Spanish, Uruguayan Spanish,
Venezuelan Spanish,
-------------------------------------------------------------------
Wed Jul 27 19:00:32 CEST 2005 - pmladek@suse.cz
- updated dictionaries: British, Danish, Dutch, Faroese, German, Irish,
Italian, Norwegian Bokmaal, Polish, Romanian, Slovak, Spanish
- added dictionaries: Scottish Gaelic, Galician
-------------------------------------------------------------------
Fri Feb 18 16:49:46 CET 2005 - pmladek@suse.cz
- added Estonian dictionary
-------------------------------------------------------------------
Tue Feb 8 18:41:17 CET 2005 - pmladek@suse.cz
- updated dictionaries: Danish, French, German, Greek, Irish, Italian, Malay,
Mexican, Norwegian Bokmaal, Norwegian Nynorsk, and Spanish
- added dictionaries: Bulgarian, Hebrew, Kinyarwanda, Kiswahili, Kurdish,
Lithuanian, Malagasy, Setswana, Tagalog, and Zulu
-------------------------------------------------------------------
Tue Feb 1 13:42:23 CET 2005 - pmladek@suse.cz
- recoded README files to UTF-8; added recode to neededforbuild [#50106]
-------------------------------------------------------------------
Mon Aug 30 19:19:42 CEST 2004 - pmladek@suse.cz
- updated dictionaries: American, Danish, German, Greek, Italian, Russian,
Spanish
- added dictionaries: African, Austrian, Brazilian, Croatian, Faroese,
Indonese, Irish, Malay, Maory, Mexican, New Zealand, Romanian, Ukrainian,
Welsh
- removed obsolete patch for American dictionary
-------------------------------------------------------------------
Thu Aug 5 17:14:01 CEST 2004 - pmladek@suse.cz
- added former Ximian's packages to Provides
-------------------------------------------------------------------
Tue Jun 29 12:58:32 CEST 2004 - pmladek@suse.cz
- added triggerin and postun scripts to solve links to OpenOffice_org;
this solution replaces the old one with SuSEconfig and is usable
in Ximian's products
-------------------------------------------------------------------
Fri Mar 05 20:58:14 CET 2004 - pmladek@suse.cz
- updated all dictionaries to the latest available version
- the russian dictionary has been get from
ftp://scon155.phys.msu.su/pub/russian/ispell/myspell/ becase of the repacked
package on http://lingucomponent.openoffice.org/spell_dic.html does not
contain license file
-------------------------------------------------------------------
Mon Feb 23 14:14:14 CET 2004 - hmacht@suse.de
- building as non-root
-------------------------------------------------------------------
Mon Sep 1 16:12:26 CEST 2003 - pmladek@suse.cz
- added myspell-german-dictionary to Provides of myspell-german
- added myspell-german-old to Conflicts of myspell-german [#29591]
- cleaned up neededforbuild
-------------------------------------------------------------------
Wed Jul 30 09:47:19 CEST 2003 - pmladek@suse.cz
- each dictionary provides "myspell-dictionary" now [#26290]
-------------------------------------------------------------------
Tue Jul 29 20:54:30 CEST 2003 - pmladek@suse.cz
- new source package for myspell dictionaries, version 20030729
- branched from the OpenOffice_org source package [#26290]
- added american dictionary
- updated nswiss, german, spanish, italian and swedish dictionary
- added small fix from OOo sources to the american dictionary
- installed dictionaries into /usr/share/myspell to be usable with mozilla
as well
- removed dependencies on OpenOffice_org
- changed rpm group from "Productivity/Office/Suite" to
"Productivity/Text/Spell"
- fixed labels and descriptions
- marked packages as noarch

5813
myspell-dictionaries.spec Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,129 @@
#
# spec file for package myspell-dictionaries.spec
#
# Copyright (c) 2019 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
###################################################################
## @DO_NOT_EDIT_COMMENT@
## Generate: sh update.sh
###################################################################
Name: myspell-dictionaries
Version: @VERSION@
Release: 0
Summary: A Source Package for Dictionaries Used by MySpell
License: AGPL-3.0-only 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-only AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only AND GPL-3.0-or-later AND LGPL-2.0-only AND LGPL-2.1-only AND LGPL-2.1-or-later AND LGPL-3.0-only AND LGPL-3.0-or-later AND MPL-1.1
URL: https://cgit.freedesktop.org/libreoffice/dictionaries/
Source0: dictionaries.tar.xz
Source1: update.sh
Source2: myspell-dictionaries.spec.in
# es.{dic,aff} are declared to provide es_<LANG>, but es also
# contains es_<LANG>.{aff,dic}, which provide them as well
# workaround, applied in update.sh
Source3: es-remove-duplicate-locales.diff
BuildRequires: dos2unix
BuildRequires: xz
Obsoletes: libreoffice-thesaurus-bg
Obsoletes: libreoffice-thesaurus-ca
Obsoletes: libreoffice-thesaurus-cs
Obsoletes: libreoffice-thesaurus-da
Obsoletes: libreoffice-thesaurus-de
Obsoletes: libreoffice-thesaurus-de-AT
Obsoletes: libreoffice-thesaurus-de-CH
Obsoletes: libreoffice-thesaurus-el
Obsoletes: libreoffice-thesaurus-en-AU
Obsoletes: libreoffice-thesaurus-en-GB
Obsoletes: libreoffice-thesaurus-en-US
Obsoletes: libreoffice-thesaurus-es
Obsoletes: libreoffice-thesaurus-es-AR
Obsoletes: libreoffice-thesaurus-es-VE
Obsoletes: libreoffice-thesaurus-fr
Obsoletes: libreoffice-thesaurus-ga
Obsoletes: libreoffice-thesaurus-hu
Obsoletes: libreoffice-thesaurus-it
Obsoletes: libreoffice-thesaurus-nb
Obsoletes: libreoffice-thesaurus-ne
Obsoletes: libreoffice-thesaurus-pl
Obsoletes: libreoffice-thesaurus-pt
Obsoletes: libreoffice-thesaurus-ro
Obsoletes: libreoffice-thesaurus-ru
Obsoletes: libreoffice-thesaurus-sk
Obsoletes: libreoffice-thesaurus-sl
Obsoletes: libreoffice-thesaurus-sv
Obsoletes: libreoffice-hyphen
Obsoletes: myspell-african
Obsoletes: myspell-albanian
Obsoletes: myspell-armenian
Obsoletes: myspell-assamese
Obsoletes: myspell-asturian
Obsoletes: myspell-chichewa
Obsoletes: myspell-coptic
Obsoletes: myspell-esperanto
Obsoletes: myspell-faroese
Obsoletes: myspell-friulian
Obsoletes: myspell-gaelic-scots
Obsoletes: myspell-haitian
Obsoletes: myspell-indonese
Obsoletes: myspell-irish
Obsoletes: myspell-kazakh
Obsoletes: myspell-khmer
Obsoletes: myspell-kichwa
Obsoletes: myspell-kikuyu
Obsoletes: myspell-kinyarwanda
Obsoletes: myspell-korean
Obsoletes: myspell-kurdish
Obsoletes: myspell-latin
Obsoletes: myspell-lower-sorbian
Obsoletes: myspell-macedonian
Obsoletes: myspell-maithili
Obsoletes: myspell-malagasy
Obsoletes: myspell-malay
Obsoletes: myspell-malayalam
Obsoletes: myspell-maory
Obsoletes: myspell-marathi
Obsoletes: myspell-ndebele
Obsoletes: myspell-new-zealand
Obsoletes: myspell-persian
Obsoletes: myspell-setswana
Obsoletes: myspell-sotho-northern
Obsoletes: myspell-swati
Obsoletes: myspell-swedish-finland
Obsoletes: myspell-tagalog
Obsoletes: myspell-tsonga
Obsoletes: myspell-venda
Obsoletes: myspell-welsh
Obsoletes: myspell-xhosa
Obsoletes: myspell-yiddish
%description
This source package contains dictionaries for MySpell.
The MySpell spell-checker is used by the Libreoffice office suite,
the Mozilla Composer, and the Mozilla Mail message composition window.
@METADATA@
%prep
%setup -q -n dictionaries
%build
%install
@INSTALL@
%files
@FILES@
%changelog

591
update.sh Normal file
View File

@ -0,0 +1,591 @@
#!/bin/bash
# DOWNLOAD='no' when testing this script or spec.in
DOWNLOAD='yes'
GIT_DIR='dictionaries'
VERBOSE='yes'
DATADIR="/usr/share"
DOCDIR="/usr/share/doc/packages"
DIC_DIR="hunspell"
HYPH_DIR="hyphen"
TH_DIR="mythes"
COMPAT_DIR="myspell"
LO_DIR="%{_libdir}/libreoffice"
LODATA_DIR="$LO_DIR/share"
LOEXT_DIR="$LODATA_DIR/extensions"
declare -A provides_map=(
["myspell-af_ZA"]="myspell-african"
["myspell-ar"]="myspell-arabic"
["myspell-be_BY"]="myspell-belarusian"
["myspell-bg_BG"]="myspell-bulgarian libreoffice-thesaurus-bg"
["myspell-bn_BD"]="myspell-bengali"
["myspell-br_FR"]="myspell-breton"
["myspell-ca"]="myspell-catalan libreoffice-thesaurus-ca"
["myspell-ca_ES_valencia"]="myspell-valencian"
["myspell-cs_CZ"]="myspell-czech libreoffice-thesaurus-cs"
["myspell-da_DK"]="myspell-danish libreoffice-thesaurus-da"
["myspell-de_DE"]="myspell-german"
["myspell-de_AT"]="myspell-austrian"
["myspell-de_CH"]="myspell-nswiss"
["myspell-el_GR"]="myspell-greek libreoffice-thesaurus-el"
["myspell-en_US"]="myspell-american libreoffice-thesaurus-US"
["myspell-en_GB"]="myspell-british libreoffice-thesaurus-en-GB"
["myspell-en_ZA"]="myspell-south-african-english"
["myspell-en_AU"]="myspell-australian libreoffice-thesaurus-en-AU"
["myspell-en_NZ"]="myspell-new-zaeland"
["myspell-en_CA"]="myspell-canadian"
["myspell-es_UY"]="myspell-spanish-uruguayan"
["myspell-es_HN"]="myspell-spanish-honduran"
["myspell-es_GT"]="myspell-spanish-guatemalan"
["myspell-es_CO"]="myspell-spanish-colombian"
["myspell-es_CL"]="myspell-spanish-chilean"
["myspell-es_VE"]="myspell-spanish-venezuelan"
["myspell-es_CR"]="myspell-spanish-costa-rican"
["myspell-es_BO"]="myspell-spanish-bolivian"
["myspell-es_MX"]="myspell-mexican"
["myspell-es_SV"]="myspell-spanish-salvadorean"
["myspell-es_PA"]="myspell-spanish-panamanian"
["myspell-es_PE"]="myspell-spanish-peruvian"
["myspell-es_EC"]="myspell-spanish-ecuadorian"
["myspell-es_DO"]="myspell-spanish-dominican"
["myspell-es_PR"]="myspell-spanish-puerto-rican"
["myspell-es_AR"]="myspell-spanish-argentine"
["myspell-es_NI"]="myspell-spanish-nicaraguan"
["myspell-es_PY"]="myspell-spanish-paraguayan"
["myspell-es_ES"]="myspell-spanish"
["myspell-et_EE"]="myspell-estonian"
["myspell-fr_FR"]="myspell-french libreoffice-thesaurus-fr"
["myspell-gd_GB"]="myspell-gaelic"
["myspell-gl"]="myspell-galician"
["myspell-gu_IN"]="myspell-gujarati"
["myspell-he_IL"]="myspell-hebrew"
["myspell-hi_IN"]="myspell-hindi"
["myspell-hr_HR"]="myspell-croatian"
["myspell-hu_HU"]="myspell-hungarian libreoffice-thesaurus-hu"
["myspell-is"]="myspell-icelandic"
["myspell-it_IT"]="myspell-italian libreoffice-thesaurus-it"
["myspell-lt_LT"]="myspell-lithuanian"
["myspell-lv_LV"]="myspell-latvian"
["myspell-nl_NL"]="myspell-dutch"
["myspell-nb_NO"]="myspell-norsk-bokmaal"
["myspell-nn_NO"]="myspell-norsk-nynorsk"
["myspell-oc_FR"]="myspell-occitan-lengadocian"
["myspell-pl_PL"]="myspell-polish libreoffice-thesaurus-pl"
["myspell-pt_BR"]="myspell-brazilian libreoffice-thesaurus-pt"
["myspell-pt_PT"]="myspell-portuguese"
["myspell-ro"]="myspell-romanian libreoffice-thesaurus-ro"
["myspell-ru_RU"]="myspell-russian libreoffice-thesaurus-ru"
["myspell-si_LK"]="myspell-sinhala"
["myspell-sk_SK"]="myspell-slovak libreoffice-thesaurus-sk"
["myspell-sl_SI"]="myspell-slovene libreoffice-thesaurus-sl"
["myspell-sr"]="myspell-serbian-latin myspell-serbian-cyrillic"
["myspell-sv_SE"]="myspell-swedish libreoffice-thesaurus-sv"
["myspell-sw_TZ"]="myspell-kiswahili"
["myspell-th_TH"]="myspell-thai"
["myspell-uk_UA"]="myspell-ukrainian"
["myspell-vi"]="myspell-vietnamese"
["myspell-zu_ZA"]="myspell-zulu"
)
declare -A recommends_map=(
["myspell-de"]="myspell-de_DE"
["myspell-en"]="myspell-en_US"
["myspell-es"]="myspell-es_ES"
["myspell-ro"]="myspell-ro_RO"
["myspell-no"]="myspell-nb_NO"
["myspell-vi"]="myspell-vi_VN"
)
# directories under $GIT_DIR, which holds dictionaries
function directories()
{
ls $GIT_DIR/*/dictionaries.xcu | sed -e 's:dictionaries/::' -e 's:/dictionaries.xcu::' | tr '\n' ' '
}
# create central mapping dir <-> locales <-> files
function locale_to_file_map()
{
cd $GIT_DIR
rm -f locale_to_file_map.txt
for dir in $dirs; do
cat $dir/dictionaries.xcu \
| grep -v '<!--' \
| grep -A1 'Locations\|Locales' \
| grep -v '\-\-\|Locations\|Locales' \
| sed s:%origin%:$dir:g \
| sed 's:<it>: :g' \
| sed 's:</it>: :g' \
| sed 's:.*<value>\(.*\)</value>.*:\1:' \
| while read files; do
read locs
locs=`echo $locs | tr '-' '_'`
echo $dir: $locs @ $files >> locale_to_file_map.txt
done
done
# add idx files for every dat (where doesn't exist)
# we will generate them
sed -i '/\.idx/!s/\([^ ]*\)\.dat/\1.dat \1.idx/g' locale_to_file_map.txt
cd ..
}
# for given dir: which locales provides
function dir_locales()
{
dir=$1
grep "^$dir:" $GIT_DIR/locale_to_file_map.txt | sed 's/.*: //' | sed 's/ @.*//' | tr ' ' '\n' | sort -u | tr '\n' ' '
}
# for given dir: which dictionary relevant files (dic, aff, th*, hyph*) provides
function dir_files()
{
dir=$1
grep "$dir:" $GIT_DIR/locale_to_file_map.txt | sed 's:.*@ ::' | tr ' ' '\n' | sort -u | tr '\n' ' '
}
# for given dictionary file: which locales provides
function file_locales()
{
file=$1
# there should be only one occurence of a file in locale_to_file_map.txt
grep $file $GIT_DIR/locale_to_file_map.txt | sed -e 's/.*: //' -e 's/@.*//'
}
# for given dir: description of the dictionary
function description()
{
dir=$1
grep '<name lang="en.*">' dictionaries/$dir/description.xml | sed -e 's:.*<name lang="en.*">::' -e 's:</name>.*::' | tr '\n' ' ' | sed 's:[ \t]*$::' | sed 's:\.$::'
}
# all thesaurus dat files
function dat_files()
{
grep '\.dat' $GIT_DIR/locale_to_file_map.txt | sed 's:.* \([^ ]\+\.dat\).*:\1:'
}
# for dat file return corresponding idx file name
function idx_file()
{
dat_file=$1
grep "$dat_file" $GIT_DIR/locale_to_file_map.txt | sed 's:.* \([^ ]\+\.idx\).*:\1:'
}
# arch package?
function have_lightproof()
{
dir=$1
[ -f $GIT_DIR/$dir/Lightproof.py ]
}
# figure out install path for given file name
function install_path()
{
filename=$1
install_dir=""
# *.dic, *.aff
if [[ $filename =~ \.dic$ ]] || [[ $filename =~ \.aff$ ]]; then
if [[ $filename =~ ^hyph ]]; then
install_dir="$DATADIR/$HYPH_DIR"
else
install_dir="$DATADIR/$DIC_DIR"
fi
fi
# th*.dat, th*.idx
if [[ $filename =~ th.*\.dat ]] || [[ $filename =~ th.*\.idx ]]; then
install_dir="$DATADIR/$TH_DIR"
fi
echo "$install_dir/$filename"
}
function install_regular()
{
src=$1
dst=$2
sed -i "s#@INSTALL@#cp -P $src %{buildroot}$dst\n@INSTALL@#" myspell-dictionaries.spec
}
function install_regular_recursive()
{
src=$1
dst=$2
sed -i "s#@INSTALL@#cp -rP $src %{buildroot}$dst\n@INSTALL@#" myspell-dictionaries.spec
}
function install_link()
{
targ=$1
name=$2
sed -i "s#@INSTALL@#ln -s $targ %{buildroot}$name\n@INSTALL@#" myspell-dictionaries.spec
}
function install_dir()
{
dirname=$1
sed -i "s#@INSTALL@#mkdir -p %{buildroot}$dirname\n@INSTALL@#" myspell-dictionaries.spec
}
function add_files()
{
filelist=$1
sed -i "s#@FILES@#%defattr(-,root,root,-)\n@FILES@#" myspell-dictionaries.spec
for f in $filelist; do
f=$(echo $f | sed 's:%dir_:%dir :')
sed -i "s#@FILES@#$f\n@FILES@#" myspell-dictionaries.spec
done
}
function package_files()
{
pname=$1
filelist=$2
sed -i "s#@FILES@#%files -n $pname\n@FILES@#" myspell-dictionaries.spec
add_files "$filelist"
sed -i "s#@FILES@#\n@FILES@#" myspell-dictionaries.spec
}
function package_metadata()
{
locale=$1
dir=$2
requires=$3
desc=$(description $dir)
sum="MySpell $locale Dictionary"
sed -i "s#@METADATA@#%package -n myspell-$locale\n@METADATA@#" myspell-dictionaries.spec
sed -i "s#@METADATA@#Summary: $sum\n@METADATA@#" myspell-dictionaries.spec
sed -i "s#@METADATA@#Requires: myspell-dictionaries\n@METADATA@#" myspell-dictionaries.spec
sed -i "s#@METADATA@#Provides: myspell-dictionary\n@METADATA@#" myspell-dictionaries.spec
sed -i "s#@METADATA@#Provides: locale(libreoffice:$locale)\n@METADATA@#" myspell-dictionaries.spec
sed -i "s#@METADATA@#Provides: locale(seamonkey-spellchecker:$locale)\n@METADATA@#" myspell-dictionaries.spec
for p in ${provides_map["myspell-$locale"]}; do
sed -i "s#@METADATA@#Provides: $p\n@METADATA@#" myspell-dictionaries.spec
done
if [ "$locale" != "$dir" ]; then
# require main language subpackage; note that e. g. myspell-te_IN is main language package
# and myspell-te is language subpackage; drawback of splitting
sed -i "s#@METADATA@#Requires: myspell-$dir\n@METADATA@#" myspell-dictionaries.spec
fi
for req in $requires; do
sed -i "s#@METADATA@#Requires: myspell-$req\n@METADATA@#" myspell-dictionaries.spec
done
for p in ${recommends_map["myspell-$locale"]}; do
sed -i "s#@METADATA@#Recommends: $p\n@METADATA@#" myspell-dictionaries.spec
done
sed -i "s#@METADATA@#BuildArch: noarch\n@METADATA@#" myspell-dictionaries.spec
if have_lightproof $dir; then
sed -i "s#@METADATA@#Recommends: myspell-lightproof-$dir\n@METADATA@#" myspell-dictionaries.spec
fi
sed -i "s#@METADATA@#\n@METADATA@#" myspell-dictionaries.spec
sed -i "s#@METADATA@#%description -n myspell-$locale\n@METADATA@#" myspell-dictionaries.spec
sed -i "s#@METADATA@#$desc.\n@METADATA@#" myspell-dictionaries.spec
sed -i "s#@METADATA@#\n@METADATA@#" myspell-dictionaries.spec
}
function lightproof_package_metadata()
{
dir=$1
sed -i "s#@METADATA@#%package -n myspell-lightproof-$dir\n@METADATA@#" myspell-dictionaries.spec
sed -i "s#@METADATA@#Summary: Lightproof for $dir\n@METADATA@#" myspell-dictionaries.spec
sed -i "s#@METADATA@#Requires: myspell-$dir\n@METADATA@#" myspell-dictionaries.spec
sed -i "s#@METADATA@#\n@METADATA@#" myspell-dictionaries.spec
sed -i "s#@METADATA@#\n@METADATA@#" myspell-dictionaries.spec
sed -i "s#@METADATA@#%description -n myspell-lightproof-$dir\n@METADATA@#" myspell-dictionaries.spec
sed -i "s#@METADATA@#Lightproof grammar checker information for $dir.\n@METADATA@#" myspell-dictionaries.spec
sed -i "s#@METADATA@#\n@METADATA@#" myspell-dictionaries.spec
}
function finish_spec()
{
sed -i "s:@METADATA@::" myspell-dictionaries.spec
sed -i "s:@INSTALL@::" myspell-dictionaries.spec
sed -i "s:@FILES@::" myspell-dictionaries.spec
[ -x /usr/bin/spec-cleaner ] && spec-cleaner -i myspell-dictionaries.spec
}
#
# prerequisites
#
if [ ! -x /usr/bin/th_gen_idx.pl ]; then
echo "ERROR: /usr/bin/th_gen_idx.pl not found"
echo "Install mythes-devel package."
exit 1
fi
#
# prepare 'dictionaries' directory
#
# download present git version, remove .git, unify layout
if [ $DOWNLOAD == "yes" ]; then
echo '--- Download current git version'
rm -rf $GIT_DIR
git clone --depth 30 https://github.com/LibreOffice/$GIT_DIR.git
pushd $GIT_DIR
git log > ../REMOVE_GIT_LOG
popd
rm -rf $GIT_DIR/.git
# exceptions >>>>>>>>>>>>>>>>>>>>>
pushd $GIT_DIR
for dir in ca; do
pushd $dir
cp --force dictionaries/* .
sed -i 's:dictionaries/::' dictionaries.xcu
popd
done
# bug 914911 comment 10 ---
# - gl: consistent file naming
pushd gl
for ext in aff dic; do
mv gl_ES.$ext gl.$ext
sed -i "s:gl_ES.$ext:gl.$ext:" dictionaries.xcu
done
popd
# - de: remove _frami from filenames
pushd de
for var in AT CH DE; do
for ext in aff dic; do
mv de_${var}_frami.$ext de_${var}.$ext
sed -i "s:de_${var}_frami.$ext:de_${var}.$ext:" dictionaries.xcu
done
done
# remove hyph_de.dic, th_de_v2.dat, th_de_v2.idx links to
# hyph_de_DE.dic, th_de_DE_v2.dat, th_de_DE_v2.idx
sed -i 's:>de :>:' dictionaries.xcu
popd
# -ca: rename ca-valencia.{aff,dic} to ca_ES_valencia.{aff,dic}
pushd ca
for ext in aff dic; do
mv ca-valencia.$ext ca_ES_valencia.$ext
sed -i "s:ca-valencia.$ext:ca_ES_valencia.$ext:" dictionaries.xcu
done
popd
# -------------------------
# es.{dic,aff} are declared to provide es_<LANG>, but es also
# contains es_<LANG>.{aff,dic}, which provide them as well
pushd es
patch < ../../es-remove-duplicate-locales.diff
popd
popd
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
date=`date +%Y%m%d`
elif [ ! -e $GIT_DIR ]; then
echo "ERROR: DOWNLOAD=$DOWNLOAD and '$GIT_DIR' does not exist"
echo "Run quilt setup or so."
exit 1
else
echo "--- Do not download, using '$GIT_DIR'"
date=`rpmspec -q --qf "%{VERSION}\n" *.spec | head -n 1`
fi
# create dir <-> locales <-> files mapping
# in $GIT_DIR/locale_to_file_map.txt
dirs=$(directories)
[ "$VERBOSE" == "yes" ] && echo directiories: $dirs
locale_to_file_map
# create *.idx files from *.dat files
echo '--- Creating idx files'
for datf in $(dat_files); do
idxf=$(idx_file $datf)
[ "$VERBOSE" == "yes" ] && echo "th_gen_idx.pl < $GIT_DIR/$datf > $GIT_DIR/$idxf"
th_gen_idx.pl < $GIT_DIR/$datf > $GIT_DIR/$idxf
if [ $? -ne 0 ]; then
echo "ERROR: failed th_gen_idx.pl -o $GIT_DIR/$idxf < $GIT_DIR/$datf"
exit 1
fi
done
#
# generate myspell-dictionaries.spec
#
echo '--- Generating spec file'
cp myspell-dictionaries.spec.in myspell-dictionaries.spec
sed -i "s:@DO_NOT_EDIT_COMMENT@:DO NOT EDIT THIS SPEC FILE:" myspell-dictionaries.spec
sed -i "s:@VERSION@:$date:" myspell-dictionaries.spec
# install main directories
dir_filelist=""
for d in $DATADIR/$DIC_DIR $DATADIR/$HYPH_DIR $DATADIR/$TH_DIR \
$DATADIR/$COMPAT_DIR $LO_DIR $LODATA_DIR $LOEXT_DIR; do
[ "$VERBOSE" == "yes" ] && echo "installing $DATADIR/$d"
install_dir $d
dir_filelist="$dir_filelist %dir_$d"
done
add_files "$dir_filelist"
# install dictionary files
for dir in $dirs; do
files=$(dir_files $dir)
# clear and declare filelist associative array
unset filelist
unset requires
declare -A filelist
declare -A requires
[ "$VERBOSE" == "yes" ] && echo "DICTIONARY: $dir ($files)"
for file in $files; do
file_into_main_package=1
fname=`basename $file`
locales=$(file_locales $file)
reg_file_locale=""
[ "$VERBOSE" == "yes" ] && echo " $file: $locales"
for locale in $locales; do
# work around which is bug imho in dictionaries.xcu.
# It references file that doesn't exist.
if [ ! -e "$GIT_DIR/$dir/$fname" ]; then
[ "$VERBOSE" == "yes" ] && echo "WARNING: $GIT_DIR/$dir/$fname doesn't exist"
continue
fi
prefix=""
version=""
if [[ $fname == th* ]]; then
# nice collision with th_ for thesaurus
if [ "$fname" != "th_TH.aff" ] && [ "$fname" != "th_TH.dic" ]; then
prefix="th_"
# it seems suffix have to be _v2, even if target is named _v3 :)
version='_v2'
fi
fi
if [[ $fname == hyph* ]]; then
prefix="hyph_"
fi
ext=`echo $fname | sed 's:.*\.::'`
linkname=$prefix$locale$version.$ext
[ "$VERBOSE" == "yes" ] && echo -n " link: $linkname -> $fname .. "
# regular file for this locale/extension exists yet,
# do not create symlink
if [ -f $GIT_DIR/$dir/$linkname ]; then
[ "$VERBOSE" == "yes" ] &&
echo "regular file exists yet, not creating link"
# should file go to language sub-subpackage?
# if not, it will be installed later (search for ***)
if [ "$locale" != "$dir" ]; then
file_into_main_package=0
# bug 914911 comment 10
# the assumption is, that locale for regular file
# is listed first in <value></value> @ dictionaries.xcu
reg_file_locale="$locale"
ipath=$(install_path $linkname)
[ "$VERBOSE" == "yes" ] &&
echo " install: $ipath (myspell-dictionaries-$locale)"
install_regular $dir/$linkname $ipath
filelist[$locale]="${filelist[$locale]} $ipath"
compat_link="$DATADIR/$COMPAT_DIR/$linkname"
[ "$VERBOSE" == "yes" ] &&
echo " compat link install: $compat_link -> $ipath"
install_link $ipath $compat_link
filelist[$locale]="${filelist[$locale]} $compat_link"
fi
continue;
fi
# regular file $linkname does not exist yet, create symlink
[ "$VERBOSE" == "yes" ] && echo "created"
lipath=$(install_path $linkname)
ripath=$(install_path $fname)
[ "$VERBOSE" == "yes" ] &&
echo " link install: $lipath -> $ripath (myspell-dictionaries-$locale)"
install_link $ripath $lipath
# bug 914911 comment 10
# the assumption is, that locale for regular file
# is listed first in <value></value> @ dictionaries.xcu
if [ ! -z "$reg_file_locale" ]; then
if ! [[ ${requires[$locale]} =~ $reg_file_locale ]]; then
[ "$VERBOSE" == "yes" ] &&
echo " => myspell-$locale depends on myspell-$reg_file_locale"
requires[$locale]="${requires[$locale]} $reg_file_locale"
fi
fi
filelist[$locale]="${filelist[$locale]} $lipath"
compat_link=$DATADIR/$COMPAT_DIR/$linkname
[ "$VERBOSE" == "yes" ] &&
echo " compat link install: $compat_link -> $lipath"
install_link $lipath "$compat_link"
filelist[$locale]="${filelist[$locale]} $compat_link"
done
# regular file to the main language subpackage if it is not in
# some its sub-subpackages (search for ***)
if [ $file_into_main_package -eq 1 ]; then
ipath=$(install_path $fname)
[ "$VERBOSE" == "yes" ] &&
echo " install: $ipath (myspell-dictionaries-$dir)"
install_regular $file $ipath
filelist[$dir]="${filelist[$dir]} $ipath"
compat_link="$DATADIR/$COMPAT_DIR/$fname"
[ "$VERBOSE" == "yes" ] &&
echo " compat link install: $compat_link -> $ipath"
install_link $ipath $compat_link
filelist[$dir]="${filelist[$dir]} $compat_link"
fi
done
# install lightproof files
if have_lightproof $dir; then
lightproof_files=`find $GIT_DIR/$dir -maxdepth 1 -name 'pythonpath' -o -name 'dialog' -o -name 'Lightproof*' -o \
-name 'Linguistic.xcu' -o -name 'META-INF' -o -name 'icons' -o \
-name 'description.xml'`
install_dir "$LOEXT_DIR/lightproof-$dir"
lightproof_filelist="%dir_$LOEXT_DIR/lightproof-$dir"
for f in $lightproof_files; do
ipath="$LOEXT_DIR/lightproof-$dir/`basename $f`"
install_regular_recursive $dir/`basename $f` $ipath
lightproof_filelist="$lightproof_filelist $ipath"
done
fi
# install doc files
doc_files=`find $GIT_DIR/$dir -maxdepth 1 -type f | grep '.txt\|.xcu\|.xml\|.png\|.tex\|^[^.]*$' || true`
install_dir "$DOCDIR/myspell-$dir"
filelist[$dir]="${filelist[$dir]} %dir_$DOCDIR/myspell-$dir"
for f in $doc_files; do
ipath="$DOCDIR/myspell-$dir/`basename $f`"
install_regular $dir/`basename $f` $ipath
filelist[$dir]="${filelist[$dir]} $ipath"
done
# write rpm subpackage information
for pkg in "${!filelist[@]}"; do
package_metadata $pkg $dir "${requires[$pkg]}"
package_files myspell-$pkg "${filelist[$pkg]}"
done
if have_lightproof $dir; then
lightproof_package_metadata $dir
package_files myspell-lightproof-$dir "$lightproof_filelist"
fi
done
finish_spec
#
# creating source archive
#
if [ $DOWNLOAD == "yes" ]; then
echo '--- Creating archive'
tar cJf dictionaries.tar.xz dictionaries
rm -r dictionaries
fi
echo --- Done
#
# advice at the end ..
#
echo
echo With osc diff, figure out if there is a new package.
echo If yes, add its license in License: tag of both
echo *.spec and *.spec.in
echo if this license is not there yet.
echo