#
# spec file for package SUNWmyspell-dictionary-l10n
#
# includes module(s): all modules which include l10n files
#
# Copyright (c) 2009 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
#
# http://wiki.services.openoffice.org/wiki/Dictionaries is the front page.
# The URL is changed from
# to
# since RE needs the version number in filenames.
%define s_l_dict_extra bg_BG,ca_ES,da_DK,el_GR,en_AU,en_GB,et_EE,he_IL,hr_HR,lt_LT,lv_LV,nb_NO,nl_NL,nn_NO,pt_PT,ro_RO,sk_SK,sl_SI,th_TH,uk_UA
SUNW_BaseDir: %{_basedir}
## English (United States)
## Afrikaans (South Africa)
## Catalan (Spain)
## Czech (Czech Republic)
## Danish (Denmark)
## German (Germany)
# original URL is http://j3e.de/hunspell/de_DE.zip
## Greek (Greece)
## English (Australia)
# original URL is http://www.justlocal.com.au/clients/oooau/
# Not reviewed yet
## English (United Kingdom)
# original URL is http://en-gb.pyxidium.co.uk/dictionary/en_GB.zip
# Not reviewed yet
#Source8: %dictionary_source/en_GB-2006-11-30.zip
## English (South Africa)
## Spanish (Spain-etal)
## Esperanto (anywhere)
## Estonian (Estonia)
# original URL is:
# The date is taken from openoffice site.
## Faroese (Faroe Islands)
## French (France)
## Irish Gaelic (Ireland)
## Scottish Gaelic (Scotland)
## Galician (Spain)
## Hebrew (Israel)
## Croatian (Croatia)
## Hungarian (Hungary)
# original URL is http://magyarispell.sourceforge.net/hu_HU.zip
## Kurdish (Turkey, Syria)
## Lithuanian (Lithuania)
## Latvian (Latvia)
# original URL is http://sourceforge.net/projects/openoffice-lv/
Source23: http://downloads.sourceforge.net/project/openoffice-lv/openoffice-lv/lv_LV-0.8b1/lv_LV-0.8b1.zip
## Italian (Italy)
## Norwegian Bokmal (Norway)
## Dutch (Netherlands)
## Norwegian Nynorsk (Norway)
## Ndebele (South Africa)
## Northern Sotho (South Africa)
## Polish (Poland)
# original URL is http://pl.openoffice.org/pliki/pl_PL.zip
## Portuguese (Brazil)
## Romanian (Romania)
## Russian (Russia)
## Slovak (Slovakia)
## Slovenian (Slovenia)
## Southern Sotho (South Africa)
## Swedish (Sweden)
# original URL is http://hem.bredband.net/dsso1/sv_SE.zip
## Kiswahili (East Africa)
# Reviewed but source is not available
#Source39: %dictionary_source/sw_KE-2004-05-16.zip
## Thai (Thailand)
## Setswana (Africa)
## Tsonga (South Africa)
## Ukrainian (Ukraine)
## Venda (South Africa)
## Xhosa (South Africa)
## Zulu (Africa)
## German (Switzerland)
## Persian (Iran)
# original URL is http://hunspell.sourceforge.net/fa_IR.tar.bz2
# Source101 - 199 are OOo-spell-*.zip
## Bulgarian (Bulgaria)
# Source201 - 299 are *.oxt
# Source301 - 399 are *.tar.gz
## Armenian (Eastern)
## Portuguese (Portugal)
Source302: http://natura.di.uminho.pt/download/sources/Dictionaries/old/myspell/myspell.pt-20081113.tar.gz
## Manx Gaelic
# Source401 - 499 are *.tar.bz2
# Source501 - 599 are hunspell-*.zip
## Slovak (Slovakia)
#%define GROUP0 %SOURCE0 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 %SOURCE5 %SOURCE6 %SOURCE7 %SOURCE8 %SOURCE9
%define GROUP1 %SOURCE10 %SOURCE11 %SOURCE12 %SOURCE13 %SOURCE14 %SOURCE15 %SOURCE16 %SOURCE17 %SOURCE18 %SOURCE19
%define GROUP2 %SOURCE20 %SOURCE21 %SOURCE22 %SOURCE23 %SOURCE24 %SOURCE25 %SOURCE26 %SOURCE27 %SOURCE28 %SOURCE29
#%define GROUP3 %SOURCE30 %SOURCE31 %SOURCE32 %SOURCE33 %SOURCE34 %SOURCE35 %SOURCE36 %SOURCE37 %SOURCE38 %SOURCE39
%define GROUP3 %SOURCE30 %SOURCE31 %SOURCE32 %SOURCE33 %SOURCE34 %SOURCE35 %SOURCE36 %SOURCE37 %SOURCE38
%define GROUP4 %SOURCE40 %SOURCE41 %SOURCE42 %SOURCE43 %SOURCE44 %SOURCE45 %SOURCE46 %SOURCE47 %SOURCE48
SUNW_BaseDir: %{_basedir}
SUNW_BaseDir: %{_basedir}
SUNW_BaseDir: %{_basedir}
SUNW_BaseDir: %{_basedir}
SUNW_BaseDir: %{_basedir}
SUNW_BaseDir: %{_basedir}
SUNW_BaseDir: %{_basedir}
SUNW_BaseDir: %{_basedir}
SUNW_BaseDir: %{_basedir}
SUNW_BaseDir: %{_basedir}
SUNW_BaseDir: %{_basedir}
SUNW_BaseDir: %{_basedir}
SUNW_BaseDir: %{_basedir}
# Comment out because SUNW_PkgList needs SUNW_Loc.
#SUNW_PkgList: SUNWfirefox,SUNWgnome-spell,SUNWthunderbird
#SUNW_Loc:
%prep
do
*.tar.gz)
;;
*.tar.bz2)
if [ -d fa ] ; then
fi
;;
*.oxt)
cd $DIR
cd ..
;;
;;
gl_ES-??)
;;
hunspell-*)
;;
lt_LT-*.*.*)
;;
cd $DIR
cd ..
do
cd $SUBDIR
cd ..
done
;;
*)
cd $DIR
cd ..
;;
esac
done
# Generating Copyright template...
# SUNWmyspell-dictionary-$ling.copyright can be generated below.
#for ling in cs de en es extra fr hu it pl ru sv
#do
# cat /packages/BUILD/myspell-dictionary-*/copyright-$ling \
# done
do
*)
if [ x"$IS_EXTRA" = x ] ; then
fi
;;
esac
echo "$dir Copyright" >> $copyright
echo "" >> $copyright
echo "" >> $copyright
echo "--------------------------------------------------------------------" \
>> $copyright
echo "" >> $copyright
done
if [ -d "$RPM_BUILD_ROOT" ] ; then
fi
# We don't need hypy_lv_LV.dic and its README file
do
if [ ! -d $RPM_BUILD_ROOT%_myspelldir ] ; then
fi
( \
\
if [ ! -d $RPM_BUILD_ROOT%_thunderbirddir ] ; then \
fi; \
rm -f $BROWSER_FILE && ln -s ../../../..%_myspelldir/$GNOME_FILE $BROWSER_FILE; \
\
if [ ! -d $RPM_BUILD_ROOT%_firefoxdir ] ; then \
fi; \
cd $RPM_BUILD_ROOT%_firefoxdir; \
rm -f $BROWSER_FILE && ln -s ../../../..%_myspelldir/$GNOME_FILE $BROWSER_FILE; \
)
done
do
*) ;;
esac
do
done
done
#rm -f $RPM_BUILD_ROOT/%_myspelldir/en_US.aff
#rm -f $RPM_BUILD_ROOT/%_firefoxdir/en-US.aff
#rm -f $RPM_BUILD_ROOT/%_thunderbirddir/en-US.aff
# The *-en package includes en_US only due to the size of LiveCD.
# en_AU,en_GB are moved to *-extra. en_ZA is moved to *-noinst
#%{_myspelldir}/en_AU.aff
#%{_myspelldir}/en_AU.dic
#%{_myspelldir}/en_GB.aff
#%{_myspelldir}/en_GB.dic
%{_thunderbirddir}/bg-*.aff
%{_thunderbirddir}/bg-*.dic
#%{_thunderbirddir}/en-AU.aff
#%{_thunderbirddir}/en-AU.dic
#%{_thunderbirddir}/en-GB.aff
#%{_thunderbirddir}/en-GB.dic
%{_firefoxdir}/bg-*.aff
%{_firefoxdir}/bg-*.dic
#%{_firefoxdir}/en-AU.aff
#%{_firefoxdir}/en-AU.dic
#%{_firefoxdir}/en-GB.aff
#%{_firefoxdir}/en-GB.dic
#%dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/en_AU
#%{_docdir}/myspell-dictionary/en_AU/*
#%dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/en_GB
#%{_docdir}/myspell-dictionary/en_GB/*
#%{_myspelldir}/sw_*.aff
#%{_myspelldir}/sw_*.dic
#%{_thunderbirddir}/sw-*.aff
#%{_thunderbirddir}/sw-*.dic
#%{_firefoxdir}/sw-*.aff
#%{_firefoxdir}/sw-*.dic
#%dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/sw_KE
#%{_docdir}/myspell-dictionary/sw_KE/*
source location.