2010-04-08 12:36:00 +02:00
|
|
|
#
|
2011-05-27 11:27:43 +02:00
|
|
|
# spec file for package myspell-dictionaries
|
2010-04-08 12:36:00 +02:00
|
|
|
#
|
2012-04-12 09:42:27 +02:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-04-08 12:36:00 +02:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2014-04-18 09:42:36 +02:00
|
|
|
###################################################################
|
|
|
|
## @DO_NOT_EDIT_COMMENT@
|
|
|
|
## Generate: sh update.sh
|
|
|
|
###################################################################
|
2012-04-12 09:42:27 +02:00
|
|
|
Name: myspell-dictionaries
|
2014-04-18 09:42:36 +02:00
|
|
|
Version: @VERSION@
|
2012-04-12 09:42:27 +02:00
|
|
|
Release: 0
|
2010-04-08 12:36:00 +02:00
|
|
|
Summary: A Source Package for Dictionaries Used by MySpell
|
2014-04-18 09:42:36 +02:00
|
|
|
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
|
2012-04-12 09:42:27 +02:00
|
|
|
Group: Productivity/Text/Spell
|
2014-04-18 09:42:36 +02:00
|
|
|
Url: http://cgit.freedesktop.org/libreoffice/dictionaries/
|
|
|
|
Source0: dictionaries.tar.xz
|
2014-09-12 14:04:16 +02:00
|
|
|
Source1: update.sh
|
|
|
|
Source2: myspell-dictionaries.spec.in
|
2012-04-12 09:42:27 +02:00
|
|
|
BuildRequires: dos2unix
|
2014-05-20 16:16:14 +02:00
|
|
|
BuildRequires: xz
|
2012-04-12 09:42:27 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-04-18 09:42:36 +02:00
|
|
|
Obsoletes: myspell-african
|
|
|
|
Obsoletes: myspell-albanian
|
|
|
|
Obsoletes: myspell-american
|
|
|
|
Obsoletes: myspell-arabic
|
|
|
|
Obsoletes: myspell-armenian
|
|
|
|
Obsoletes: myspell-assamese
|
|
|
|
Obsoletes: myspell-asturian
|
|
|
|
Obsoletes: myspell-australian
|
|
|
|
Obsoletes: myspell-austrian
|
|
|
|
Obsoletes: myspell-belarusian
|
|
|
|
Obsoletes: myspell-bengali
|
|
|
|
Obsoletes: myspell-brazilian
|
|
|
|
Obsoletes: myspell-breton
|
|
|
|
Obsoletes: myspell-british
|
|
|
|
Obsoletes: myspell-bulgarian
|
|
|
|
Obsoletes: myspell-canadian
|
|
|
|
Obsoletes: myspell-catalan
|
|
|
|
Obsoletes: myspell-chichewa
|
|
|
|
Obsoletes: myspell-coptic
|
|
|
|
Obsoletes: myspell-croatian
|
|
|
|
Obsoletes: myspell-czech
|
|
|
|
Obsoletes: myspell-danish
|
|
|
|
Obsoletes: myspell-dutch
|
|
|
|
Obsoletes: myspell-esperanto
|
|
|
|
Obsoletes: myspell-estonian
|
|
|
|
Obsoletes: myspell-faroese
|
|
|
|
Obsoletes: myspell-french
|
|
|
|
Obsoletes: myspell-friulian
|
|
|
|
Obsoletes: myspell-gaelic-scots
|
|
|
|
Obsoletes: myspell-galician
|
|
|
|
Obsoletes: myspell-german
|
|
|
|
Obsoletes: myspell-greek
|
|
|
|
Obsoletes: myspell-gujarati
|
|
|
|
Obsoletes: myspell-haitian
|
|
|
|
Obsoletes: myspell-hebrew
|
|
|
|
Obsoletes: myspell-hindi
|
|
|
|
Obsoletes: myspell-hungarian
|
|
|
|
Obsoletes: myspell-icelandic
|
|
|
|
Obsoletes: myspell-indonese
|
|
|
|
Obsoletes: myspell-irish
|
|
|
|
Obsoletes: myspell-italian
|
|
|
|
Obsoletes: myspell-kazakh
|
|
|
|
Obsoletes: myspell-khmer
|
|
|
|
Obsoletes: myspell-kichwa
|
|
|
|
Obsoletes: myspell-kikuyu
|
|
|
|
Obsoletes: myspell-kinyarwanda
|
|
|
|
Obsoletes: myspell-kiswahili
|
|
|
|
Obsoletes: myspell-korean
|
|
|
|
Obsoletes: myspell-kurdish
|
|
|
|
Obsoletes: myspell-latin
|
|
|
|
Obsoletes: myspell-latvian
|
|
|
|
Obsoletes: myspell-lithuanian
|
|
|
|
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-mexican
|
|
|
|
Obsoletes: myspell-ndebele
|
|
|
|
Obsoletes: myspell-new-zealand
|
|
|
|
Obsoletes: myspell-norsk-bokmaal
|
|
|
|
Obsoletes: myspell-norsk-nynorsk
|
|
|
|
Obsoletes: myspell-nswiss
|
|
|
|
Obsoletes: myspell-occitan-lengadocian
|
|
|
|
Obsoletes: myspell-persian
|
|
|
|
Obsoletes: myspell-polish
|
|
|
|
Obsoletes: myspell-portuguese
|
|
|
|
Obsoletes: myspell-romanian
|
|
|
|
Obsoletes: myspell-russian
|
|
|
|
Obsoletes: myspell-serbian-cyrillic
|
|
|
|
Obsoletes: myspell-serbian-latin
|
|
|
|
Obsoletes: myspell-setswana
|
|
|
|
Obsoletes: myspell-sinhala
|
|
|
|
Obsoletes: myspell-slovak
|
|
|
|
Obsoletes: myspell-slovene
|
|
|
|
Obsoletes: myspell-sotho-northern
|
|
|
|
Obsoletes: myspell-south-african-english
|
|
|
|
Obsoletes: myspell-spanish
|
|
|
|
Obsoletes: myspell-spanish-argentine
|
|
|
|
Obsoletes: myspell-spanish-bolivian
|
|
|
|
Obsoletes: myspell-spanish-chilean
|
|
|
|
Obsoletes: myspell-spanish-colombian
|
|
|
|
Obsoletes: myspell-spanish-costa-rican
|
|
|
|
Obsoletes: myspell-spanish-dominican
|
|
|
|
Obsoletes: myspell-spanish-ecuadorian
|
|
|
|
Obsoletes: myspell-spanish-guatemalan
|
|
|
|
Obsoletes: myspell-spanish-honduran
|
|
|
|
Obsoletes: myspell-spanish-nicaraguan
|
|
|
|
Obsoletes: myspell-spanish-panamanian
|
|
|
|
Obsoletes: myspell-spanish-paraguayan
|
|
|
|
Obsoletes: myspell-spanish-peruvian
|
|
|
|
Obsoletes: myspell-spanish-puerto-rican
|
|
|
|
Obsoletes: myspell-spanish-salvadorean
|
|
|
|
Obsoletes: myspell-spanish-uruguayan
|
|
|
|
Obsoletes: myspell-spanish-venezuelan
|
|
|
|
Obsoletes: myspell-swati
|
|
|
|
Obsoletes: myspell-swedish
|
|
|
|
Obsoletes: myspell-swedish-finland
|
|
|
|
Obsoletes: myspell-tagalog
|
|
|
|
Obsoletes: myspell-thai
|
|
|
|
Obsoletes: myspell-tsonga
|
|
|
|
Obsoletes: myspell-ukrainian
|
|
|
|
Obsoletes: myspell-valencian
|
|
|
|
Obsoletes: myspell-venda
|
|
|
|
Obsoletes: myspell-vietnamese
|
|
|
|
Obsoletes: myspell-welsh
|
|
|
|
Obsoletes: myspell-xhosa
|
|
|
|
Obsoletes: myspell-yiddish
|
|
|
|
Obsoletes: myspell-zulu
|
2014-04-25 10:44:32 +02:00
|
|
|
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
|
2010-04-08 12:36:00 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This source package contains dictionaries for MySpell.
|
|
|
|
|
|
|
|
The MySpell spell-checker is used by the OpenOffice.org office suite,
|
|
|
|
the Mozilla Composer, and the Mozilla Mail message composition window.
|
|
|
|
|
|
|
|
@METADATA@
|
|
|
|
%prep
|
2014-04-18 09:42:36 +02:00
|
|
|
%setup -q -n dictionaries
|
2010-04-08 12:36:00 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2014-05-06 10:08:19 +02:00
|
|
|
function install_dictionary_files
|
|
|
|
{
|
2014-09-11 15:01:17 +02:00
|
|
|
locale=$1
|
2014-05-06 10:08:19 +02:00
|
|
|
system_dir=$2
|
|
|
|
files=$3
|
|
|
|
|
|
|
|
if [ ! -z "$files" ]; then
|
|
|
|
for file in $files; do
|
|
|
|
# install file
|
|
|
|
cp -P $file %{buildroot}%{_datadir}/$system_dir/
|
|
|
|
# symlink
|
|
|
|
ln -s %{_datadir}/$system_dir/$file %{buildroot}%{_datadir}/$compat_dir/$file
|
|
|
|
# file list
|
2014-09-11 15:01:17 +02:00
|
|
|
echo %{_datadir}/$system_dir/$file >> $locale.list
|
|
|
|
echo %{_datadir}/$compat_dir/$file >> $locale.list
|
2014-05-06 10:08:19 +02:00
|
|
|
done
|
2014-04-18 09:42:36 +02:00
|
|
|
fi
|
2014-05-06 10:08:19 +02:00
|
|
|
}
|
|
|
|
function install_doc_files
|
|
|
|
{
|
2014-09-11 15:01:17 +02:00
|
|
|
locale=$1
|
2014-05-06 10:08:19 +02:00
|
|
|
doc_files=$2
|
2014-04-18 09:42:36 +02:00
|
|
|
dos2unix -q $doc_files
|
2014-09-11 15:01:17 +02:00
|
|
|
install -m 755 -d %{buildroot}%{_docdir}/myspell-$locale
|
|
|
|
install -m 644 `echo $doc_files | tr '\n' ' '` %{buildroot}%{_docdir}/myspell-$locale
|
|
|
|
echo "%{_docdir}/myspell-$locale" >> $locale.list
|
2014-05-06 10:08:19 +02:00
|
|
|
}
|
2014-09-11 15:01:17 +02:00
|
|
|
function install_lightproof_files
|
|
|
|
{
|
|
|
|
locale=$1
|
|
|
|
files=$2
|
2014-09-12 10:54:01 +02:00
|
|
|
dsc_files=$3
|
2014-09-11 15:01:17 +02:00
|
|
|
lightproof_dir=%{_libdir}/libreoffice/share/extensions/lightproof_$locale
|
2014-09-12 10:54:01 +02:00
|
|
|
if [[ "$files" =~ 'Lightproof.py' ]]; then
|
2014-09-11 15:01:17 +02:00
|
|
|
if [ ! -d %{buildroot}$lightproof_dir ]; then
|
|
|
|
mkdir -p %{buildroot}$lightproof_dir
|
|
|
|
echo "%dir %{_libdir}/libreoffice" >> ../common.list
|
|
|
|
echo "%dir %{_libdir}/libreoffice/share" >> ../common.list
|
|
|
|
echo "%dir %{_libdir}/libreoffice/share/extensions" >> ../common.list
|
|
|
|
fi
|
2014-09-12 10:54:01 +02:00
|
|
|
cp -r $files $dsc_files %{buildroot}$lightproof_dir
|
2014-09-11 15:01:17 +02:00
|
|
|
echo $lightproof_dir >> lightproof.$locale.list
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2014-05-06 10:08:19 +02:00
|
|
|
dic_dir="hunspell"
|
|
|
|
hyph_dir="hyphen"
|
|
|
|
th_dir="mythes"
|
|
|
|
compat_dir="myspell"
|
|
|
|
for system_dir in $dic_dir $hyph_dir $th_dir $compat_dir; do
|
|
|
|
install -m 755 -d %{buildroot}%{_datadir}/$system_dir/
|
|
|
|
done
|
2014-09-11 15:01:17 +02:00
|
|
|
echo '%%defattr(-,root,root,-)' > common.list
|
2014-05-06 10:08:19 +02:00
|
|
|
for locale_dir in @LANG_DIRS@ ; do
|
|
|
|
pushd $locale_dir
|
|
|
|
dic_files=`find -maxdepth 1 -name '*.dic' -a ! -name 'hyph*' -o -name '*.aff'`
|
|
|
|
hyph_files=`find -maxdepth 1 -name 'hyph*.dic'`
|
2014-05-06 17:22:24 +02:00
|
|
|
th_files=`find -maxdepth 1 -name 'th*.dat' -o -name 'th*.idx'`
|
2014-05-06 10:08:19 +02:00
|
|
|
doc_files=`find -maxdepth 1 -type f | grep '.txt\|.xcu\|.xml\|.png\|.tex\|^[^.]*$' || true`
|
2014-09-12 10:54:01 +02:00
|
|
|
lightproof_files=`find -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'`
|
2014-05-06 10:08:19 +02:00
|
|
|
# install dictionary files
|
|
|
|
echo '%%defattr(-,root,root,-)' > $locale_dir.list
|
|
|
|
install_dictionary_files $locale_dir $dic_dir "$dic_files"
|
|
|
|
install_dictionary_files $locale_dir $hyph_dir "$hyph_files"
|
|
|
|
install_dictionary_files $locale_dir $th_dir "$th_files"
|
|
|
|
# install documentation
|
2014-09-12 10:54:01 +02:00
|
|
|
install_doc_files $locale_dir "$doc_files"
|
2014-09-11 15:01:17 +02:00
|
|
|
# install lightproof files
|
|
|
|
echo '%%defattr(-,root,root,-)' > lightproof.$locale_dir.list
|
|
|
|
install_lightproof_files $locale_dir "$lightproof_files"
|
2014-05-06 10:08:19 +02:00
|
|
|
popd
|
|
|
|
mv $locale_dir/$locale_dir.list .
|
2014-09-11 15:01:17 +02:00
|
|
|
mv $locale_dir/lightproof.$locale_dir.list .
|
2010-04-08 12:36:00 +02:00
|
|
|
done
|
|
|
|
|
2014-04-18 09:42:36 +02:00
|
|
|
|
2014-09-11 15:01:17 +02:00
|
|
|
%files -f common.list
|
2014-04-18 09:42:36 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_datadir}/hunspell/
|
|
|
|
%dir %{_datadir}/hyphen/
|
|
|
|
%dir %{_datadir}/mythes/
|
2014-05-06 10:08:19 +02:00
|
|
|
%dir %{_datadir}/myspell/
|
2010-04-22 12:57:47 +02:00
|
|
|
|
2010-04-08 12:36:00 +02:00
|
|
|
@FILES@
|
|
|
|
%changelog
|