Solaris/SUNWzz-gnome-l10n.spec
author dcarbery
Fri, 24 Nov 2006 16:37:59 +0000
branch217update
changeset 19096 d542fc2c823e
parent 8565 b102e7809c6e
child 8766 40a0db3558a2
permissions -rw-r--r--
Merged trunk changes r9797:9829 into 217update branch.

#
# spec file for package SUNWgnome-l10nmessages
#
# includes module(s): all modules which include l10n files
#
# Copyright (c) 2004 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: fujiwara
#
%include Solaris.inc

Name:                    SUNWgnome-l10nmessages-de
Summary:                 GNOME software message files for German
Version:                 %{default_pkg_version}
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                de
%include default-depend.inc
Requires:                SUNWgnome-libs
BuildRoot:               %{_tmppath}/%{name}-%{version}

%include default-depend.inc
Requires: SUNWgnome-libs
#Requires: SUNWgnome-vfs
#Requires: SUNWgnome-xml
BuildRequires: SUNWapoc-adapter-gconf-l10n
BuildRequires: SUNWfsexam-l10n
BuildRequires: SUNWgksu-l10n
BuildRequires: SUNWgnome-a11y-base-libs-l10n
BuildRequires: SUNWgnome-a11y-dasher-l10n
BuildRequires: SUNWgnome-a11y-gok-l10n
BuildRequires: SUNWgnome-a11y-reader-l10n
BuildRequires: SUNWgnome-applets-l10n
BuildRequires: SUNWgnome-archive-mgr-l10n
BuildRequires: SUNWgnome-base-libs-l10n
BuildRequires: SUNWgnome-calculator-l10n
BuildRequires: SUNWgnome-camera-l10n
BuildRequires: SUNWgnome-cd-l10n
BuildRequires: SUNWgnome-character-map-l10n
BuildRequires: SUNWgnome-component-l10n
BuildRequires: SUNWgnome-config-editor-l10n
BuildRequires: SUNWgnome-config-l10n
BuildRequires: SUNWgnome-crash-report-l10n
BuildRequires: SUNWgnome-desktop-prefs-l10n
BuildRequires: SUNWgnome-dialog-l10n
BuildRequires: SUNWgnome-display-mgr-l10n
BuildRequires: SUNWgnome-file-mgr-l10n
BuildRequires: SUNWgnome-games-l10n
BuildRequires: SUNWgnome-help-viewer-l10n
BuildRequires: SUNWgnome-hex-editor-l10n
BuildRequires: SUNWgnome-im-client-l10n
BuildRequires: SUNWgnome-img-editor-l10n
BuildRequires: SUNWgnome-img-viewer-l10n
BuildRequires: SUNWgnome-keyring-manager-l10n
BuildRequires: SUNWgnome-libs-l10n
BuildRequires: SUNWgnome-media-l10n
BuildRequires: SUNWgnome-media-player-l10n
BuildRequires: SUNWgnome-meeting-l10n
BuildRequires: SUNWgnome-panel-l10n
BuildRequires: SUNWgnome-pdf-viewer-l10n
BuildRequires: SUNWgnome-pilot-l10n
BuildRequires: SUNWgnome-print-l10n
BuildRequires: SUNWgnome-remote-desktop-l10n
BuildRequires: SUNWgnome-session-l10n
BuildRequires: SUNWgnome-spell-l10n
BuildRequires: SUNWgnome-sys-suspend-l10n
BuildRequires: SUNWgnome-system-monitor-l10n
BuildRequires: SUNWgnome-system-tools-l10n
BuildRequires: SUNWgnome-terminal-l10n
BuildRequires: SUNWgnome-text-editor-l10n
BuildRequires: SUNWgnome-themes-l10n
BuildRequires: SUNWgnome-ui-designer-l10n
BuildRequires: SUNWgnome-user-docs-l10n
BuildRequires: SUNWgnome-utils-l10n
BuildRequires: SUNWgnome-vfs-l10n
BuildRequires: SUNWgnome-wm-l10n
BuildRequires: SUNWevolution-l10n
BuildRequires: SUNWevolution-libs-l10n
BuildRequires: SUNWevolution-exchange-l10n
BuildRequires: SUNWiso-codes-l10n

%if %build_l10n
%package -n              SUNWgnome-l10nmessages-cs
Summary:                 GNOME software message files for Czech
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                cs_CZ
%include default-depend.inc
Requires:                SUNWgnome-libs

#%package -n              SUNWgnome-l10nmessages-de
#Summary:                 GNOME software message files for German
#SUNW_BaseDir:            %{_basedir}
#SUNW_PkgList:            SUNWgnome-libs
#SUNW_Loc:                de
#%include default-depend.inc
#Requires:                SUNWgnome-libs

%package -n              SUNWgnome-l10nmessages-es
Summary:                 GNOME software message files for Spanish
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                es
%include default-depend.inc
Requires:                SUNWgnome-libs

%package -n              SUNWgnome-l10nmessages-fr
Summary:                 GNOME software message files for French
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                fr
%include default-depend.inc
Requires:                SUNWgnome-libs

%package -n              SUNWgnome-l10nmessages-hu
Summary:                 GNOME software message files for Hungarian
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                hu_HU
%include default-depend.inc
Requires:                SUNWgnome-libs

%package -n              SUNWgnome-l10nmessages-it
Summary:                 GNOME software message files for Italian
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                it
%include default-depend.inc
Requires:                SUNWgnome-libs

%package -n              SUNWgnome-l10nmessages-ja
Summary:                 GNOME software message files for Japanese
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                ja,ja_JP.PCK,ja_JP.UTF-8
%include default-depend.inc
Requires:                SUNWgnome-libs

%package -n              SUNWgnome-l10nmessages-ko
Summary:                 GNOME software message files for Korean
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                ko,ko.UTF-8
%include default-depend.inc
Requires:                SUNWgnome-libs

%package -n              SUNWgnome-l10nmessages-pl
Summary:                 GNOME software message files for Polish
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                pl_PL
%include default-depend.inc
Requires:                SUNWgnome-libs

%package -n              SUNWgnome-l10nmessages-ptBR
Summary:                 GNOME software message files for Portugese Brazilian
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                pt_BR
%include default-depend.inc
Requires:                SUNWgnome-libs

%package -n              SUNWgnome-l10nmessages-ru
Summary:                 GNOME software message files for Russian
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                ru_RU
%include default-depend.inc
Requires:                SUNWgnome-libs

%package -n              SUNWgnome-l10nmessages-sv
Summary:                 GNOME software message files for Swedish
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                sv
%include default-depend.inc
Requires:                SUNWgnome-libs

%package -n              SUNWgnome-l10nmessages-zhCN
Summary:                 GNOME software message files for Simplified Chinese
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                zh,zh.GBK,zh_CN.GB18030,zh.UTF-8
%include default-depend.inc
Requires:                SUNWgnome-libs

%package -n              SUNWgnome-l10nmessages-zhHK
Summary:                 GNOME software message files for Hong Kong Chinese
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                zh_HK.BIG5HK,zh_HK.UTF-8
%include default-depend.inc
Requires:                SUNWgnome-libs

%package -n              SUNWgnome-l10nmessages-zhTW
Summary:                 GNOME software message files for Traditional Chinese
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                zh_TW,zh_TW.BIG5,zh_TW.UTF-8
%include default-depend.inc
Requires:                SUNWgnome-libs

%package -n              SUNWgnome-l10nmessages-extra
Summary:                 GNOME software message files for extra languages
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                he,ar,sk_SK,is_IS,da_DK,fi_FI,no_NO,ca_ES,el_CY,el_GR,pt_PT,nl_BE,nl_NL,et_EE,lt_LT,lv_LV,bg_BG,hr_HR,mk_MK,sh_BA,ro_RO,sl_SI,sq_AL,sr_CS,sr_YU,tr_TR
%include default-depend.inc
Requires:                SUNWgnome-libs

%package -n              SUNWgnome-l10ndocument-de
Summary:                 GNOME document files for German
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                de
%include default-depend.inc
Requires:                SUNWgnome-libs
Requires:                SUNWgnome-help-viewer

%package -n              SUNWgnome-l10ndocument-es
Summary:                 GNOME document files for Spanish
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                es
%include default-depend.inc
Requires:                SUNWgnome-libs
Requires:                SUNWgnome-help-viewer

%package -n              SUNWgnome-l10ndocument-fr
Summary:                 GNOME document files for French
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                fr
%include default-depend.inc
Requires:                SUNWgnome-libs
Requires:                SUNWgnome-help-viewer

%package -n              SUNWgnome-l10ndocument-it
Summary:                 GNOME document files for Italian
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                it
%include default-depend.inc
Requires:                SUNWgnome-libs
Requires:                SUNWgnome-help-viewer

%package -n              SUNWgnome-l10ndocument-ja
Summary:                 GNOME document files for Japanese
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                ja,ja_JP.PCK,ja_JP.UTF-8
%include default-depend.inc
Requires:                SUNWgnome-libs
Requires:                SUNWgnome-help-viewer

%package -n              SUNWgnome-l10ndocument-ko
Summary:                 GNOME document files for Korean
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                ko,ko.UTF-8
%include default-depend.inc
Requires:                SUNWgnome-libs
Requires:                SUNWgnome-help-viewer

%package -n              SUNWgnome-l10ndocument-sv
Summary:                 GNOME document files for Swedish
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                sv
%include default-depend.inc
Requires:                SUNWgnome-libs
Requires:                SUNWgnome-help-viewer

%package -n              SUNWgnome-l10ndocument-zhCN
Summary:                 GNOME document files for Simplified Chinese
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                zh,zh.GBK,zh_CN.GB18030,zh.UTF-8
%include default-depend.inc
Requires:                SUNWgnome-libs
Requires:                SUNWgnome-help-viewer

%package -n              SUNWgnome-l10ndocument-zhHK
Summary:                 GNOME document files for Hong Kong Chinese
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                zh_HK.BIG5HK,zh_HK.UTF-8
%include default-depend.inc
Requires:                SUNWgnome-libs
Requires:                SUNWgnome-help-viewer

%package -n              SUNWgnome-l10ndocument-zhTW
Summary:                 GNOME document files for Traditional Chinese
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                zh_TW,zh_TW.BIG5,zh_TW.UTF-8
%include default-depend.inc
Requires:                SUNWgnome-libs
Requires:                SUNWgnome-help-viewer

%package -n              SUNWgnome-l10ndocument-ptBR
Summary:                 GNOME document files for Brazilian Portuguese
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                pt_BR
%include default-depend.inc
Requires:                SUNWgnome-libs
Requires:                SUNWgnome-help-viewer

%package -n              SUNWgnome-l10ndocument-extra
Summary:                 GNOME document files for extra languages
SUNW_BaseDir:            %{_basedir}
SUNW_PkgList:            SUNWgnome-libs
SUNW_Loc:                he,ar,sk_SK,is_IS,da_DK,fi_FI,no_NO,ca_ES,el_CY,el_GR,pt_PT,nl_BE,nl_NL,et_EE,lt_LT,lv_LV,bg_BG,hr_HR,mk_MK,sh_BA,ro_RO,sl_SI,sq_AL,sr_CS,sr_YU,tr_TR
%include default-depend.inc
Requires:                SUNWgnome-libs
Requires:                SUNWgnome-help-viewer

%prep
rm -rf %name-%version
mkdir %name-%version

%build

%install
if [ -d "$RPM_BUILD_ROOT" ] ; then
  rm -r $RPM_BUILD_ROOT
fi
mkdir -p $RPM_BUILD_ROOT/usr

cd %{_topdir}/PKGS
GNOME_PKGS='
SUNWapoc-adapter-gconf-l10n
SUNWfsexam-l10n
SUNWgksu-l10n
SUNWgnome-a11y-base-libs-l10n
SUNWgnome-a11y-dasher-l10n
SUNWgnome-a11y-gok-l10n
SUNWgnome-a11y-reader-l10n
SUNWgnome-applets-l10n
SUNWgnome-archive-mgr-l10n
SUNWgnome-base-libs-l10n
SUNWgnome-calculator-l10n
SUNWgnome-camera-l10n
SUNWgnome-cd-l10n
SUNWgnome-character-map-l10n
SUNWgnome-component-l10n
SUNWgnome-config-editor-l10n
SUNWgnome-config-l10n
SUNWgnome-crash-report-l10n
SUNWgnome-desktop-prefs-l10n
SUNWgnome-dialog-l10n
SUNWgnome-display-mgr-l10n
SUNWgnome-file-mgr-l10n
SUNWgnome-games-l10n
SUNWgnome-gtksourceview-l10n
SUNWgnome-help-viewer-l10n
SUNWgnome-hex-editor-l10n
SUNWgnome-im-client-l10n
SUNWgnome-img-editor-l10n
SUNWgnome-img-viewer-l10n
SUNWgnome-keyring-manager-l10n
SUNWgnome-libs-l10n
SUNWgnome-media-l10n
SUNWgnome-media-player-l10n
SUNWgnome-media-apps-l10n
SUNWgnome-meeting-l10n
SUNWgnome-panel-l10n
SUNWgnome-pdf-viewer-l10n
SUNWgnome-pilot-l10n
SUNWgnome-print-l10n
SUNWgnome-remote-desktop-l10n
SUNWgnome-session-l10n
SUNWgnome-spell-l10n
SUNWgnome-sys-suspend-l10n
SUNWgnome-system-monitor-l10n
SUNWgnome-system-tools-l10n
SUNWgnome-terminal-l10n
SUNWgnome-text-editor-l10n
SUNWgnome-themes-l10n
SUNWgnome-ui-designer-l10n
SUNWgnome-user-docs-l10n
SUNWgnome-utils-l10n
SUNWgnome-vfs-l10n
SUNWgnome-wm-l10n
SUNWiso-codes-l10n
'

EVOLUTION_PKGS='
SUNWevolution-l10n
SUNWevolution-libs-l10n
SUNWevolution-exchange-l10n
SUNWevolution-data-server-l10n
SUNWevolution-jescs-l10n
SUNWevolution-webcal-l10n
'

for pkg in $GNOME_PKGS $EVOLUTION_PKGS
do
  if [ -d $pkg ] ; then
    (cd $pkg/reloc; tar cfp - .) | (cd $RPM_BUILD_ROOT/usr; tar xfp - )

    # make sym link in each pkg
    sym_links=$(grep '^1 s none' $pkg/pkgmap | sed -e 's:^1 s none ::')
    (cd $RPM_BUILD_ROOT/usr
        for link in $sym_links
        do
            sym_to=$(echo $link | sed 's:.*=::')
            sym_from=$(echo $link | sed 's:=.*::')
            mkdir -p $(dirname $sym_from)
            (cd $(dirname $sym_from)
            if [ -d $sym_from -o -f $sym_from ] ; then
                echo "#### Can not overwrite by sym_link $sym_from"
            else
              ln -s $sym_to $(basename $sym_from)
            fi
            )
        done
    )

  else
    echo "#### Not Found $pkg"
  fi
done

# Add symbolic links ${locale}.UTF-8
cd $RPM_BUILD_ROOT%{_datadir}/locale
rm -f cs_CZ; 		/bin/ln -s cs cs_CZ
rm -f cs_CZ.ISO8859-2; 	/bin/ln -s cs cs_CZ.ISO8859-2
rm -f cs_CZ.UTF-8; 	/bin/ln -s cs cs_CZ.UTF-8
rm -rf cs_CZ.UTF-8@euro;        /bin/ln -s cs cs_CZ.UTF-8@euro
rm -f de.ISO8859-15; 	/bin/ln -s de de.ISO8859-15
rm -f de.UTF-8; 	/bin/ln -s de de.UTF-8
rm -f de_AT; 		/bin/ln -s de de_AT
rm -f de_AT.ISO8859-1; 	/bin/ln -s de de_AT.ISO8859-1
rm -f de_AT.ISO8859-15; /bin/ln -s de de_AT.ISO8859-15
rm -f de_AT.UTF-8; /bin/ln -s de de_AT.UTF-8
rm -f de_CH; 		/bin/ln -s de de_CH
rm -f de_CH.ISO8859-1; 	/bin/ln -s de de_CH.ISO8859-1
rm -f de_CH.UTF-8; 	/bin/ln -s de de_CH.UTF-8
rm -f de_DE; 		/bin/ln -s de de_DE
rm -f de_DE.ISO8859-1; 	/bin/ln -s de de_DE.ISO8859-1
rm -f de_DE.ISO8859-15; /bin/ln -s de de_DE.ISO8859-15
rm -f de_DE.UTF-8; 	/bin/ln -s de de_DE.UTF-8
rm -f de_LU.UTF-8; 	/bin/ln -s de de_LU.UTF-8
rm -f es.ISO8859-15; 	/bin/ln -s es es.ISO8859-15
rm -f es.UTF-8; 	/bin/ln -s es es.UTF-8
rm -f es_AR.ISO8859-1;  /bin/ln -s es es_AR.ISO8859-1
rm -f es_AR.UTF-8;      /bin/ln -s es es_AR.UTF-8
rm -f es_BO.ISO8859-1;  /bin/ln -s es es_BO.ISO8859-1
rm -f es_BO.UTF-8;      /bin/ln -s es es_BO.UTF-8
rm -f es_CL.ISO8859-1;  /bin/ln -s es es_CL.ISO8859-1
rm -f es_CL.UTF-8;      /bin/ln -s es es_CL.UTF-8
rm -f es_CO.ISO8859-1;  /bin/ln -s es es_CO.ISO8859-1
rm -f es_CO.UTF-8;      /bin/ln -s es es_CO.UTF-8
rm -f es_CR.ISO8859-1;  /bin/ln -s es es_CR.ISO8859-1
rm -f es_CR.UTF-8;      /bin/ln -s es es_CR.UTF-8
rm -f es_EC.ISO8859-1;  /bin/ln -s es es_EC.ISO8859-1
rm -f es_EC.UTF-8;      /bin/ln -s es es_EC.UTF-8
rm -f es_ES.ISO8859-1; 	/bin/ln -s es es_ES.ISO8859-1
rm -f es_ES.ISO8859-15; /bin/ln -s es es_ES.ISO8859-15
rm -f es_ES.UTF-8; 	/bin/ln -s es es_ES.UTF-8
rm -f es_GT.ISO8859-1;  /bin/ln -s es es_GT.ISO8859-1
rm -f es_GT.UTF-8;      /bin/ln -s es es_GT.UTF-8
rm -f es_MX.ISO8859-1;  /bin/ln -s es es_MX.ISO8859-1
rm -f es_MX.UTF-8;      /bin/ln -s es es_MX.UTF-8
rm -f es_NI.ISO8859-1;  /bin/ln -s es es_NI.ISO8859-1
rm -f es_NI.UTF-8;      /bin/ln -s es es_NI.UTF-8
rm -f es_PA.ISO8859-1;  /bin/ln -s es es_PA.ISO8859-1
rm -f es_PA.UTF-8;      /bin/ln -s es es_PA.UTF-8
rm -f es_PE.ISO8859-1;  /bin/ln -s es es_PE.ISO8859-1
rm -f es_PE.UTF-8;      /bin/ln -s es es_PE.UTF-8
rm -f es_PY.ISO8859-1;  /bin/ln -s es es_PY.ISO8859-1
rm -f es_PY.UTF-8;      /bin/ln -s es es_PY.UTF-8
rm -f es_SV.ISO8859-1;  /bin/ln -s es es_SV.ISO8859-1
rm -f es_SV.UTF-8;      /bin/ln -s es es_SV.UTF-8
rm -f es_UY.ISO8859-1;  /bin/ln -s es es_UY.ISO8859-1
rm -f es_UY.UTF-8;      /bin/ln -s es es_UY.UTF-8
rm -f es_VE.ISO8859-1;  /bin/ln -s es es_VE.ISO8859-1
rm -f es_VE.UTF-8;      /bin/ln -s es es_VE.UTF-8
rm -f fr.ISO8859-15; 	/bin/ln -s fr fr.ISO8859-15
rm -f fr.UTF-8; 	/bin/ln -s fr fr.UTF-8
rm -f fr_BE; 		/bin/ln -s fr fr_BE
rm -f fr_BE.ISO8859-1; 	/bin/ln -s fr fr_BE.ISO8859-1
rm -f fr_BE.ISO8859-15; /bin/ln -s fr fr_BE.ISO8859-15
rm -f fr_BE.UTF-8; /bin/ln -s fr fr_BE.UTF-8
rm -f fr_CA; 		/bin/ln -s fr fr_CA
rm -f fr_CA.ISO8859-1; 	/bin/ln -s fr fr_CA.ISO8859-1
rm -f fr_CA.UTF-8; 	/bin/ln -s fr fr_CA.UTF-8
rm -f fr_CH; 		/bin/ln -s fr fr_CH
rm -f fr_CH.ISO8859-1; 	/bin/ln -s fr fr_CH.ISO8859-1
rm -f fr_CH.UTF-8; 	/bin/ln -s fr fr_CH.UTF-8
rm -f fr_FR; 		/bin/ln -s fr fr_FR
rm -f fr_FR.ISO8859-1; 	/bin/ln -s fr fr_FR.ISO8859-1
rm -f fr_FR.ISO8859-15; /bin/ln -s fr fr_FR.ISO8859-15
rm -f fr_FR.UTF-8; 	/bin/ln -s fr fr_FR.UTF-8
rm -f fr_LU.UTF-8; 	/bin/ln -s fr fr_LU.UTF-8
rm -f hu_HU; 		/bin/ln -s hu hu_HU
rm -f hu_HU.ISO8859-2; 	/bin/ln -s hu hu_HU.ISO8859-2
rm -f hu_HU.UTF-8; 	/bin/ln -s hu hu_HU.UTF-8
rm -f it.ISO8859-15; 	/bin/ln -s it it.ISO8859-15
rm -f it.UTF-8; 	/bin/ln -s it it.UTF-8
rm -f it_IT; 		/bin/ln -s it it_IT
rm -f it_IT.ISO8859-1; 	/bin/ln -s it it_IT.ISO8859-1
rm -f it_IT.ISO8859-15; /bin/ln -s it it_IT.ISO8859-15
rm -f it_IT.UTF-8; 	/bin/ln -s it it_IT.UTF-8
rm -f ja_JP.PCK; 	/bin/ln -s ja ja_JP.PCK
rm -f ja_JP.UTF-8; 	/bin/ln -s ja ja_JP.UTF-8
rm -f ja_JP.eucJP; 	/bin/ln -s ja ja_JP.eucJP
rm -f ko.UTF-8; 	/bin/ln -s ko ko.UTF-8
rm -f ko_KR.EUC; 	/bin/ln -s ko ko_KR.EUC
rm -f ko_KR.UTF-8; 	/bin/ln -s ko ko_KR.UTF-8
rm -f mk_MK.UTF-8;      /bin/ln -s mk mk_MK.UTF-8
rm -f nb_NO.UTF-8;      /bin/ln -s no nb_NO.UTF-8
rm -f nl_BE.UTF-8;      /bin/ln -s nl nl_BE.UTF-8
rm -f nl_NL.UTF-8;      /bin/ln -s nl nl_NL.UTF-8
rm -f no_NO.ISO8859-1@bokmal;   /bin/ln -s no no_NO.ISO8859-1@bokmal
rm -f no_NO.ISO8859-1@nynorsk;  /bin/ln -s nn no_NO.ISO8859-1@nynorsk
rm -f pl.UTF-8; 	/bin/ln -s pl pl.UTF-8
rm -f pl_PL; 		/bin/ln -s pl pl_PL
rm -f pl_PL.ISO8859-2; 	/bin/ln -s pl pl_PL.ISO8859-2
rm -f pl_PL.UTF-8; 	/bin/ln -s pl pl_PL.UTF-8
rm -f BR pt_BR.ISO8859-1; /bin/ln -s pt_BR pt_BR.ISO8859-1
rm -f BR pt_BR.UTF-8; 	/bin/ln -s pt_BR pt_BR.UTF-8
rm -f ro_RO.UTF-8;      /bin/ln -s ro ro_RO.UTF-8
rm -f ru.ansi-1251; 	/bin/ln -s ru ru.ansi-1251
rm -f ru.ansi1251; 	/bin/ln -s ru ru.ansi1251
rm -f ru.koi8-r; 	/bin/ln -s ru ru.koi8-r
rm -f ru.UTF-8;         /bin/ln -s ru ru.UTF-8
rm -f ru_RU; 		/bin/ln -s ru ru_RU
rm -f ru_RU.ANSI1251; 	/bin/ln -s ru ru_RU.ANSI1251
rm -f ru_RU.ISO8859-5; 	/bin/ln -s ru ru_RU.ISO8859-5
rm -f ru_RU.KOI8-R; 	/bin/ln -s ru ru_RU.KOI8-R
rm -f ru_RU.UTF-8; 	/bin/ln -s ru ru_RU.UTF-8
rm -f sh_BA.ISO8859-2@bosnia;   /bin/ln -s sr@Latn sh_BA.ISO8859-2@bosnia
rm -f sh_BA.UTF-8;      /bin/ln -s sr@Latn sh_BA.UTF-8
rm -f sq_AL.UTF-8;      /bin/ln -s sq sq_AL.UTF-8
rm -f sr_CS.UTF-8;      /bin/ln -s sr sr_CS.UTF-8
rm -f sv.ISO8859-15; 	/bin/ln -s sv sv.ISO8859-15
rm -f sv.UTF-8; 	/bin/ln -s sv sv.UTF-8
rm -f sv_SE; 		/bin/ln -s sv sv_SE
rm -f sv_SE.ISO8859-1; 	/bin/ln -s sv sv_SE.ISO8859-1
rm -f sv_SE.ISO8859-15; /bin/ln -s sv sv_SE.ISO8859-15
rm -f sv_SE.UTF-8; 	/bin/ln -s sv sv_SE.UTF-8
rm -f zh; 		/bin/ln -s zh_CN zh
rm -f zh.GBK; 	/bin/ln -s zh_CN zh.GBK
rm -f zh.UTF-8; 	/bin/ln -s zh_CN zh.UTF-8
rm -f zh_CN.EUC; 	/bin/ln -s zh_CN zh_CN.EUC
rm -f zh_CN.GB18030; /bin/ln -s zh_CN zh_CN.GB18030
rm -f zh_CN.GBK; 	/bin/ln -s zh_CN zh_CN.GBK
rm -f zh_CN.UTF-8; 	/bin/ln -s zh_CN zh_CN.UTF-8
rm -f zh_HK.BIG5HK; 	/bin/ln -s zh_HK zh_HK.BIG5HK
rm -f zh_HK.UTF-8; 	/bin/ln -s zh_HK zh_HK.UTF-8
rm -f zh_TW.BIG5; 	/bin/ln -s zh_TW zh_TW.BIG5
rm -f zh_TW.EUC; 	/bin/ln -s zh_TW zh_TW.EUC
rm -f zh_TW.UTF-8; 	/bin/ln -s zh_TW zh_TW.UTF-8

# None Supported Locales
NONE_SUPPORTED_LINGS='
af am ang ar as az
be bg bn br bs
ca cs cy
da dz
el en_AU en_CA en_GB en_US eo et eu
fa fi
ga gl gu
he hi hr hu hy
ia id is
ka km kn ky
li lt lv
mg mi mk ml mn mr ms my_MM
nb ne nl nn no nso
or
pa pt pt_PT
ro rw
sk sl sq sr
ta te tg th tk tl tr tt
ug uk uz
vi
wa
xh
yi
yo
zu
'

for ling in $NONE_SUPPORTED_LINGS
do
  if [ ! -d $ling ] ; then
    echo "##### Not Found /usr/share/locale/$ling"
    mkdir $ling
  fi
done

rm -f ar_EG.UTF-8; 	/bin/ln -s ar ar_EG.UTF-8
rm -f ar_SA.UTF-8; 	/bin/ln -s ar ar_SA.UTF-8
rm -f bg_BG.ISO8859-5; 	/bin/ln -s bg bg_BG.ISO8859-5
rm -f bg_BG.UTF-8;      /bin/ln -s bg bg_BG.UTF-8
rm -f ca_ES; 		/bin/ln -s ca ca_ES
rm -f ca_ES.ISO8859-1; 	/bin/ln -s ca ca_ES.ISO8859-1
rm -f ca_ES.ISO8859-15; /bin/ln -s ca ca_ES.ISO8859-15
rm -f ca_ES.UTF-8; /bin/ln -s ca ca_ES.UTF-8
rm -f da.ISO8859-15; 	/bin/ln -s da da.ISO8859-15
rm -f da_DK; 		/bin/ln -s da da_DK
rm -f da_DK.ISO8859-1; 	/bin/ln -s da da_DK.ISO8859-1
rm -f da_DK.ISO8859-15; /bin/ln -s da da_DK.ISO8859-15
rm -f da_DK.UTF-8; /bin/ln -s da da_DK.UTF-8
rm -f el.sun_eu_greek; 	/bin/ln -s el el.sun_eu_greek
rm -f el.UTF-8; 	/bin/ln -s el el.UTF-8
rm -f el_CY.UTF-8; 	/bin/ln -s el el_CY.UTF-8
rm -f el_GR; 		/bin/ln -s el el_GR
rm -f el_GR.ISO8859-7; 	/bin/ln -s el el_GR.ISO8859-7
rm -f el_GR.UTF-8; 	/bin/ln -s el el_GR.UTF-8
rm -f AU en_AU.ISO8859-1; /bin/ln -s en_AU en_AU.ISO8859-1
rm -f CA en_CA.ISO8859-1; /bin/ln -s en_CA en_CA.ISO8859-1
rm -f en_CA.UTF-8; 	/bin/ln -s en_CA en_CA.UTF-8
rm -f CA en_CA.ISO8859-1; /bin/ln -s en_CA en_CA.ISO8859-1
rm -f GB en_GB.ISO8859-1; /bin/ln -s en_GB en_GB.ISO8859-1
rm -f GB en_GB.ISO8859-15;/bin/ln -s en_GB en_GB.ISO8859-15
rm -f en_GB.UTF-8; 	/bin/ln -s en_GB en_GB.UTF-8
rm -f et_EE; 		/bin/ln -s et et_EE
rm -f et_EE.ISO8859-15; /bin/ln -s et et_EE.ISO8859-15
rm -f et_EE.UTF-8; /bin/ln -s et et_EE.UTF-8
rm -f fi.ISO8859-15; 	/bin/ln -s fi fi.ISO8859-15
rm -f fi_FI; 		/bin/ln -s fi fi_FI
rm -f fi_FI.ISO8859-1; 	/bin/ln -s fi fi_FI.ISO8859-1
rm -f fi_FI.ISO8859-15; /bin/ln -s fi fi_FI.ISO8859-15
rm -f fi_FI.UTF-8; 	/bin/ln -s fi fi_FI.UTF-8
rm -f he_IL; 		/bin/ln -s he he_IL
rm -f he_IL.UTF-8; 	/bin/ln -s he he_IL.UTF-8
rm -f hi_IN.UTF-8; 	/bin/ln -s hi hi_IN.UTF-8
rm -f hr_HR; 		/bin/ln -s hr hr_HR
rm -f hr_HR.ISO8859-2; 	/bin/ln -s hr hr_HR.ISO8859-2
rm -f hr_HR.UTF-8; 	/bin/ln -s hr hr_HR.UTF-8
rm -f is_IS; 		/bin/ln -s is is_IS
rm -f is_IS.ISO8859-1; 	/bin/ln -s is is_IS.ISO8859-1
rm -f is_IS.UTF-8; 	/bin/ln -s is is_IS.UTF-8
rm -f lt_LT; 		/bin/ln -s lt lt_LT
rm -f lt_LT.ISO8859-13; /bin/ln -s lt lt_LT.ISO8859-13
rm -f lt_LT.UTF-8; /bin/ln -s lt lt_LT.UTF-8
rm -f lv_LV; 		/bin/ln -s lv lv_LV
rm -f lv_LV.ISO8859-13; /bin/ln -s lv lv_LV.ISO8859-13
rm -f lv_LV.UTF-8; /bin/ln -s lv lv_LV.UTF-8
rm -f mk_MK; 		/bin/ln -s mk mk_MK
rm -f mk_MK.ISO8859-5; 	/bin/ln -s mk mk_MK.ISO8859-5
rm -f mk_MK.UTF-8; 	/bin/ln -s mk mk_MK.UTF-8
rm -f nb_NO.UTF-8; 	/bin/ln -s no nb_NO.UTF-8
rm -f nl.ISO8859-15; 	/bin/ln -s nl nl.ISO8859-15
rm -f nl_BE; 		/bin/ln -s nl nl_BE
rm -f nl_BE.ISO8859-1; 	/bin/ln -s nl nl_BE.ISO8859-1
rm -f nl_BE.ISO8859-15; /bin/ln -s nl nl_BE.ISO8859-15
rm -f nl_BE.UTF-8; /bin/ln -s nl nl_BE.UTF-8
rm -f nl_NL; 		/bin/ln -s nl nl_NL
rm -f nl_NL.ISO8859-1; 	/bin/ln -s nl nl_NL.ISO8859-1
rm -f nl_NL.ISO8859-15; /bin/ln -s nl nl_NL.ISO8859-15
rm -f nl_NL.UTF-8; /bin/ln -s nl nl_NL.UTF-8
rm -f nn_NO.UTF-8; /bin/ln -s nn nn_NO.UTF-8
rm -f no_NO; 		/bin/ln -s no no_NO
rm -f no_NO.ISO8859-1; 	/bin/ln -s no no_NO.ISO8859-1
rm -f no_NY; 		/bin/ln -s no no_NY
rm -f pt.ISO8859-15; 	/bin/ln -s pt pt.ISO8859-15
rm -f pt_PT.ISO8859-1; /bin/ln -s pt_PT pt_PT.ISO8859-1
rm -f pt_PT.ISO8859-15;/bin/ln -s pt_PT pt_PT.ISO8859-15
rm -f pt_PT.UTF-8;/bin/ln -s pt_PT pt_PT.UTF-8
rm -f ro_RO; 		/bin/ln -s ro ro_RO
rm -f ro_RO.ISO8859-2; 	/bin/ln -s ro ro_RO.ISO8859-2
rm -f ro_RO.UTF-8; 	/bin/ln -s ro ro_RO.UTF-8
rm -f sk_SK; 		/bin/ln -s sk sk_SK
rm -f sk_SK.ISO8859-2; 	/bin/ln -s sk sk_SK.ISO8859-2
rm -f sk_SK.UTF-8; 	/bin/ln -s sk sk_SK.UTF-8
rm -f sl_SI; 		/bin/ln -s sl sl_SI
rm -f sl_SI.ISO8859-2; 	/bin/ln -s sl sl_SI.ISO8859-2
rm -f sl_SI.UTF-8; 	/bin/ln -s sl sl_SI.UTF-8
rm -f sq_AL; 		/bin/ln -s sq sq_AL
rm -f sq_AL.ISO8859-2; 	/bin/ln -s sq sq_AL.ISO8859-2
rm -f sq_AL.UTF-8; 	/bin/ln -s sq sq_AL.UTF-8
rm -f sr_CS; 		/bin/ln -s sr sr_CS
rm -f sr_CS.UTF-8; 		/bin/ln -s sr sr_CS.UTF-8
rm -f sr_SP; 		/bin/ln -s sr sr_SP
rm -f sr_YU; 		/bin/ln -s sr sr_YU
rm -f sr_YU.ISO8859-5; 	/bin/ln -s sr sr_YU.ISO8859-5
rm -f th_TH; 		/bin/ln -s th th_TH
rm -f th_TH.ISO8859-11; /bin/ln -s th th_TH.ISO8859-11
rm -f th_TH.TIS620; 	/bin/ln -s th th_TH.TIS620
rm -f th_TH.UTF-8; 	/bin/ln -s th th_TH.UTF-8
rm -f tr_TR; 		/bin/ln -s tr tr_TR
rm -f tr_TR.ISO8859-9; 	/bin/ln -s tr tr_TR.ISO8859-9
rm -f tr_TR.UTF-8; 	/bin/ln -s tr tr_TR.UTF-8

cd $RPM_BUILD_ROOT%{_datadir}
for ling in eu ro ru uk
do
  dummy_dirs=`find gnome/help -name $ling -prune`
  if [ X"$dummy_dirs" = 'X' ] ; then
    mkdir -p gnome/help/dummy/$ling
    echo "##### Not Found /usr/share/gnome/help/*/$ling"
  fi
  dummy_dirs=`find omf -name "*${ling}.omf" -prune`
  if [ X"$dummy_dirs" = 'X' ] ; then
    mkdir -p omf/dummy
    touch omf/dummy/dummy-${ling}.omf
    echo "##### Not Found /usr/share/omf/*/*-${ling}.omf"
  fi
done

rm -f $RPM_BUILD_ROOT%{_datadir}/locale/locale.alias
rm -f $RPM_BUILD_ROOT%{_datadir}/omf/*/*-C.omf

# Remove en_* dirs installed by gok.
rm -rf $RPM_BUILD_ROOT%{_datadir}/gok/en_*
# Remove en_?? *.mo files as en_?? locales are not installed.
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/en_*
rm -f $RPM_BUILD_ROOT%{_datadir}/locale/en_*.ISO8859-*

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/locale
%{_datadir}/locale/de
%{_datadir}/locale/de.ISO8859-15
%{_datadir}/locale/de.UTF-8
%{_datadir}/locale/de_AT
%{_datadir}/locale/de_AT.ISO8859-1
%{_datadir}/locale/de_AT.ISO8859-15
%{_datadir}/locale/de_AT.UTF-8
%{_datadir}/locale/de_CH
%{_datadir}/locale/de_CH.ISO8859-1
%{_datadir}/locale/de_CH.UTF-8
%{_datadir}/locale/de_DE
%{_datadir}/locale/de_DE.ISO8859-1
%{_datadir}/locale/de_DE.ISO8859-15
%{_datadir}/locale/de_DE.UTF-8
%{_datadir}/locale/de_LU.UTF-8
%defattr (-, root, bin)
%{_datadir}/gok/de*

%files -n SUNWgnome-l10nmessages-cs
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/locale
%{_datadir}/locale/cs
%{_datadir}/locale/cs_CZ
%{_datadir}/locale/cs_CZ.ISO8859-2
%{_datadir}/locale/cs_CZ.UTF-8
%{_datadir}/locale/cs_CZ.UTF-8@euro
%defattr (-, root, bin)
%{_datadir}/gok/cs*

#%files -n SUNWgnome-l10nmessages-de
#%defattr (-, root, other)
#%dir %attr (0755, root, sys) %{_datadir}
#%{_datadir}/locale/de
#%{_datadir}/locale/de.ISO8859-15
#%{_datadir}/locale/de.UTF-8
#%{_datadir}/locale/de_AT
#%{_datadir}/locale/de_AT.ISO8859-1
#%{_datadir}/locale/de_AT.ISO8859-15
#%{_datadir}/locale/de_AT.UTF-8
#%{_datadir}/locale/de_CH
#%{_datadir}/locale/de_CH.ISO8859-1
#%{_datadir}/locale/de_CH.UTF-8
#%{_datadir}/locale/de_DE
#%{_datadir}/locale/de_DE.ISO8859-1
#%{_datadir}/locale/de_DE.ISO8859-15
#%{_datadir}/locale/de_DE.UTF-8
#%{_datadir}/locale/de_LU.UTF-8

%files -n SUNWgnome-l10nmessages-es
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/locale
%{_datadir}/locale/es
%{_datadir}/locale/es.ISO8859-15
%{_datadir}/locale/es.UTF-8
%{_datadir}/locale/es_AR.ISO8859-1
%{_datadir}/locale/es_AR.UTF-8
%{_datadir}/locale/es_BO.ISO8859-1
%{_datadir}/locale/es_BO.UTF-8
%{_datadir}/locale/es_CL.ISO8859-1
%{_datadir}/locale/es_CL.UTF-8
%{_datadir}/locale/es_CO.ISO8859-1
%{_datadir}/locale/es_CO.UTF-8
%{_datadir}/locale/es_CR.ISO8859-1
%{_datadir}/locale/es_CR.UTF-8
%{_datadir}/locale/es_EC.ISO8859-1
%{_datadir}/locale/es_EC.UTF-8
%{_datadir}/locale/es_ES.ISO8859-1
%{_datadir}/locale/es_ES.ISO8859-15
%{_datadir}/locale/es_ES.UTF-8
%{_datadir}/locale/es_GT.ISO8859-1
%{_datadir}/locale/es_GT.UTF-8
%{_datadir}/locale/es_MX.ISO8859-1
%{_datadir}/locale/es_MX.UTF-8
%{_datadir}/locale/es_NI.ISO8859-1
%{_datadir}/locale/es_NI.UTF-8
%{_datadir}/locale/es_PA.ISO8859-1
%{_datadir}/locale/es_PA.UTF-8
%{_datadir}/locale/es_PE.ISO8859-1
%{_datadir}/locale/es_PE.UTF-8
%{_datadir}/locale/es_PY.ISO8859-1
%{_datadir}/locale/es_PY.UTF-8
%{_datadir}/locale/es_SV.ISO8859-1
%{_datadir}/locale/es_SV.UTF-8
%{_datadir}/locale/es_UY.ISO8859-1
%{_datadir}/locale/es_UY.UTF-8
%{_datadir}/locale/es_VE.ISO8859-1
%{_datadir}/locale/es_VE.UTF-8
%{_datadir}/locale/es_AR
%{_datadir}/locale/es_CL
%{_datadir}/locale/es_CO
%{_datadir}/locale/es_CR
%{_datadir}/locale/es_DO
%{_datadir}/locale/es_EC
%{_datadir}/locale/es_ES
%{_datadir}/locale/es_GT
%{_datadir}/locale/es_HN
%{_datadir}/locale/es_MX
%{_datadir}/locale/es_NI
%{_datadir}/locale/es_PA
%{_datadir}/locale/es_PE
%{_datadir}/locale/es_PR
%{_datadir}/locale/es_SV
%{_datadir}/locale/es_UY
%{_datadir}/locale/es_VE
%defattr (-, root, bin)
%{_datadir}/gok/es*

%files -n SUNWgnome-l10nmessages-fr
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/locale
%{_datadir}/locale/fr
%{_datadir}/locale/fr.ISO8859-15
%{_datadir}/locale/fr.UTF-8
%{_datadir}/locale/fr_BE
%{_datadir}/locale/fr_BE.ISO8859-1
%{_datadir}/locale/fr_BE.ISO8859-15
%{_datadir}/locale/fr_BE.UTF-8
%{_datadir}/locale/fr_CA
%{_datadir}/locale/fr_CA.ISO8859-1
%{_datadir}/locale/fr_CA.UTF-8
%{_datadir}/locale/fr_CH
%{_datadir}/locale/fr_CH.ISO8859-1
%{_datadir}/locale/fr_CH.UTF-8
%{_datadir}/locale/fr_FR
%{_datadir}/locale/fr_FR.ISO8859-1
%{_datadir}/locale/fr_FR.ISO8859-15
%{_datadir}/locale/fr_FR.UTF-8
%{_datadir}/locale/fr_LU.UTF-8
%defattr (-, root, bin)
%{_datadir}/gok/fr*

%files -n SUNWgnome-l10nmessages-hu
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/locale
%{_datadir}/locale/hu
%{_datadir}/locale/hu_HU
%{_datadir}/locale/hu_HU.ISO8859-2
%{_datadir}/locale/hu_HU.UTF-8
%defattr (-, root, bin)
%{_datadir}/gok/hu*

%files -n SUNWgnome-l10nmessages-it
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/locale
%{_datadir}/locale/it
%{_datadir}/locale/it.ISO8859-15
%{_datadir}/locale/it.UTF-8
%{_datadir}/locale/it_IT
%{_datadir}/locale/it_IT.ISO8859-1
%{_datadir}/locale/it_IT.ISO8859-15
%{_datadir}/locale/it_IT.UTF-8
%defattr (-, root, bin)
%{_datadir}/gok/it*

%files -n SUNWgnome-l10nmessages-ja
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/locale
%{_datadir}/locale/ja
%{_datadir}/locale/ja_JP.PCK
%{_datadir}/locale/ja_JP.UTF-8
%{_datadir}/locale/ja_JP.eucJP
%defattr (-, root, bin)
%{_datadir}/gok/ja*

%files -n SUNWgnome-l10nmessages-ko
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/locale
%{_datadir}/locale/ko
%{_datadir}/locale/ko.UTF-8
%{_datadir}/locale/ko_KR.EUC
%{_datadir}/locale/ko_KR.UTF-8
%defattr (-, root, bin)
%{_datadir}/gok/ko*

%files -n SUNWgnome-l10nmessages-pl
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/locale
%{_datadir}/locale/pl
%{_datadir}/locale/pl.UTF-8
%{_datadir}/locale/pl_PL
%{_datadir}/locale/pl_PL.ISO8859-2
%{_datadir}/locale/pl_PL.UTF-8
%defattr (-, root, bin)
%{_datadir}/gok/pl*

%files -n SUNWgnome-l10nmessages-ptBR
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/locale
%{_datadir}/locale/pt_BR
%{_datadir}/locale/pt_BR.ISO8859-1
%{_datadir}/locale/pt_BR.UTF-8
%defattr (-, root, bin)
%{_datadir}/gok/pt_BR*

%files -n SUNWgnome-l10nmessages-ru
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/locale
%{_datadir}/locale/ru
%{_datadir}/locale/ru.ansi-1251
%{_datadir}/locale/ru.ansi1251
%{_datadir}/locale/ru.koi8-r
%{_datadir}/locale/ru.UTF-8
%{_datadir}/locale/ru_RU
%{_datadir}/locale/ru_RU.ANSI1251
%{_datadir}/locale/ru_RU.ISO8859-5
%{_datadir}/locale/ru_RU.KOI8-R
%{_datadir}/locale/ru_RU.UTF-8
%defattr (-, root, bin)
%{_datadir}/gok/ru*

%files -n SUNWgnome-l10nmessages-sv
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/locale
%{_datadir}/locale/sv
%{_datadir}/locale/sv.ISO8859-15
%{_datadir}/locale/sv.UTF-8
%{_datadir}/locale/sv_SE
%{_datadir}/locale/sv_SE.ISO8859-1
%{_datadir}/locale/sv_SE.ISO8859-15
%{_datadir}/locale/sv_SE.UTF-8
%defattr (-, root, bin)
%{_datadir}/gok/sv*

%files -n SUNWgnome-l10nmessages-zhCN
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/locale
%{_datadir}/locale/zh_CN
%{_datadir}/locale/zh
%{_datadir}/locale/zh.GBK
%{_datadir}/locale/zh.UTF-8
%{_datadir}/locale/zh_CN.EUC
%{_datadir}/locale/zh_CN.GB18030
%{_datadir}/locale/zh_CN.GBK
%{_datadir}/locale/zh_CN.UTF-8
%defattr (-, root, bin)
%{_datadir}/gok/zh_CN*

%files -n SUNWgnome-l10nmessages-zhHK
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/locale
%{_datadir}/locale/zh_HK
%{_datadir}/locale/zh_HK.BIG5HK
%{_datadir}/locale/zh_HK.UTF-8
%defattr (-, root, bin)
%{_datadir}/gok/zh_HK*

%files -n SUNWgnome-l10nmessages-zhTW
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/locale
%{_datadir}/locale/zh_TW
%{_datadir}/locale/zh_TW.BIG5
%{_datadir}/locale/zh_TW.EUC
%{_datadir}/locale/zh_TW.UTF-8
%defattr (-, root, bin)
%{_datadir}/gok/zh_TW*

%files -n SUNWgnome-l10nmessages-extra
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/locale
%{_datadir}/locale/af*
%{_datadir}/locale/am*
%{_datadir}/locale/ang*
%{_datadir}/locale/ar*
%{_datadir}/locale/as*
%{_datadir}/locale/az*
%{_datadir}/locale/be*
%{_datadir}/locale/bg*
%{_datadir}/locale/bn*
%{_datadir}/locale/br*
%{_datadir}/locale/bs*
%{_datadir}/locale/ca*
%{_datadir}/locale/cy*
%{_datadir}/locale/da*
%{_datadir}/locale/dz*
%{_datadir}/locale/el*
%{_datadir}/locale/eo*
%{_datadir}/locale/et*
%{_datadir}/locale/eu*
%{_datadir}/locale/fa*
%{_datadir}/locale/fi*
%{_datadir}/locale/ga*
%{_datadir}/locale/gl*
%{_datadir}/locale/gn*
%{_datadir}/locale/gu*
%{_datadir}/locale/he*
%{_datadir}/locale/hi*
%{_datadir}/locale/hr*
%{_datadir}/locale/hy*
%{_datadir}/locale/ia*
%{_datadir}/locale/id*
%{_datadir}/locale/is*
%{_datadir}/locale/ka*
%{_datadir}/locale/km*
%{_datadir}/locale/kn*
%{_datadir}/locale/ku*
%{_datadir}/locale/ky*
%{_datadir}/locale/li*
%{_datadir}/locale/lt*
%{_datadir}/locale/lv*
%{_datadir}/locale/mg*
%{_datadir}/locale/mi*
%{_datadir}/locale/mk*
%{_datadir}/locale/ml*
%{_datadir}/locale/mn*
%{_datadir}/locale/mr*
%{_datadir}/locale/ms*
%{_datadir}/locale/mt*
%{_datadir}/locale/my_MM*
%{_datadir}/locale/nb*
%{_datadir}/locale/nds*
%{_datadir}/locale/ne*
%{_datadir}/locale/nl*
%{_datadir}/locale/nn*
%{_datadir}/locale/no*
%{_datadir}/locale/nso*
%{_datadir}/locale/oc*
%{_datadir}/locale/or*
%{_datadir}/locale/pa*
%{_datadir}/locale/pt
%{_datadir}/locale/pt.ISO8859-15
%{_datadir}/locale/pt_PT*
%{_datadir}/locale/ro*
%{_datadir}/locale/rw*
%{_datadir}/locale/sh_BA.ISO8859-2@bosnia
%{_datadir}/locale/sh_BA.UTF-8
%{_datadir}/locale/si*
%{_datadir}/locale/sk*
%{_datadir}/locale/sl*
%{_datadir}/locale/sq*
%{_datadir}/locale/sr*
%{_datadir}/locale/ta*
%{_datadir}/locale/te*
%{_datadir}/locale/tg*
%{_datadir}/locale/th*
%{_datadir}/locale/tk*
%{_datadir}/locale/tl*
%{_datadir}/locale/tr*
%{_datadir}/locale/tt*
%{_datadir}/locale/ug*
%{_datadir}/locale/uk*
%{_datadir}/locale/ur*
%{_datadir}/locale/uz*
%{_datadir}/locale/ven*
%{_datadir}/locale/vi*
%{_datadir}/locale/wa*
%{_datadir}/locale/xh*
%{_datadir}/locale/yi*
%{_datadir}/locale/yo*
%{_datadir}/locale/zu*
%defattr (-, root, bin)
%{_datadir}/gok/am*
%{_datadir}/gok/ar*
%{_datadir}/gok/az*
%{_datadir}/gok/be*
%{_datadir}/gok/bg*
%{_datadir}/gok/bn*
%{_datadir}/gok/ca*
%{_datadir}/gok/cy*
%{_datadir}/gok/da*
%{_datadir}/gok/dz*
%{_datadir}/gok/el*
%{_datadir}/gok/et*
%{_datadir}/gok/eu*
%{_datadir}/gok/fa*
%{_datadir}/gok/fi*
%{_datadir}/gok/ga*
%{_datadir}/gok/gl*
%{_datadir}/gok/gu*
%{_datadir}/gok/hi*
%{_datadir}/gok/hr*
%{_datadir}/gok/id*
%{_datadir}/gok/ka*
%{_datadir}/gok/ku*
%{_datadir}/gok/lt*
%{_datadir}/gok/lv*
%{_datadir}/gok/mk*
%{_datadir}/gok/ml*
%{_datadir}/gok/mn*
%{_datadir}/gok/mr*
%{_datadir}/gok/ms*
%{_datadir}/gok/nb*
%{_datadir}/gok/ne*
%{_datadir}/gok/nl*
%{_datadir}/gok/or*
%{_datadir}/gok/pa*
%{_datadir}/gok/pt
%{_datadir}/gok/ro*
%{_datadir}/gok/rw*
%{_datadir}/gok/sl*
%{_datadir}/gok/sq*
%{_datadir}/gok/sr*
%{_datadir}/gok/ta*
%{_datadir}/gok/uk*
%{_datadir}/gok/vi*

# Never install English locales because should support full functions
# on English locales as same as Solaris.
#%{_datadir}/locale/en_AU*
#%{_datadir}/locale/en_CA*
#%{_datadir}/locale/en_GB*
#%{_datadir}/locale/en_US*

%files -n SUNWgnome-l10ndocument-de
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/gnome
%{_datadir}/gnome/help/*/de
%{_datadir}/omf/*/*-de.omf
%{_datadir}/scrollkeeper/Templates/de

%files -n SUNWgnome-l10ndocument-es
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/gnome
%{_datadir}/gnome/help/*/es
%{_datadir}/omf/*/*-es.omf
%{_datadir}/scrollkeeper/Templates/es

%files -n SUNWgnome-l10ndocument-fr
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/gnome
%{_datadir}/gnome/help/*/fr
%{_datadir}/omf/*/*-fr.omf
%{_datadir}/scrollkeeper/Templates/fr

%files -n SUNWgnome-l10ndocument-it
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/gnome
%{_datadir}/gnome/help/*/it
%{_datadir}/omf/*/*-it.omf
%{_datadir}/scrollkeeper/Templates/it

%files -n SUNWgnome-l10ndocument-ja
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/gnome
%{_datadir}/gnome/help/*/ja
%{_datadir}/omf/*/*-ja.omf
%{_datadir}/scrollkeeper/Templates/ja

%files -n SUNWgnome-l10ndocument-ko
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/gnome
%{_datadir}/gnome/help/*/ko
%{_datadir}/omf/*/*-ko.omf
%{_datadir}/scrollkeeper/Templates/ko

%files -n SUNWgnome-l10ndocument-sv
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/gnome
%{_datadir}/gnome/help/*/sv
%{_datadir}/omf/*/*-sv.omf
%{_datadir}/scrollkeeper/Templates/sv

%files -n SUNWgnome-l10ndocument-zhCN
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/gnome
%{_datadir}/gnome/help/*/zh_CN
%{_datadir}/omf/*/*-zh_CN.omf
%{_datadir}/scrollkeeper/Templates/zh_CN

%files -n SUNWgnome-l10ndocument-zhTW
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/gnome
%{_datadir}/gnome/help/*/zh_TW
%{_datadir}/omf/*/*-zh_TW.omf
%{_datadir}/scrollkeeper/Templates/zh_TW

%files -n SUNWgnome-l10ndocument-zhHK
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/gnome
%{_datadir}/gnome/help/*/zh_HK
%{_datadir}/omf/*/*-zh_HK.omf

%files -n SUNWgnome-l10ndocument-ptBR
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/gnome
%{_datadir}/gnome/help/*/pt_BR
%{_datadir}/omf/*/*-pt_BR.omf
%{_datadir}/scrollkeeper/Templates/pt_BR

%files -n SUNWgnome-l10ndocument-extra
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/gnome
%{_datadir}/gnome/help/*/bg
%{_datadir}/gnome/help/*/da
%{_datadir}/gnome/help/*/el
%{_datadir}/gnome/help/*/eu
%{_datadir}/gnome/help/*/fi
%{_datadir}/gnome/help/*/nl
%{_datadir}/gnome/help/*/ro
%{_datadir}/gnome/help/*/ru
%{_datadir}/gnome/help/*/sr
%{_datadir}/gnome/help/*/pa
%{_datadir}/gnome/help/*/uk
%{_datadir}/omf/*/*-bg.omf
%{_datadir}/omf/*/*-da.omf
%{_datadir}/omf/*/*-el.omf
%{_datadir}/omf/*/*-eu.omf
%{_datadir}/omf/*/*-fi.omf
%{_datadir}/omf/*/*-nl.omf
%{_datadir}/omf/*/*-pa.omf
%{_datadir}/omf/*/*-ro.omf
%{_datadir}/omf/*/*-ru.omf
%{_datadir}/omf/*/*-sr.omf
%{_datadir}/omf/*/*-uk.omf
%{_datadir}/scrollkeeper/Templates/am
%{_datadir}/scrollkeeper/Templates/az
%{_datadir}/scrollkeeper/Templates/be
%{_datadir}/scrollkeeper/Templates/ca
%{_datadir}/scrollkeeper/Templates/cs
%{_datadir}/scrollkeeper/Templates/da
%{_datadir}/scrollkeeper/Templates/el
%{_datadir}/scrollkeeper/Templates/hu
%{_datadir}/scrollkeeper/Templates/kn
%{_datadir}/scrollkeeper/Templates/nl
%{_datadir}/scrollkeeper/Templates/no
%{_datadir}/scrollkeeper/Templates/pl
%{_datadir}/scrollkeeper/Templates/ro
%{_datadir}/scrollkeeper/Templates/ru
%{_datadir}/scrollkeeper/Templates/sk
%{_datadir}/scrollkeeper/Templates/sl
%{_datadir}/scrollkeeper/Templates/sr
%{_datadir}/scrollkeeper/Templates/sr@Latn
%{_datadir}/scrollkeeper/Templates/tr
%{_datadir}/scrollkeeper/Templates/uk
%{_datadir}/scrollkeeper/Templates/vi
%endif

%changelog
* Tue Oct 31 2006 - [email protected]
- Added SUNWgksu-l10n SUNWgnome-a11y-dasher-l10n SUNWgnome-cd-l10n
  SUNWgnome-keyring-manager-l10n SUNWgnome-meeting-l10n
  SUNWgnome-pilot-l10n SUNWgnome-session-l10n Fixes 6488189.
* Thu Oct 26 2006 - [email protected]
- Remove reference to SUNWgnome-removable-media-l10n as the base package has
  been obsoleted with the integration of hal into snv.
* Wed Oct 04 2006 - [email protected]
- Add si locale to 'extra' package. gdm, gnome-backgrounds and gnome-themse
  installed the files.
* Thu Sep 07 2006 - [email protected]
- Add nds@NFE locale to 'extra' package. Yelp (SUNWgnome-help-viewer) installed
  the files.
* Mon Sep 04 2006 - [email protected]
- Add gnome-media-player/gnome-removable-media/evolution-data-server/evolution-jescs/evolution-webcal l10n pkgs
* Wed Aug 30 2006 - [email protected]:
- Remove reference to SUNWgnome-perf-meter.
* Tue Aug 29 2006 - [email protected]
- Add gok/mr and gok/or locales to SUNWgnome-l10nmessages-extra.
* Fri Aug 25 2006 - [email protected]
- Add SUNWgnome-applets-l10n.
* Fri Jul 28 2006 - [email protected]
- Update for new languages. Remove dependencies on modules that no longer have 
  l10n pkgs.
* Fri Jul 28 2006 - [email protected]
- corrected fix for CR#6432073
* Wed Jul  5 2006 - [email protected]
- add SUNWgnome-gtksourceview-l10n
* Tue Jun 27 2006 - [email protected]
- updated with missing links to fix CR#6432073
* Mon Jun 12 2006 - [email protected]
- Add files from SUNWiso-codes-l10n.
- Set perms for dirs to match source packages.
* Sun Jun 11 2006 - [email protected]
- change group from other to bin/sys
* Sat Jun 10 2006 - [email protected]
- add the scrollkeeper templates to the appropriate l10ndocuments pkgs
* Fri Jun  9 2006 - [email protected]
- add SUNWiso-codes-l10n, part of CR 6436771
* Fri Jun  9 2006 - [email protected]
- Remove references from obsolete pkgs (gnome-im-switcher, gnome-jdshelp, 
  gnome-pilot-link, gnome-ps-viewer, evolution-socs-connect).
* Fri Jun  9 2006 - [email protected]
- Remove sr_SP in SUNW_LOC for integrate command.
* Wed Jun 07 2006 - [email protected]
- Add BuildRequires of all the included packages so that this module doesn't
  fail because of their absense.
* Wed May 31 2006 - [email protected]
- Delete en_?? files as they are not to be installed. Add new gok dirs because 
  the 1.0.10 tarball moved stuff around.
- Re-add the gtkam perm lines that were removed by Takao.
* Thu May 18 2006 - [email protected]
- Remove SUNWgnome-l10n*-unsupp packages and moved the l10n files into
  SUNWgnome-l10n*-extra.
- Add some European UTF-8 locales.
- Remove gtkam help files in l10ndocument-extra because it breaks the packaging
* Tue May 16 2006 - [email protected]
- Copy gtkam (SUNWgnome-camera) perms to the l10ndocument-extra package.
* Wed Apr 19 2006 - [email protected]
- Remove SUNWgnome-project-l10n reference: EOL'd.
* Wed Apr 19 2006 - [email protected]
- Add mg as unsupported language (only gnome-menus.mo in it).
* Mon Apr 10 2006 - [email protected]
- Add dz as unsupported language (only gnome-terminal.mo in it).
* Wed Mar 15 2006 - [email protected]
- Add km as unsupported language (only nautilus.mo in it).
* Mon Mar 13 2006 - [email protected]
- Add SUNWgnome-system-tools-l10n to list of Gnome packages.
* Thu Mar  2 2006 - [email protected]
- Add bg & vi as unsupported languages; remove gnome/javahelp code from the
  eu/ro/ru/uk section as there are no javahelp files any more.
* Tue Nov 29 2005 - [email protected]
- remove javahelp stuff
* Sun Nov 28 2004 - [email protected]
- Added SUNWgnome-hex-editor-l10n, part of #6189859
* Sun Nov 14 2004 - [email protected]
- Added SUNWgnome-perf-meter-l10n
* Tue Nov 29 2005 - [email protected]
- remove javahelp stuff
* Fri Nov 11 2005 - [email protected]
- Only build these packages when doing a l10n build.
* Sun Nov 28 2004 - [email protected]
- Added SUNWgnome-hex-editor-l10n, part of #6189859
* Sun Nov 14 2004 - [email protected]
- Added SUNWgnome-perf-meter-l10n
* Fri Nov 12 2004 - [email protected]
- Update symlink part for link to other pkg, fix dummy part
* Wed Oct 20 2004 - [email protected]
- remove symlinks in /usr/share/locale if they already exist
* Mon Oct 04 2004 - [email protected]
- Added SUNWgnome-sys-suspend-l10n and SUNWgnome-crash-report-l10n
* Fri Oct 01 2004 - [email protected]
- Added SUNWgnome-media-player-l10n
* Thu Sep 30 2004 - [email protected]
- Added nb and or locales
* Fri Sep 17 2004 - [email protected]
- Added SUNWgnome-jdshelp-l10n to fix 5094113
* Wed Sep 15 2004 - [email protected]
- Add SUNWfsexam-l10n in GNOME_PKGS
* Mon Sep 13 2004 - [email protected]
- Change the package name from SUNWevolution-xchg-connect-l10n
  to SUNWevolution-exchange-l10n
* Mon Sep 06 2004 - [email protected]
- Chagned SUNW_Loc for hu to fix bug 5096874
* Wed Sep 01 2004 - [email protected]
- Added SUNWgnome-user-docs-l10n in PKG list
* Fri Aug 20 2004 - [email protected]
- Updated not to stop by missing packages.
* Fri Aug 20 2004 - [email protected]
- Initial implementation