specs/SUNWmyspell-dictionary-l10n.spec
author Jon Tibble <meths@btinternet.com>
Sat Oct 06 16:11:50 2012 +0100 (2012-10-06)
branchs11express-2010-11
changeset 22109 db10202d5f6d
parent 17937 664c0536875a
child 20417 e9c5f7dcd975
permissions -rwxr-xr-x
Added tag oi_151a_prestable7 for changeset 25dee50cecca
     1 #
     2 # spec file for package SUNWmyspell-dictionary-l10n
     3 #
     4 # includes module(s): all modules which include l10n files
     5 #
     6 # Copyright (c) 2009 Sun Microsystems, Inc.
     7 # This file and all modifications and additions to the pristine
     8 # package are under the same license as the package itself.
     9 #
    10 %define owner funix
    11 #
    12 %include Solaris.inc
    13 
    14 %define OSR delivered in s10:N/A
    15 
    16 # http://wiki.services.openoffice.org/wiki/Dictionaries is the front page.
    17 # The URL is changed from
    18 # http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/foo.zip
    19 # to
    20 # http://dlc.sun.com/osol/jds/downloads/extras/myspell/foo-YYYY-MM-DD.zip
    21 # since RE needs the version number in filenames.
    22 %define dictionary_source http://dlc.sun.com/osol/jds/downloads/extras/myspell
    23 %define _myspelldir %_datadir/spell/myspell
    24 %define _firefoxdir %_libdir/firefox/dictionaries
    25 %define _thunderbirddir %_libdir/thunderbird/dictionaries
    26 %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
    27 
    28 Name:                    SUNWmyspell-dictionary
    29 Summary:                 Myspell and Hunspell spell dictionary files
    30 License:                 Unclear
    31 Vendor:                  Other
    32 Version:                 %{default_pkg_version}
    33 SUNW_BaseDir:            %{_basedir}
    34 SUNW_Category:           GNOME2,application,%{jds_version}
    35 Docdir:                  %{_datadir}/doc/myspell-dictionary
    36 
    37 BuildRequires: SUNWunzip
    38 
    39 %include default-depend.inc
    40 SUNW_Copyright:          %{name}.copyright
    41 
    42 %if %build_l10n
    43 ## English (United States)
    44 Source:                  %dictionary_source/en_US-2004-06-23.zip
    45 ## Afrikaans (South Africa)
    46 Source1:                 %dictionary_source/af_ZA-2006-01-17.zip
    47 ## Catalan (Spain)
    48 Source2:                 %dictionary_source/ca_ES-2002-10-15.zip
    49 ## Czech (Czech Republic)
    50 Source3:                 %dictionary_source/cs_CZ-2003-01-01.zip
    51 ## Danish (Denmark)
    52 Source4:                 %dictionary_source/da_DK-2007-01-06.zip
    53 ## German (Germany)
    54 # original URL is http://j3e.de/hunspell/de_DE.zip
    55 Source5:                 %dictionary_source/de_DE-2003-06-17.zip
    56 ## Greek (Greece)
    57 Source6:                 %dictionary_source/el_GR-2004-12-20.zip
    58 ## English (Australia)
    59 # original URL is http://www.justlocal.com.au/clients/oooau/
    60 # Not reviewed yet
    61 #Source7:                 http://www.justlocal.com.au/clients/dictionaryfree/en-AU-full-V2.2.2.zip
    62 ## English (United Kingdom)
    63 # original URL is http://en-gb.pyxidium.co.uk/dictionary/en_GB.zip
    64 # Not reviewed yet
    65 #Source8:                 %dictionary_source/en_GB-2006-11-30.zip
    66 ## English (South Africa)
    67 Source9:                 %dictionary_source/en_ZA-2006-01-20.zip
    68 ## Spanish (Spain-etal)
    69 Source10:                %dictionary_source/es_ES-2005-05-10.zip
    70 ## Esperanto (anywhere)
    71 Source11:                %dictionary_source/eo-2004-11-29.zip
    72 ## Estonian (Estonia)
    73 # original URL is:
    74 # http://www.meso.ee/~jjpp/speller/et_EE.aff
    75 # http://www.meso.ee/~jjpp/speller/et_EE.dic
    76 # http://www.eki.ee/eki/litsents.html
    77 # The date is taken from openoffice site. 
    78 Source12:                %dictionary_source/et_EE-2003-06-02.zip
    79 ## Faroese (Faroe Islands)
    80 Source13:                %dictionary_source/fo_FO-2005-03-07.zip
    81 ## French (France)
    82 Source14:                %dictionary_source/fr_FR-2006-09-19.zip
    83 ## Irish Gaelic (Ireland)
    84 Source15:                %dictionary_source/ga_IE-2007-10-29.zip
    85 ## Scottish Gaelic (Scotland)
    86 Source16:                 %dictionary_source/gd_GB-2005-01-08.zip
    87 ## Galician (Spain)
    88 Source17:                http://downloads.sourceforge.net/project/ispell-gl/MySpell/0.5/gl_ES-05.zip 
    89 ## Hebrew (Israel)
    90 Source18:                %dictionary_source/he_IL-2005-01-12.zip
    91 ## Croatian (Croatia)
    92 Source19:                %dictionary_source/hr_HR-2006-06-07.zip
    93 ## Hungarian (Hungary)
    94 # original URL is http://magyarispell.sourceforge.net/hu_HU.zip
    95 Source20:                %dictionary_source/hu_HU-2006-07-27.zip
    96 ## Kurdish (Turkey, Syria)
    97 Source21:                %dictionary_source/ku_TR-2005-01-21.zip
    98 ## Lithuanian (Lithuania)
    99 Source22:                http://files.akl.lt/ispell-lt/lt_LT-1.2.1.zip
   100 ## Latvian (Latvia)
   101 # original URL is http://sourceforge.net/projects/openoffice-lv/ 
   102 Source23:               http://downloads.sourceforge.net/project/openoffice-lv/openoffice-lv/lv_LV-0.8b1/lv_LV-0.8b1.zip 
   103 ## Italian (Italy)
   104 Source24:                http://prdownloads.sf.net/linguistico/italiano_2_3_beta_2006_07_23.zip
   105 ## Norwegian Bokmal (Norway)
   106 Source25:                %dictionary_source/nb_NO-2008-03-10.zip
   107 ## Dutch (Netherlands)
   108 Source26:                %dictionary_source/nl_NL-2005-07-20.zip
   109 ## Norwegian Nynorsk (Norway)
   110 Source27:                %dictionary_source/nn_NO-2008-03-10.zip
   111 ## Ndebele (South Africa)
   112 Source28:                %dictionary_source/nr_ZA-2006-01-20.zip
   113 ## Northern Sotho (South Africa)
   114 Source29:                %dictionary_source/ns_ZA-2006-01-20.zip
   115 ## Polish (Poland)
   116 # original URL is http://pl.openoffice.org/pliki/pl_PL.zip
   117 Source30:                %dictionary_source/pl_PL-2006-12-02.zip
   118 ## Portuguese (Brazil)
   119 Source31:                %dictionary_source/pt_BR-2700g.zip
   120 ## Romanian (Romania)
   121 Source32:                http://downloads.sourceforge.net/rospell/ro_RO.3.2.zip
   122 ## Russian (Russia)
   123 Source33:                %dictionary_source/ru_RU-2004-04-06.zip
   124 ## Slovak (Slovakia)
   125 Source34:                %dictionary_source/sk_SK-2005-09-11.zip
   126 ## Slovenian (Slovenia)
   127 Source35:                %dictionary_source/sl_SI-2007-01-27.zip
   128 ## Swazi/Swati (South Africa)
   129 Source36:                %dictionary_source/ss_ZA-2006-07-05.zip
   130 ## Southern Sotho (South Africa)
   131 Source37:                %dictionary_source/st_ZA-2006-01-20.zip
   132 ## Swedish (Sweden)
   133 # original URL is http://hem.bredband.net/dsso1/sv_SE.zip
   134 Source38:                %dictionary_source/sv_SE-2006-12-07.zip
   135 ## Kiswahili (East Africa)
   136 # Reviewed but source is not available
   137 #Source39:                %dictionary_source/sw_KE-2004-05-16.zip
   138 ## Thai (Thailand)
   139 Source40:                %dictionary_source/th_TH-2006-12-12.zip
   140 ## Setswana (Africa)
   141 Source41:                %dictionary_source/tn_ZA-2004-05-16.zip
   142 ## Tsonga (South Africa)
   143 Source42:                %dictionary_source/ts_ZA-2006-01-23.zip
   144 ## Ukrainian (Ukraine)
   145 Source43:                %dictionary_source/uk_UA-2009-01-25.zip
   146 ## Venda (South Africa)
   147 Source44:                %dictionary_source/ve_ZA-2006-07-06.zip
   148 ## Xhosa (South Africa)
   149 Source45:                %dictionary_source/xh_ZA-2006-01-23.zip
   150 ## Zulu (Africa)
   151 Source46:                %dictionary_source/zu_ZA-2006-01-20.zip
   152 ## German (Switzerland)
   153 Source47:                %dictionary_source/de_CH-2009-02-21.zip
   154 ## Persian (Iran)
   155 # original URL is http://hunspell.sourceforge.net/fa_IR.tar.bz2
   156 Source48:               %dictionary_source/fa_IR-2007-08-16.zip
   157 
   158 # Source101 - 199 are OOo-spell-*.zip
   159 ## Bulgarian (Bulgaria)
   160 Source101:               http://downloads.sourceforge.net/bgoffice/OOo-spell-bg-4.1.zip
   161 
   162 # Source201 - 299 are *.oxt
   163 
   164 # Source301 - 399 are *.tar.gz
   165 ## Armenian (Eastern)
   166 Source301:               http://downloads.sourceforge.net/armspell/myspell-hy-0.10.1.tar.gz
   167 ## Portuguese (Portugal)
   168 Source302:              http://natura.di.uminho.pt/download/sources/Dictionaries/myspell/myspell.pt-20081113.tar.gz
   169 
   170 ## Manx Gaelic
   171 Source303:               http://borel.slu.edu/ispell/ispell-gv-1.0.tar.gz
   172 
   173 # Source401 - 499 are *.tar.bz2
   174 
   175 # Source501 - 599 are hunspell-*.zip
   176 ## Slovak (Slovakia)
   177 Source501:               http://www.sk-spell.sk.cx/file_download/38/hunspell-sk-20080525.zip
   178 
   179 
   180 BuildRoot:               %{_tmppath}/%{name}-%{version}
   181 
   182 #%define GROUP0  %SOURCE0   %SOURCE1   %SOURCE2   %SOURCE3   %SOURCE4   %SOURCE5   %SOURCE6   %SOURCE7   %SOURCE8   %SOURCE9
   183 %define GROUP0  %SOURCE0   %SOURCE1   %SOURCE2   %SOURCE3   %SOURCE4  %SOURCE5   %SOURCE6  %SOURCE9
   184 %define GROUP1  %SOURCE10  %SOURCE11  %SOURCE12  %SOURCE13  %SOURCE14 %SOURCE15  %SOURCE16  %SOURCE17  %SOURCE18  %SOURCE19
   185 %define GROUP2  %SOURCE20  %SOURCE21  %SOURCE22  %SOURCE23 %SOURCE24  %SOURCE25 %SOURCE26  %SOURCE27 %SOURCE28  %SOURCE29
   186 #%define GROUP3  %SOURCE30  %SOURCE31  %SOURCE32  %SOURCE33  %SOURCE34  %SOURCE35  %SOURCE36  %SOURCE37  %SOURCE38  %SOURCE39
   187 %define GROUP3  %SOURCE30  %SOURCE31  %SOURCE32 %SOURCE33  %SOURCE34  %SOURCE35  %SOURCE36 %SOURCE37  %SOURCE38
   188 %define GROUP4  %SOURCE40 %SOURCE41 %SOURCE42 %SOURCE43  %SOURCE44  %SOURCE45  %SOURCE46 %SOURCE47 %SOURCE48
   189 %define GROUP101 %SOURCE101
   190 %define GROUP201 ""
   191 %define GROUP301 %SOURCE301 %SOURCE302 %SOURCE303
   192 %define GROUP401 "" 
   193 %define GROUP501 %SOURCE501
   194 %define GROUP_NONE_OO2 %GROUP101 %GROUP301 %GROUP501
   195 %define ALL_SOURCES %GROUP0 %GROUP1 %GROUP2 %GROUP3 %GROUP4 %GROUP_NONE_OO2
   196 
   197 
   198 %package -n              SUNWmyspell-dictionary-en
   199 IPS_package_name:        library/myspell/dictionary/en
   200 Meta(info.classification): %{classification_prefix}:System/Localizations
   201 Summary:                 %{summary} for English
   202 SUNW_BaseDir:            %{_basedir}
   203 SUNW_Category:           GNOME2,application,%{jds_version}
   204 %include default-depend.inc
   205 SUNW_Copyright:          %{name}-en.copyright
   206 
   207 %package -n              SUNWmyspell-dictionary-cs
   208 IPS_package_name:        library/myspell/dictionary/cs
   209 Meta(info.classification): %{classification_prefix}:System/Localizations
   210 Summary:                 %{summary} for Czech
   211 SUNW_BaseDir:            %{_basedir}
   212 SUNW_Category:           GNOME2,application,%{jds_version},l10ncs
   213 SUNW_PkgList:            SUNWfirefox,SUNWgnome-spell,SUNWthunderbird
   214 SUNW_Loc:                cs_CZ
   215 %include default-depend.inc
   216 SUNW_Copyright:          %{name}-cs.copyright
   217 
   218 %package -n              SUNWmyspell-dictionary-de
   219 IPS_package_name:        library/myspell/dictionary/de
   220 Meta(info.classification): %{classification_prefix}:System/Localizations
   221 Summary:                 %{summary} for German
   222 SUNW_BaseDir:            %{_basedir}
   223 SUNW_Category:           GNOME2,application,%{jds_version},l10nde
   224 SUNW_PkgList:            SUNWfirefox,SUNWgnome-spell,SUNWthunderbird
   225 SUNW_Loc:                de
   226 %include default-depend.inc
   227 SUNW_Copyright:          %{name}-de.copyright
   228 
   229 %package -n              SUNWmyspell-dictionary-es
   230 IPS_package_name:        library/myspell/dictionary/es
   231 Meta(info.classification): %{classification_prefix}:System/Localizations
   232 Summary:                 %{summary} for Spanish
   233 SUNW_BaseDir:            %{_basedir}
   234 SUNW_Category:           GNOME2,application,%{jds_version},l10nes
   235 SUNW_PkgList:            SUNWfirefox,SUNWgnome-spell,SUNWthunderbird
   236 SUNW_Loc:                es
   237 %include default-depend.inc
   238 SUNW_Copyright:          %{name}-es.copyright
   239 
   240 %package -n              SUNWmyspell-dictionary-fr
   241 IPS_package_name:        library/myspell/dictionary/fr
   242 Meta(info.classification): %{classification_prefix}:System/Localizations
   243 Summary:                 %{summary} for French
   244 SUNW_BaseDir:            %{_basedir}
   245 SUNW_Category:           GNOME2,application,%{jds_version},l10nfr
   246 SUNW_PkgList:            SUNWfirefox,SUNWgnome-spell,SUNWthunderbird
   247 SUNW_Loc:                fr
   248 %include default-depend.inc
   249 SUNW_Copyright:          %{name}-fr.copyright
   250 
   251 %package -n              SUNWmyspell-dictionary-hu
   252 IPS_package_name:        library/myspell/dictionary/hu
   253 Meta(info.classification): %{classification_prefix}:System/Localizations
   254 Summary:                 %{summary} for Hungarian
   255 SUNW_BaseDir:            %{_basedir}
   256 SUNW_Category:           GNOME2,application,%{jds_version},l10nhu
   257 SUNW_PkgList:            SUNWfirefox,SUNWgnome-spell,SUNWthunderbird
   258 SUNW_Loc:                hu_HU
   259 %include default-depend.inc
   260 SUNW_Copyright:          %{name}-hu.copyright
   261 
   262 %package -n              SUNWmyspell-dictionary-it
   263 IPS_package_name:        library/myspell/dictionary/it
   264 Meta(info.classification): %{classification_prefix}:System/Localizations
   265 Summary:                 %{summary} for Italian
   266 SUNW_BaseDir:            %{_basedir}
   267 SUNW_Category:           GNOME2,application,%{jds_version},l10nit
   268 SUNW_PkgList:            SUNWfirefox,SUNWgnome-spell,SUNWthunderbird
   269 SUNW_Loc:                it
   270 %include default-depend.inc
   271 SUNW_Copyright:          %{name}-it.copyright
   272 
   273 %package -n              SUNWmyspell-dictionary-pl
   274 IPS_package_name:        library/myspell/dictionary/pl
   275 Meta(info.classification): %{classification_prefix}:System/Localizations
   276 Summary:                 %{summary} for Polish
   277 SUNW_BaseDir:            %{_basedir}
   278 SUNW_Category:           GNOME2,application,%{jds_version},l10npl
   279 SUNW_PkgList:            SUNWfirefox,SUNWgnome-spell,SUNWthunderbird
   280 SUNW_Loc:                pl_PL
   281 %include default-depend.inc
   282 SUNW_Copyright:          %{name}-pl.copyright
   283 
   284 %package -n              SUNWmyspell-dictionary-ptBR
   285 IPS_package_name:        library/myspell/dictionary/pt_br
   286 Meta(info.classification): %{classification_prefix}:System/Localizations
   287 Summary:                 %{summary} for Portugese Brazilian
   288 SUNW_BaseDir:            %{_basedir}
   289 SUNW_Category:           GNOME2,application,%{jds_version},l10nptbr
   290 SUNW_PkgList:            SUNWfirefox,SUNWgnome-spell,SUNWthunderbird
   291 SUNW_Loc:                pt_BR
   292 %include default-depend.inc
   293 SUNW_Copyright:          %{name}-ptBR.copyright
   294 
   295 %package -n              SUNWmyspell-dictionary-ru
   296 IPS_package_name:        library/myspell/dictionary/ru
   297 Meta(info.classification): %{classification_prefix}:System/Localizations
   298 Summary:                 %{summary} for Russian
   299 SUNW_BaseDir:            %{_basedir}
   300 SUNW_Category:           GNOME2,application,%{jds_version},l10nru
   301 SUNW_PkgList:            SUNWfirefox,SUNWgnome-spell,SUNWthunderbird
   302 SUNW_Loc:                ru_RU
   303 %include default-depend.inc
   304 SUNW_Copyright:          %{name}-ru.copyright
   305 
   306 %package -n              SUNWmyspell-dictionary-sv
   307 IPS_package_name:        library/myspell/dictionary/sv
   308 Meta(info.classification): %{classification_prefix}:System/Localizations
   309 Summary:                 %{summary} for Swedish
   310 SUNW_BaseDir:            %{_basedir}
   311 SUNW_Category:           GNOME2,application,%{jds_version},l10nsv
   312 SUNW_PkgList:            SUNWfirefox,SUNWgnome-spell,SUNWthunderbird
   313 SUNW_Loc:                sv
   314 %include default-depend.inc
   315 SUNW_Copyright:          %{name}-sv.copyright
   316 
   317 %package -n              SUNWmyspell-dictionary-extra
   318 IPS_package_name:        library/myspell/dictionary/extra
   319 Meta(info.classification): %{classification_prefix}:System/Localizations
   320 Summary:                 %{summary} for extra languages
   321 SUNW_BaseDir:            %{_basedir}
   322 SUNW_Category:           GNOME2,application,%{jds_version}
   323 SUNW_PkgList:            SUNWfirefox,SUNWgnome-spell,SUNWthunderbird
   324 SUNW_Loc:                %s_l_dict_extra
   325 %include default-depend.inc
   326 SUNW_Copyright:          %{name}-extra.copyright
   327 
   328 %package -n              SUNWmyspell-dictionary-noinst
   329 IPS_package_name:        library/myspell/dictionary/noinst
   330 Meta(info.classification): %{classification_prefix}:System/Localizations
   331 Summary:                 %{summary} for extra languages (not in /usr/lib/locale)
   332 SUNW_BaseDir:            %{_basedir}
   333 SUNW_Category:           GNOME2,application,%{jds_version}
   334 # Comment out because SUNW_PkgList needs SUNW_Loc.
   335 #SUNW_PkgList:            SUNWfirefox,SUNWgnome-spell,SUNWthunderbird
   336 #SUNW_Loc:                
   337 %include default-depend.inc
   338 SUNW_Copyright:          %{name}-noinst.copyright
   339 
   340 
   341 %prep
   342 rm -rf myspell-dictionary-%version
   343 mkdir myspell-dictionary-%version
   344 cd myspell-dictionary-%version
   345 for SOURCE in %ALL_SOURCES
   346 do
   347   DIR=`basename $SOURCE .zip`
   348 
   349   case $DIR in
   350   *.tar.gz)
   351     gzcat $SOURCE | tar xf -
   352     ;;
   353   *.tar.bz2)
   354     bzcat $SOURCE | tar xf -
   355     DIR=`basename $SOURCE .tar.bz2`
   356     if [ -d fa ] ; then
   357       mv fa $DIR
   358     fi
   359     ;;
   360   *.oxt)
   361     DIR=`basename $DIR .oxt | sed -e "s|dict-||"`
   362     mkdir $DIR
   363     cd $DIR
   364     unzip $SOURCE
   365     cd ..
   366     ;;
   367   OOo-spell-*)
   368     unzip $SOURCE
   369     ;;
   370   gl_ES-??)
   371     unzip $SOURCE
   372     mv gl_ES $DIR
   373     ;;
   374   hunspell-*)
   375     unzip $SOURCE
   376     ;;
   377   lt_LT-*.*.*)
   378     unzip $SOURCE
   379     ;;
   380   no_NO-pack*)
   381     mkdir $DIR
   382     cd $DIR
   383     unzip $SOURCE
   384     cd ..
   385     for FILE in `/bin/ls $DIR/*.zip | grep -v "/th_" | grep -v "/hyph_"`
   386     do
   387       SUBDIR=`basename $FILE .zip`
   388       mkdir $SUBDIR
   389       cd $SUBDIR
   390       unzip ../$FILE
   391       cd ..
   392     done
   393     /bin/rm -r $DIR
   394     ;;
   395   *)
   396     mkdir $DIR
   397     cd $DIR
   398     unzip $SOURCE
   399     cd ..
   400     ;;
   401   esac
   402 done
   403 
   404 # Generating Copyright template...
   405 # SUNWmyspell-dictionary-$ling.copyright can be generated below.
   406 #for ling in cs de en es extra fr hu it pl ru sv
   407 #do
   408 #  cat copyright/SUNWmyspell-dictionary.copyright \
   409 #    > copyright/SUNWmyspell-dictionary-$ling.copyright
   410 #  cat /packages/BUILD/myspell-dictionary-*/copyright-$ling \
   411 #    >> copyright/SUNWmyspell-dictionary-$ling.copyright
   412 # done
   413 for file in `find . -name "README*" -o -name "COPYING" -o -name "Copyright" | sort`
   414 do
   415   dir=`echo $file | sed -e "s|^\./||" | sed -e "s|/.*||" | sed -e "s|myspell-||" |\
   416        sed -e "s|OOo-spell-||" | sed -e "s|ispell-||" | sed -e "s|hunspell-||" |\
   417        sed -e "s|myspell\.||" | sed -e "s|-.*||" | sed -e "s|\..*||"`
   418 
   419   copyright=copyright
   420   case $dir in
   421   en_US*) copyright=copyright-en;;
   422   cs*) copyright=copyright-cs;;
   423   de*) copyright=copyright-de;;
   424   es*) copyright=copyright-es;;
   425   fr*) copyright=copyright-fr;;
   426   hu*) copyright=copyright-hu;;
   427   it*) copyright=copyright-it;;
   428   pl*) copyright=copyright-pl;;
   429   pt_BR*) copyright=copyright-ptBR;;
   430   ru*) copyright=copyright-ru;;
   431   sv*) copyright=copyright-sv;;
   432   *) 
   433     copyright=copyright-extra
   434     IS_EXTRA=`echo "%s_l_dict_extra" | grep "$dir"; echo "" > /dev/null`
   435     if [ x"$IS_EXTRA" = x ] ; then
   436       copyright=copyright-noinst
   437     fi
   438     ;;
   439   esac
   440 
   441   echo "$dir Copyright" >> $copyright
   442   echo "" >> $copyright
   443   cat $file | sed -e 's/^/  /' >> $copyright
   444   echo "" >> $copyright
   445   echo "--------------------------------------------------------------------" \
   446     >> $copyright
   447   echo "" >> $copyright
   448 done
   449 
   450 %build
   451 
   452 %install
   453 if [ -d "$RPM_BUILD_ROOT" ] ; then
   454   rm -r $RPM_BUILD_ROOT
   455 fi
   456 mkdir -p $RPM_BUILD_ROOT/usr
   457 
   458 cd myspell-dictionary-%version
   459 # We don't need hypy_lv_LV.dic and its README file
   460 rm lv_LV*/*hyph*
   461 
   462 for DICT in `/bin/ls */*.aff */*.dic */*_frami/*_frami.aff */*_frami/*_frami.dic`
   463 do
   464   if [ ! -d $RPM_BUILD_ROOT%_myspelldir ] ; then
   465     install -d $RPM_BUILD_ROOT%_myspelldir
   466   fi
   467   GNOME_FILE=`basename $DICT | sed -e "s|_frami\.|.|" | sed -e "s|gv\.|gv_IE.|"`
   468   install --mode=0644 $DICT $RPM_BUILD_ROOT%_myspelldir/$GNOME_FILE
   469   ( \
   470     BROWSER_FILE=`echo $GNOME_FILE | sed -e 's/_/-/'`; \
   471     \
   472     if [ ! -d $RPM_BUILD_ROOT%_thunderbirddir ] ; then \
   473       install -d $RPM_BUILD_ROOT%_thunderbirddir; \
   474     fi; \
   475     cd $RPM_BUILD_ROOT%_thunderbirddir; \
   476     rm -f $BROWSER_FILE && ln -s ../../../..%_myspelldir/$GNOME_FILE $BROWSER_FILE; \
   477     \
   478     if [ ! -d $RPM_BUILD_ROOT%_firefoxdir ] ; then \
   479       install -d $RPM_BUILD_ROOT%_firefoxdir; \
   480     fi; \
   481     cd $RPM_BUILD_ROOT%_firefoxdir; \
   482     rm -f $BROWSER_FILE && ln -s ../../../..%_myspelldir/$GNOME_FILE $BROWSER_FILE; \
   483   )
   484 done
   485 
   486 for SOURCE in %ALL_SOURCES
   487 do
   488   SOURCE_DIR=`basename $SOURCE .zip`
   489   SOURCE_DIR=`basename $SOURCE_DIR .tar.bz2`
   490   SOURCE_DIR=`basename $SOURCE_DIR .tar.gz`
   491   SOURCE_DIR=`basename "$SOURCE_DIR" .oxt | sed -e "s/^dict-//" |\
   492   sed -e "s/no_NO-pack2*/nb_NO/"`
   493   DEST_DIR=`echo $SOURCE_DIR | sed -e 's/\([^0-9]*\)[-_][0-9-]*/\1/' |\
   494             sed -e "s/-frami//" | sed -e "s/ispell-//" | sed -e "s/hunspell-//" |\
   495             sed -e 's/myspell[.-]//' |\
   496             sed -e 's/\([^.0-9]*\)[.0-9-]*/\1/' | sed -e "s/-sun//"`
   497   case $DEST_DIR in
   498   OOo-spell-bg*)    DEST_DIR=bg_BG;;
   499   en-AU*)           DEST_DIR=en_AU;;
   500   eo*)              DEST_DIR=eo_l3;;
   501   gv*)              DEST_DIR=gv_IE;;
   502   hy*)              DEST_DIR=hy_AM;;
   503   lv*)              DEST_DIR=lv_LV;;
   504   italiano*)        DEST_DIR=it_IT;;
   505   pt)               DEST_DIR=pt_PT;;
   506   pt_BR*)           DEST_DIR=pt_BR;;
   507   ro*)              DEST_DIR=ro_RO;;
   508   sk)               DEST_DIR=sk_SK;;
   509   *) ;;
   510   esac
   511 
   512   for FILE in `find $SOURCE_DIR ! -name "*.aff" ! -name "*.dic" -type f`
   513   do
   514     install -d $RPM_BUILD_ROOT%{_docdir}/myspell-dictionary/$DEST_DIR
   515     install --mode=0644 $FILE $RPM_BUILD_ROOT%{_docdir}/myspell-dictionary/$DEST_DIR
   516   done
   517 done
   518 
   519 #rm -f $RPM_BUILD_ROOT/%_myspelldir/en_US.aff
   520 #rm -f $RPM_BUILD_ROOT/%_firefoxdir/en-US.aff
   521 #rm -f $RPM_BUILD_ROOT/%_thunderbirddir/en-US.aff
   522 
   523 %clean
   524 rm -rf $RPM_BUILD_ROOT
   525 
   526 # The *-en package includes en_US only due to the size of LiveCD.
   527 # en_AU,en_GB are moved to *-extra. en_ZA is moved to *-noinst
   528 %files -n SUNWmyspell-dictionary-en
   529 %defattr (-, root, other)
   530 %dir %attr (0755, root, sys) %{_datadir}
   531 %dir %attr (0755, root, bin) %{_datadir}/spell
   532 %dir %attr (0755, root, bin) %{_myspelldir}
   533 %{_myspelldir}/en_US.aff
   534 %{_myspelldir}/en_US.dic
   535 %dir %attr (0755, root, bin) %{_libdir}
   536 %dir %attr (0755, root, bin) %{_libdir}/thunderbird
   537 %dir %attr (0755, root, bin) %{_thunderbirddir}
   538 %{_thunderbirddir}/en-US.aff
   539 %{_thunderbirddir}/en-US.dic
   540 %dir %attr (0755, root, bin) %{_libdir}/firefox
   541 %dir %attr (0755, root, bin) %{_firefoxdir}
   542 %{_firefoxdir}/en-US.aff
   543 %{_firefoxdir}/en-US.dic
   544 %dir %attr (0755, root, other) %{_docdir}
   545 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary
   546 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/en_US
   547 %{_docdir}/myspell-dictionary/en_US/*
   548 
   549 
   550 %files -n SUNWmyspell-dictionary-cs
   551 %defattr (-, root, other)
   552 %dir %attr (0755, root, sys) %{_datadir}
   553 %dir %attr (0755, root, bin) %{_datadir}/spell
   554 %dir %attr (0755, root, bin) %{_myspelldir}
   555 %{_myspelldir}/cs_*.aff
   556 %{_myspelldir}/cs_*.dic
   557 %dir %attr (0755, root, bin) %{_libdir}
   558 %dir %attr (0755, root, bin) %{_libdir}/thunderbird
   559 %dir %attr (0755, root, bin) %{_thunderbirddir}
   560 %{_thunderbirddir}/cs-*.aff
   561 %{_thunderbirddir}/cs-*.dic
   562 %dir %attr (0755, root, bin) %{_libdir}/firefox
   563 %dir %attr (0755, root, bin) %{_firefoxdir}
   564 %{_firefoxdir}/cs-*.aff
   565 %{_firefoxdir}/cs-*.dic
   566 %dir %attr (0755, root, other) %{_docdir}
   567 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary
   568 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/cs_CZ
   569 %{_docdir}/myspell-dictionary/cs_CZ/*
   570 
   571 
   572 %files -n SUNWmyspell-dictionary-de
   573 %defattr (-, root, other)
   574 %dir %attr (0755, root, sys) %{_datadir}
   575 %dir %attr (0755, root, bin) %{_datadir}/spell
   576 %dir %attr (0755, root, bin) %{_myspelldir}
   577 %{_myspelldir}/de_*.aff
   578 %{_myspelldir}/de_*.dic
   579 %dir %attr (0755, root, bin) %{_libdir}
   580 %dir %attr (0755, root, bin) %{_libdir}/thunderbird
   581 %dir %attr (0755, root, bin) %{_thunderbirddir}
   582 %{_thunderbirddir}/de-*.aff
   583 %{_thunderbirddir}/de-*.dic
   584 %dir %attr (0755, root, bin) %{_libdir}/firefox
   585 %dir %attr (0755, root, bin) %{_firefoxdir}
   586 %{_firefoxdir}/de-*.aff
   587 %{_firefoxdir}/de-*.dic
   588 %dir %attr (0755, root, other) %{_docdir}
   589 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary
   590 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/de_CH
   591 %{_docdir}/myspell-dictionary/de_CH/*
   592 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/de_DE
   593 %{_docdir}/myspell-dictionary/de_DE/*
   594 
   595 %files -n SUNWmyspell-dictionary-es
   596 %defattr (-, root, other)
   597 %dir %attr (0755, root, sys) %{_datadir}
   598 %dir %attr (0755, root, bin) %{_datadir}/spell
   599 %dir %attr (0755, root, bin) %{_myspelldir}
   600 %{_myspelldir}/es_*.aff
   601 %{_myspelldir}/es_*.dic
   602 %dir %attr (0755, root, bin) %{_libdir}
   603 %dir %attr (0755, root, bin) %{_libdir}/thunderbird
   604 %dir %attr (0755, root, bin) %{_thunderbirddir}
   605 %{_thunderbirddir}/es-*.aff
   606 %{_thunderbirddir}/es-*.dic
   607 %dir %attr (0755, root, bin) %{_libdir}/firefox
   608 %dir %attr (0755, root, bin) %{_firefoxdir}
   609 %{_firefoxdir}/es-*.aff
   610 %{_firefoxdir}/es-*.dic
   611 %dir %attr (0755, root, other) %{_docdir}
   612 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary
   613 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/es_ES
   614 %{_docdir}/myspell-dictionary/es_ES/*
   615 
   616 %files -n SUNWmyspell-dictionary-fr
   617 %defattr (-, root, other)
   618 %dir %attr (0755, root, sys) %{_datadir}
   619 %dir %attr (0755, root, bin) %{_datadir}/spell
   620 %dir %attr (0755, root, bin) %{_myspelldir}
   621 %{_myspelldir}/fr_*.aff
   622 %{_myspelldir}/fr_*.dic
   623 %dir %attr (0755, root, bin) %{_libdir}
   624 %dir %attr (0755, root, bin) %{_libdir}/thunderbird
   625 %dir %attr (0755, root, bin) %{_thunderbirddir}
   626 %{_thunderbirddir}/fr-*.aff
   627 %{_thunderbirddir}/fr-*.dic
   628 %dir %attr (0755, root, bin) %{_libdir}/firefox
   629 %dir %attr (0755, root, bin) %{_firefoxdir}
   630 %{_firefoxdir}/fr-*.aff
   631 %{_firefoxdir}/fr-*.dic
   632 %dir %attr (0755, root, other) %{_docdir}
   633 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary
   634 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/fr_FR
   635 %{_docdir}/myspell-dictionary/fr_FR/*
   636 
   637 %files -n SUNWmyspell-dictionary-hu
   638 %defattr (-, root, other)
   639 %dir %attr (0755, root, sys) %{_datadir}
   640 %dir %attr (0755, root, bin) %{_datadir}/spell
   641 %dir %attr (0755, root, bin) %{_myspelldir}
   642 %{_myspelldir}/hu_*.aff
   643 %{_myspelldir}/hu_*.dic
   644 %dir %attr (0755, root, bin) %{_libdir}
   645 %dir %attr (0755, root, bin) %{_libdir}/thunderbird
   646 %dir %attr (0755, root, bin) %{_thunderbirddir}
   647 %{_thunderbirddir}/hu-*.aff
   648 %{_thunderbirddir}/hu-*.dic
   649 %dir %attr (0755, root, bin) %{_libdir}/firefox
   650 %dir %attr (0755, root, bin) %{_firefoxdir}
   651 %{_firefoxdir}/hu-*.aff
   652 %{_firefoxdir}/hu-*.dic
   653 %dir %attr (0755, root, other) %{_docdir}
   654 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary
   655 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/hu_HU
   656 %{_docdir}/myspell-dictionary/hu_HU/*
   657 
   658 %files -n SUNWmyspell-dictionary-it
   659 %defattr (-, root, other)
   660 %dir %attr (0755, root, sys) %{_datadir}
   661 %dir %attr (0755, root, bin) %{_datadir}/spell
   662 %dir %attr (0755, root, bin) %{_myspelldir}
   663 %{_myspelldir}/it_*.aff
   664 %{_myspelldir}/it_*.dic
   665 %dir %attr (0755, root, bin) %{_libdir}
   666 %dir %attr (0755, root, bin) %{_libdir}/thunderbird
   667 %dir %attr (0755, root, bin) %{_thunderbirddir}
   668 %{_thunderbirddir}/it-*.aff
   669 %{_thunderbirddir}/it-*.dic
   670 %dir %attr (0755, root, bin) %{_libdir}/firefox
   671 %dir %attr (0755, root, bin) %{_firefoxdir}
   672 %{_firefoxdir}/it-*.aff
   673 %{_firefoxdir}/it-*.dic
   674 %dir %attr (0755, root, other) %{_docdir}
   675 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary
   676 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/it_IT
   677 %{_docdir}/myspell-dictionary/it_IT/*
   678 
   679 %files -n SUNWmyspell-dictionary-pl
   680 %defattr (-, root, other)
   681 %dir %attr (0755, root, sys) %{_datadir}
   682 %dir %attr (0755, root, bin) %{_datadir}/spell
   683 %dir %attr (0755, root, bin) %{_myspelldir}
   684 %{_myspelldir}/pl_*.aff
   685 %{_myspelldir}/pl_*.dic
   686 %dir %attr (0755, root, bin) %{_libdir}
   687 %dir %attr (0755, root, bin) %{_libdir}/thunderbird
   688 %dir %attr (0755, root, bin) %{_thunderbirddir}
   689 %{_thunderbirddir}/pl-*.aff
   690 %{_thunderbirddir}/pl-*.dic
   691 %dir %attr (0755, root, bin) %{_libdir}/firefox
   692 %dir %attr (0755, root, bin) %{_firefoxdir}
   693 %{_firefoxdir}/pl-*.aff
   694 %{_firefoxdir}/pl-*.dic
   695 %dir %attr (0755, root, other) %{_docdir}
   696 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary
   697 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/pl_PL
   698 %{_docdir}/myspell-dictionary/pl_PL/*
   699 
   700 %files -n SUNWmyspell-dictionary-ptBR
   701 %defattr (-, root, other)
   702 %dir %attr (0755, root, sys) %{_datadir}
   703 %dir %attr (0755, root, bin) %{_datadir}/spell
   704 %dir %attr (0755, root, bin) %{_myspelldir}
   705 %{_myspelldir}/pt_BR.aff
   706 %{_myspelldir}/pt_BR.dic
   707 %dir %attr (0755, root, bin) %{_libdir}
   708 %dir %attr (0755, root, bin) %{_libdir}/thunderbird
   709 %dir %attr (0755, root, bin) %{_thunderbirddir}
   710 %{_thunderbirddir}/pt-BR.aff
   711 %{_thunderbirddir}/pt-BR.dic
   712 %dir %attr (0755, root, bin) %{_libdir}/firefox
   713 %dir %attr (0755, root, bin) %{_firefoxdir}
   714 %{_firefoxdir}/pt-BR.aff
   715 %{_firefoxdir}/pt-BR.dic
   716 %dir %attr (0755, root, other) %{_docdir}
   717 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary
   718 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/pt_BR
   719 %{_docdir}/myspell-dictionary/pt_BR/*
   720 
   721 %files -n SUNWmyspell-dictionary-ru
   722 %defattr (-, root, other)
   723 %dir %attr (0755, root, sys) %{_datadir}
   724 %dir %attr (0755, root, bin) %{_datadir}/spell
   725 %dir %attr (0755, root, bin) %{_myspelldir}
   726 %{_myspelldir}/ru_*.aff
   727 %{_myspelldir}/ru_*.dic
   728 %dir %attr (0755, root, bin) %{_libdir}
   729 %dir %attr (0755, root, bin) %{_libdir}/thunderbird
   730 %dir %attr (0755, root, bin) %{_thunderbirddir}
   731 %{_thunderbirddir}/ru-*.aff
   732 %{_thunderbirddir}/ru-*.dic
   733 %dir %attr (0755, root, bin) %{_libdir}/firefox
   734 %dir %attr (0755, root, bin) %{_firefoxdir}
   735 %{_firefoxdir}/ru-*.aff
   736 %{_firefoxdir}/ru-*.dic
   737 %dir %attr (0755, root, other) %{_docdir}
   738 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary
   739 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/ru_RU
   740 %{_docdir}/myspell-dictionary/ru_RU/*
   741 
   742 %files -n SUNWmyspell-dictionary-sv
   743 %defattr (-, root, other)
   744 %dir %attr (0755, root, sys) %{_datadir}
   745 %dir %attr (0755, root, bin) %{_datadir}/spell
   746 %dir %attr (0755, root, bin) %{_myspelldir}
   747 %{_myspelldir}/sv_*.aff
   748 %{_myspelldir}/sv_*.dic
   749 %dir %attr (0755, root, bin) %{_libdir}
   750 %dir %attr (0755, root, bin) %{_libdir}/thunderbird
   751 %dir %attr (0755, root, bin) %{_thunderbirddir}
   752 %{_thunderbirddir}/sv-*.aff
   753 %{_thunderbirddir}/sv-*.dic
   754 %dir %attr (0755, root, bin) %{_libdir}/firefox
   755 %dir %attr (0755, root, bin) %{_firefoxdir}
   756 %{_firefoxdir}/sv-*.aff
   757 %{_firefoxdir}/sv-*.dic
   758 %dir %attr (0755, root, other) %{_docdir}
   759 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary
   760 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/sv_SE
   761 %{_docdir}/myspell-dictionary/sv_SE/*
   762 
   763 %files -n SUNWmyspell-dictionary-extra
   764 %defattr (-, root, other)
   765 %dir %attr (0755, root, sys) %{_datadir}
   766 %dir %attr (0755, root, bin) %{_datadir}/spell
   767 %dir %attr (0755, root, bin) %{_myspelldir}
   768 %{_myspelldir}/bg_*.aff
   769 %{_myspelldir}/bg_*.dic
   770 %{_myspelldir}/ca_*.aff
   771 %{_myspelldir}/ca_*.dic
   772 %{_myspelldir}/da_*.aff
   773 %{_myspelldir}/da_*.dic
   774 %{_myspelldir}/el_*.aff
   775 %{_myspelldir}/el_*.dic
   776 #%{_myspelldir}/en_AU.aff
   777 #%{_myspelldir}/en_AU.dic
   778 #%{_myspelldir}/en_GB.aff
   779 #%{_myspelldir}/en_GB.dic
   780 %{_myspelldir}/et_*.aff
   781 %{_myspelldir}/et_*.dic
   782 %{_myspelldir}/he_*.aff
   783 %{_myspelldir}/he_*.dic
   784 %{_myspelldir}/hr_*.aff
   785 %{_myspelldir}/hr_*.dic
   786 %{_myspelldir}/lt_*.aff
   787 %{_myspelldir}/lt_*.dic
   788 %{_myspelldir}/lv_*.aff
   789 %{_myspelldir}/lv_*.dic
   790 %{_myspelldir}/nb_*.aff
   791 %{_myspelldir}/nb_*.dic
   792 %{_myspelldir}/nl_*.aff
   793 %{_myspelldir}/nl_*.dic
   794 %{_myspelldir}/nn_*.aff
   795 %{_myspelldir}/nn_*.dic
   796 %{_myspelldir}/pt_PT.aff
   797 %{_myspelldir}/pt_PT.dic
   798 %{_myspelldir}/ro_*.aff
   799 %{_myspelldir}/ro_*.dic
   800 %{_myspelldir}/sk_*.aff
   801 %{_myspelldir}/sk_*.dic
   802 %{_myspelldir}/sl_*.aff
   803 %{_myspelldir}/sl_*.dic
   804 %{_myspelldir}/th_*.aff
   805 %{_myspelldir}/th_*.dic
   806 %{_myspelldir}/uk_*.aff
   807 %{_myspelldir}/uk_*.dic
   808 %dir %attr (0755, root, bin) %{_libdir}
   809 %dir %attr (0755, root, bin) %{_libdir}/thunderbird
   810 %dir %attr (0755, root, bin) %{_thunderbirddir}
   811 %{_thunderbirddir}/bg-*.aff
   812 %{_thunderbirddir}/bg-*.dic
   813 %{_thunderbirddir}/ca-*.aff
   814 %{_thunderbirddir}/ca-*.dic
   815 %{_thunderbirddir}/da-*.aff
   816 %{_thunderbirddir}/da-*.dic
   817 %{_thunderbirddir}/el-*.aff
   818 %{_thunderbirddir}/el-*.dic
   819 #%{_thunderbirddir}/en-AU.aff
   820 #%{_thunderbirddir}/en-AU.dic
   821 #%{_thunderbirddir}/en-GB.aff
   822 #%{_thunderbirddir}/en-GB.dic
   823 %{_thunderbirddir}/et-*.aff
   824 %{_thunderbirddir}/et-*.dic
   825 %{_thunderbirddir}/he-*.aff
   826 %{_thunderbirddir}/he-*.dic
   827 %{_thunderbirddir}/hr-*.aff
   828 %{_thunderbirddir}/hr-*.dic
   829 %{_thunderbirddir}/lt-*.aff
   830 %{_thunderbirddir}/lt-*.dic
   831 %{_thunderbirddir}/lv-*.aff
   832 %{_thunderbirddir}/lv-*.dic
   833 %{_thunderbirddir}/nb-*.aff
   834 %{_thunderbirddir}/nb-*.dic
   835 %{_thunderbirddir}/nl-*.aff
   836 %{_thunderbirddir}/nl-*.dic
   837 %{_thunderbirddir}/nn-*.aff
   838 %{_thunderbirddir}/nn-*.dic
   839 %{_thunderbirddir}/pt-PT.aff
   840 %{_thunderbirddir}/pt-PT.dic
   841 %{_thunderbirddir}/ro-*.aff
   842 %{_thunderbirddir}/ro-*.dic
   843 %{_thunderbirddir}/sk-*.aff
   844 %{_thunderbirddir}/sk-*.dic
   845 %{_thunderbirddir}/sl-*.aff
   846 %{_thunderbirddir}/sl-*.dic
   847 %{_thunderbirddir}/th-*.aff
   848 %{_thunderbirddir}/th-*.dic
   849 %{_thunderbirddir}/uk-*.aff
   850 %{_thunderbirddir}/uk-*.dic
   851 %dir %attr (0755, root, bin) %{_libdir}/firefox
   852 %dir %attr (0755, root, bin) %{_firefoxdir}
   853 %{_firefoxdir}/bg-*.aff
   854 %{_firefoxdir}/bg-*.dic
   855 %{_firefoxdir}/ca-*.aff
   856 %{_firefoxdir}/ca-*.dic
   857 %{_firefoxdir}/da-*.aff
   858 %{_firefoxdir}/da-*.dic
   859 %{_firefoxdir}/el-*.aff
   860 %{_firefoxdir}/el-*.dic
   861 #%{_firefoxdir}/en-AU.aff
   862 #%{_firefoxdir}/en-AU.dic
   863 #%{_firefoxdir}/en-GB.aff
   864 #%{_firefoxdir}/en-GB.dic
   865 %{_firefoxdir}/et-*.aff
   866 %{_firefoxdir}/et-*.dic
   867 %{_firefoxdir}/he-*.aff
   868 %{_firefoxdir}/he-*.dic
   869 %{_firefoxdir}/hr-*.aff
   870 %{_firefoxdir}/hr-*.dic
   871 %{_firefoxdir}/lt-*.aff
   872 %{_firefoxdir}/lt-*.dic
   873 %{_firefoxdir}/lv-*.aff
   874 %{_firefoxdir}/lv-*.dic
   875 %{_firefoxdir}/nb-*.aff
   876 %{_firefoxdir}/nb-*.dic
   877 %{_firefoxdir}/nl-*.aff
   878 %{_firefoxdir}/nl-*.dic
   879 %{_firefoxdir}/nn-*.aff
   880 %{_firefoxdir}/nn-*.dic
   881 %{_firefoxdir}/pt-PT.aff
   882 %{_firefoxdir}/pt-PT.dic
   883 %{_firefoxdir}/ro-*.aff
   884 %{_firefoxdir}/ro-*.dic
   885 %{_firefoxdir}/sk-*.aff
   886 %{_firefoxdir}/sk-*.dic
   887 %{_firefoxdir}/sl-*.aff
   888 %{_firefoxdir}/sl-*.dic
   889 %{_firefoxdir}/th-*.aff
   890 %{_firefoxdir}/th-*.dic
   891 %{_firefoxdir}/uk-*.aff
   892 %{_firefoxdir}/uk-*.dic
   893 %dir %attr (0755, root, other) %{_docdir}
   894 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary
   895 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/bg_BG
   896 %{_docdir}/myspell-dictionary/bg_BG/*
   897 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/ca_ES
   898 %{_docdir}/myspell-dictionary/ca_ES/*
   899 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/da_DK
   900 %{_docdir}/myspell-dictionary/da_DK/*
   901 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/el_GR
   902 %{_docdir}/myspell-dictionary/el_GR/*
   903 #%dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/en_AU
   904 #%{_docdir}/myspell-dictionary/en_AU/*
   905 #%dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/en_GB
   906 #%{_docdir}/myspell-dictionary/en_GB/*
   907 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/et_EE
   908 %{_docdir}/myspell-dictionary/et_EE/*
   909 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/he_IL
   910 %{_docdir}/myspell-dictionary/he_IL/*
   911 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/hr_HR
   912 %{_docdir}/myspell-dictionary/hr_HR/*
   913 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/lt_LT
   914 %{_docdir}/myspell-dictionary/lt_LT/*
   915 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/lv_LV
   916 %{_docdir}/myspell-dictionary/lv_LV/*
   917 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/nb_NO
   918 %{_docdir}/myspell-dictionary/nb_NO/*
   919 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/nl_NL
   920 %{_docdir}/myspell-dictionary/nl_NL/*
   921 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/nn_NO
   922 %{_docdir}/myspell-dictionary/nn_NO/*
   923 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/pt_PT
   924 %{_docdir}/myspell-dictionary/pt_PT/*
   925 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/ro_RO
   926 %{_docdir}/myspell-dictionary/ro_RO/*
   927 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/sk_SK
   928 %{_docdir}/myspell-dictionary/sk_SK/*
   929 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/sl_SI
   930 %{_docdir}/myspell-dictionary/sl_SI/*
   931 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/th_TH
   932 %{_docdir}/myspell-dictionary/th_TH/*
   933 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/uk_UA
   934 %{_docdir}/myspell-dictionary/uk_UA/*
   935 
   936 %files -n SUNWmyspell-dictionary-noinst
   937 %defattr (-, root, other)
   938 %dir %attr (0755, root, sys) %{_datadir}
   939 %dir %attr (0755, root, bin) %{_datadir}/spell
   940 %dir %attr (0755, root, bin) %{_myspelldir}
   941 %{_myspelldir}/af_*.aff
   942 %{_myspelldir}/af_*.dic
   943 %{_myspelldir}/en_ZA.aff
   944 %{_myspelldir}/en_ZA.dic
   945 %{_myspelldir}/eo_*.aff
   946 %{_myspelldir}/eo_*.dic
   947 %{_myspelldir}/fa_*.aff
   948 %{_myspelldir}/fa_*.dic
   949 %{_myspelldir}/fo_*.aff
   950 %{_myspelldir}/fo_*.dic
   951 %{_myspelldir}/ga_*.aff
   952 %{_myspelldir}/ga_*.dic
   953 %{_myspelldir}/gd_*.aff
   954 %{_myspelldir}/gd_*.dic
   955 %{_myspelldir}/gl_*.aff
   956 %{_myspelldir}/gl_*.dic
   957 %{_myspelldir}/gv_*.aff
   958 %{_myspelldir}/gv_*.dic
   959 %{_myspelldir}/hy_*.aff
   960 %{_myspelldir}/hy_*.dic
   961 %{_myspelldir}/ku_*.aff
   962 %{_myspelldir}/ku_*.dic
   963 %{_myspelldir}/nr_*.aff
   964 %{_myspelldir}/nr_*.dic
   965 %{_myspelldir}/ns_*.aff
   966 %{_myspelldir}/ns_*.dic
   967 %{_myspelldir}/ss_*.aff
   968 %{_myspelldir}/ss_*.dic
   969 %{_myspelldir}/st_*.aff
   970 %{_myspelldir}/st_*.dic
   971 #%{_myspelldir}/sw_*.aff
   972 #%{_myspelldir}/sw_*.dic
   973 %{_myspelldir}/tn_*.aff
   974 %{_myspelldir}/tn_*.dic
   975 %{_myspelldir}/ts_*.aff
   976 %{_myspelldir}/ts_*.dic
   977 %{_myspelldir}/ve_*.aff
   978 %{_myspelldir}/ve_*.dic
   979 %{_myspelldir}/xh_*.aff
   980 %{_myspelldir}/xh_*.dic
   981 %{_myspelldir}/zu_*.aff
   982 %{_myspelldir}/zu_*.dic
   983 %dir %attr (0755, root, bin) %{_libdir}
   984 %dir %attr (0755, root, bin) %{_libdir}/thunderbird
   985 %dir %attr (0755, root, bin) %{_thunderbirddir}
   986 %{_thunderbirddir}/af-*.aff
   987 %{_thunderbirddir}/af-*.dic
   988 %{_thunderbirddir}/en-ZA.aff
   989 %{_thunderbirddir}/en-ZA.dic
   990 %{_thunderbirddir}/eo-*.aff
   991 %{_thunderbirddir}/eo-*.dic
   992 %{_thunderbirddir}/fa-*.aff
   993 %{_thunderbirddir}/fa-*.dic
   994 %{_thunderbirddir}/fo-*.aff
   995 %{_thunderbirddir}/fo-*.dic
   996 %{_thunderbirddir}/ga-*.aff
   997 %{_thunderbirddir}/ga-*.dic
   998 %{_thunderbirddir}/gd-*.aff
   999 %{_thunderbirddir}/gd-*.dic
  1000 %{_thunderbirddir}/gl-*.aff
  1001 %{_thunderbirddir}/gl-*.dic
  1002 %{_thunderbirddir}/gv-*.aff
  1003 %{_thunderbirddir}/gv-*.dic
  1004 %{_thunderbirddir}/hy-*.aff
  1005 %{_thunderbirddir}/hy-*.dic
  1006 %{_thunderbirddir}/ku-*.aff
  1007 %{_thunderbirddir}/ku-*.dic
  1008 %{_thunderbirddir}/nr-*.aff
  1009 %{_thunderbirddir}/nr-*.dic
  1010 %{_thunderbirddir}/ns-*.aff
  1011 %{_thunderbirddir}/ns-*.dic
  1012 %{_thunderbirddir}/ss-*.aff
  1013 %{_thunderbirddir}/ss-*.dic
  1014 %{_thunderbirddir}/st-*.aff
  1015 %{_thunderbirddir}/st-*.dic
  1016 #%{_thunderbirddir}/sw-*.aff
  1017 #%{_thunderbirddir}/sw-*.dic
  1018 %{_thunderbirddir}/tn-*.aff
  1019 %{_thunderbirddir}/tn-*.dic
  1020 %{_thunderbirddir}/ts-*.aff
  1021 %{_thunderbirddir}/ts-*.dic
  1022 %{_thunderbirddir}/ve-*.aff
  1023 %{_thunderbirddir}/ve-*.dic
  1024 %{_thunderbirddir}/xh-*.aff
  1025 %{_thunderbirddir}/xh-*.dic
  1026 %{_thunderbirddir}/zu-*.aff
  1027 %{_thunderbirddir}/zu-*.dic
  1028 %dir %attr (0755, root, bin) %{_libdir}/firefox
  1029 %dir %attr (0755, root, bin) %{_firefoxdir}
  1030 %{_firefoxdir}/af-*.aff
  1031 %{_firefoxdir}/af-*.dic
  1032 %{_firefoxdir}/en-ZA.aff
  1033 %{_firefoxdir}/en-ZA.dic
  1034 %{_firefoxdir}/eo-*.aff
  1035 %{_firefoxdir}/eo-*.dic
  1036 %{_firefoxdir}/fa-*.aff
  1037 %{_firefoxdir}/fa-*.dic
  1038 %{_firefoxdir}/fo-*.aff
  1039 %{_firefoxdir}/fo-*.dic
  1040 %{_firefoxdir}/ga-*.aff
  1041 %{_firefoxdir}/ga-*.dic
  1042 %{_firefoxdir}/gd-*.aff
  1043 %{_firefoxdir}/gd-*.dic
  1044 %{_firefoxdir}/gl-*.aff
  1045 %{_firefoxdir}/gl-*.dic
  1046 %{_firefoxdir}/gv-*.aff
  1047 %{_firefoxdir}/gv-*.dic
  1048 %{_firefoxdir}/hy-*.aff
  1049 %{_firefoxdir}/hy-*.dic
  1050 %{_firefoxdir}/ku-*.aff
  1051 %{_firefoxdir}/ku-*.dic
  1052 %{_firefoxdir}/nr-*.aff
  1053 %{_firefoxdir}/nr-*.dic
  1054 %{_firefoxdir}/ns-*.aff
  1055 %{_firefoxdir}/ns-*.dic
  1056 %{_firefoxdir}/ss-*.aff
  1057 %{_firefoxdir}/ss-*.dic
  1058 %{_firefoxdir}/st-*.aff
  1059 %{_firefoxdir}/st-*.dic
  1060 #%{_firefoxdir}/sw-*.aff
  1061 #%{_firefoxdir}/sw-*.dic
  1062 %{_firefoxdir}/tn-*.aff
  1063 %{_firefoxdir}/tn-*.dic
  1064 %{_firefoxdir}/ts-*.aff
  1065 %{_firefoxdir}/ts-*.dic
  1066 %{_firefoxdir}/ve-*.aff
  1067 %{_firefoxdir}/ve-*.dic
  1068 %{_firefoxdir}/xh-*.aff
  1069 %{_firefoxdir}/xh-*.dic
  1070 %{_firefoxdir}/zu-*.aff
  1071 %{_firefoxdir}/zu-*.dic
  1072 %dir %attr (0755, root, other) %{_docdir}
  1073 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary
  1074 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/af_ZA
  1075 %{_docdir}/myspell-dictionary/af_ZA/*
  1076 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/en_ZA
  1077 %{_docdir}/myspell-dictionary/en_ZA/*
  1078 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/eo_l3
  1079 %{_docdir}/myspell-dictionary/eo_l3/*
  1080 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/fa_IR
  1081 %{_docdir}/myspell-dictionary/fa_IR/*
  1082 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/fo_FO
  1083 %{_docdir}/myspell-dictionary/fo_FO/*
  1084 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/ga_IE
  1085 %{_docdir}/myspell-dictionary/ga_IE/*
  1086 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/gd_GB
  1087 %{_docdir}/myspell-dictionary/gd_GB/*
  1088 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/gl_ES
  1089 %{_docdir}/myspell-dictionary/gl_ES/*
  1090 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/gv_IE
  1091 %{_docdir}/myspell-dictionary/gv_IE/*
  1092 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/hy_AM
  1093 %{_docdir}/myspell-dictionary/hy_AM/*
  1094 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/ku_TR
  1095 %{_docdir}/myspell-dictionary/ku_TR/*
  1096 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/nr_ZA
  1097 %{_docdir}/myspell-dictionary/nr_ZA/*
  1098 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/ns_ZA
  1099 %{_docdir}/myspell-dictionary/ns_ZA/*
  1100 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/ss_ZA
  1101 %{_docdir}/myspell-dictionary/ss_ZA/*
  1102 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/st_ZA
  1103 %{_docdir}/myspell-dictionary/st_ZA/*
  1104 #%dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/sw_KE
  1105 #%{_docdir}/myspell-dictionary/sw_KE/*
  1106 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/tn_ZA
  1107 %{_docdir}/myspell-dictionary/tn_ZA/*
  1108 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/ts_ZA
  1109 %{_docdir}/myspell-dictionary/ts_ZA/*
  1110 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/ve_ZA
  1111 %{_docdir}/myspell-dictionary/ve_ZA/*
  1112 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/xh_ZA
  1113 %{_docdir}/myspell-dictionary/xh_ZA/*
  1114 %dir %attr (0755, root, bin) %{_docdir}/myspell-dictionary/zu_ZA
  1115 %{_docdir}/myspell-dictionary/zu_ZA/*
  1116 
  1117 %endif
  1118 
  1119 %changelog
  1120 * Tue Oct 27 2009 - dave.lin@sun.com
  1121 - Removed the symbol link anyway before creating it in %install.
  1122 * Tue Jul 20 2009 - harry.fu@sun.com
  1123 - Uncomment dictionaries not reviewed before(CR6847877) and correct some
  1124 source location.  
  1125 
  1126 * Mon Mar 23 2009 - takao.fujiwara@sun.com
  1127 - Add af, bg, fa, fo, ga, gd, gv, hy, ku, lv, nr, ns, ss, st, sw, ts, ve, xh,
  1128   zu myspell dictionaries. CR 6820626.
  1129 
  1130 * Fri Apr 04 2008 - takao.fujiwara@sun.com
  1131 - Add a copyright merging.
  1132 
  1133 * Fri Jun 08 2007 - takao.fujiwara@sun.com
  1134 - Add symbolic links for firefox l10n dictionaries. Fixes 6566162.
  1135 
  1136 * Fri May 18 2007 - damien.carbery@sun.com
  1137 - Remove SUNW_PkgList from base package so that it can be integrated to WOS.
  1138 
  1139 * Thu May 17 2007 - damien.carbery@sun.com
  1140 - Correct invalid locale in -extra package: s/nb_NO.UTF-8/nb_NO/.
  1141 
  1142 * Wed May 09 2007 - takao.fujiwara@sun.com
  1143 - Removed SUNW_LOC=C at the moment.
  1144 
  1145 * Thu May 03 2007 - takao.fujiwara@sun.com
  1146 - Fix typo.
  1147 - Modify the correct URL.
  1148 
  1149 * Thu May 03 2007 - damien.carbery@sun.com
  1150 - Change all the source file names to be static, removing the _with_download
  1151   modifier.
  1152 
  1153 * Thu May 03 2007 - damien.carbery@sun.com
  1154 - Modify dictionary_source url to append 'myspell' as the files have been moved
  1155   to a subdir on the download centre server.
  1156 
  1157 * Tue May 01 2007 - takao.fujiwara@sun.com
  1158 - Revised the implementation - no log.
  1159 
  1160 * Tue May 01 2007 - yuriy.kuznetsov@sun.com
  1161 - Initial implementation
  1162