#
# spec file for package SUNWtgnome-l10nui
#
# includes module(s): all modules which include l10n files
#
# Copyright (c) 2009 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define owner funix
#
%include Solaris.inc
Name: SUNWtgnome-l10n-ui
Summary: GNOME Trusted Extensions software message
Version: 2.6.0
SUNW_BaseDir: %{_basedir}
SUNW_Category: TX,GNOME2,application,%{jds_version},
SUNW_PkgList: SUNWtgnome-tsol-libs
%include default-depend.inc
SUNW_Copyright: %{name}.copyright
Requires: SUNWtgnome-tsol-libs
BuildRequires: SUNWtgnome-tsol-libs-l10n
BuildRequires: SUNWtgnome-tsoljdsdevmgr-l10n
BuildRequires: SUNWtgnome-tsoljdslabel-l10n
BuildRequires: SUNWtgnome-tsoljdsselmgr-l10n
BuildRequires: SUNWtgnome-tstripe-l10n
BuildRoot: %{_tmppath}/%{name}-%{version}
%if %build_l10n
%package -n SUNWtgnome-l10n-ui-cs
IPS_package_name: gnome/trusted/locale/cs
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Trusted Extensions/Localizations
Summary: GNOME Trusted Extensions software message files for Czech
SUNW_BaseDir: %{_basedir}
SUNW_Category: TX,GNOME2,application,%{jds_version},l10ncs
SUNW_PkgList: SUNWtgnome-tsol-libs
SUNW_Loc: cs_CZ
%include default-depend.inc
SUNW_Copyright: %{name}.copyright
Requires: SUNWtgnome-tsol-libs
%package -n SUNWtgnome-l10n-ui-de
IPS_package_name: gnome/trusted/locale/de
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Trusted Extensions/Localizations
Summary: GNOME Trusted Extensions software message files for German
SUNW_BaseDir: %{_basedir}
SUNW_Category: TX,GNOME2,application,%{jds_version},l10nde
SUNW_PkgList: SUNWtgnome-tsol-libs
SUNW_Loc: de
%include default-depend.inc
SUNW_Copyright: %{name}.copyright
Requires: SUNWtgnome-tsol-libs
%package -n SUNWtgnome-l10n-ui-es
IPS_package_name: gnome/trusted/locale/es
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Trusted Extensions/Localizations
Summary: GNOME Trusted Extensions software message files for Spanish
SUNW_BaseDir: %{_basedir}
SUNW_Category: TX,GNOME2,application,%{jds_version},l10nes
SUNW_PkgList: SUNWtgnome-tsol-libs
SUNW_Loc: es
%include default-depend.inc
SUNW_Copyright: %{name}.copyright
Requires: SUNWtgnome-tsol-libs
%package -n SUNWtgnome-l10n-ui-fr
IPS_package_name: gnome/trusted/locale/fr
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Trusted Extensions/Localizations
Summary: GNOME Trusted Extensions software message files for French
SUNW_BaseDir: %{_basedir}
SUNW_Category: TX,GNOME2,application,%{jds_version},l10nfr
SUNW_PkgList: SUNWtgnome-tsol-libs
SUNW_Loc: fr
%include default-depend.inc
SUNW_Copyright: %{name}.copyright
Requires: SUNWtgnome-tsol-libs
%package -n SUNWtgnome-l10n-ui-hu
IPS_package_name: gnome/trusted/locale/hu
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Trusted Extensions/Localizations
Summary: GNOME Trusted Extensions software message files for Hungarian
SUNW_BaseDir: %{_basedir}
SUNW_Category: TX,GNOME2,application,%{jds_version},l10nhu
SUNW_PkgList: SUNWtgnome-tsol-libs
SUNW_Loc: hu_HU
%include default-depend.inc
SUNW_Copyright: %{name}.copyright
Requires: SUNWtgnome-tsol-libs
%package -n SUNWtgnome-l10n-ui-it
IPS_package_name: gnome/trusted/locale/it
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Trusted Extensions/Localizations
Summary: GNOME Trusted Extensions software message files for Italian
SUNW_BaseDir: %{_basedir}
SUNW_Category: TX,GNOME2,application,%{jds_version},l10nit
SUNW_PkgList: SUNWtgnome-tsol-libs
SUNW_Loc: it
%include default-depend.inc
SUNW_Copyright: %{name}.copyright
Requires: SUNWtgnome-tsol-libs
%package -n SUNWtgnome-l10n-ui-ja
IPS_package_name: gnome/trusted/locale/ja
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Trusted Extensions/Localizations
Summary: GNOME Trusted Extensions software message files for Japanese
SUNW_BaseDir: %{_basedir}
SUNW_Category: TX,GNOME2,application,%{jds_version},l10nja
SUNW_PkgList: SUNWtgnome-tsol-libs
SUNW_Loc: ja,ja_JP.PCK,ja_JP.UTF-8
%include default-depend.inc
SUNW_Copyright: %{name}.copyright
Requires: SUNWtgnome-tsol-libs
%package -n SUNWtgnome-l10n-ui-ko
IPS_package_name: gnome/trusted/locale/ko
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Trusted Extensions/Localizations
Summary: GNOME Trusted Extensions software message files for Korean
SUNW_BaseDir: %{_basedir}
SUNW_Category: TX,GNOME2,application,%{jds_version},l10nko
SUNW_PkgList: SUNWtgnome-tsol-libs
SUNW_Loc: ko,ko.UTF-8
%include default-depend.inc
SUNW_Copyright: %{name}.copyright
Requires: SUNWtgnome-tsol-libs
%package -n SUNWtgnome-l10n-ui-pl
IPS_package_name: gnome/trusted/locale/pl
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Trusted Extensions/Localizations
Summary: GNOME Trusted Extensions software message files for Polish
SUNW_BaseDir: %{_basedir}
SUNW_Category: TX,GNOME2,application,%{jds_version},l10npl
SUNW_PkgList: SUNWtgnome-tsol-libs
SUNW_Loc: pl_PL
%include default-depend.inc
SUNW_Copyright: %{name}.copyright
Requires: SUNWtgnome-tsol-libs
%package -n SUNWtgnome-l10n-ui-ptBR
IPS_package_name: gnome/trusted/locale/pt_br
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Trusted Extensions/Localizations
Summary: GNOME Trusted Extensions software message files for Portugese Brazilian
SUNW_BaseDir: %{_basedir}
SUNW_Category: TX,GNOME2,application,%{jds_version},l10nptbr
SUNW_PkgList: SUNWtgnome-tsol-libs
SUNW_Loc: pt_BR
%include default-depend.inc
SUNW_Copyright: %{name}.copyright
Requires: SUNWtgnome-tsol-libs
%package -n SUNWtgnome-l10n-ui-ru
IPS_package_name: gnome/trusted/locale/ru
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Trusted Extensions/Localizations
Summary: GNOME Trusted Extensions software message files for Russian
SUNW_BaseDir: %{_basedir}
SUNW_Category: TX,GNOME2,application,%{jds_version},l10nru
SUNW_PkgList: SUNWtgnome-tsol-libs
SUNW_Loc: ru_RU
%include default-depend.inc
SUNW_Copyright: %{name}.copyright
Requires: SUNWtgnome-tsol-libs
%package -n SUNWtgnome-l10n-ui-sv
IPS_package_name: gnome/trusted/locale/sv
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Trusted Extensions/Localizations
Summary: GNOME Trusted Extensions software message files for Swedish
SUNW_BaseDir: %{_basedir}
SUNW_Category: TX,GNOME2,application,%{jds_version},l10nsv
SUNW_PkgList: SUNWtgnome-tsol-libs
SUNW_Loc: sv
%include default-depend.inc
SUNW_Copyright: %{name}.copyright
Requires: SUNWtgnome-tsol-libs
%package -n SUNWtgnome-l10n-ui-zhCN
IPS_package_name: gnome/trusted/locale/zh_cn
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Trusted Extensions/Localizations
Summary: GNOME Trusted Extensions software message files for Simplified Chinese
SUNW_BaseDir: %{_basedir}
SUNW_Category: TX,GNOME2,application,%{jds_version},l10nzhcn
SUNW_PkgList: SUNWtgnome-tsol-libs
SUNW_Loc: zh,zh.GBK,zh_CN.GB18030,zh.UTF-8
%include default-depend.inc
SUNW_Copyright: %{name}.copyright
Requires: SUNWtgnome-tsol-libs
%package -n SUNWtgnome-l10n-ui-zhHK
IPS_package_name: gnome/trusted/locale/zh_hk
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Trusted Extensions/Localizations
Summary: GNOME Trusted Extensions software message files for Hong Kong Chinese
SUNW_BaseDir: %{_basedir}
SUNW_Category: TX,GNOME2,application,%{jds_version},l10nzhhk
SUNW_PkgList: SUNWtgnome-tsol-libs
SUNW_Loc: zh_HK.BIG5HK,zh_HK.UTF-8
%include default-depend.inc
SUNW_Copyright: %{name}.copyright
Requires: SUNWtgnome-tsol-libs
%package -n SUNWtgnome-l10n-ui-zhTW
IPS_package_name: gnome/trusted/locale/zh_tw
Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Trusted Extensions/Localizations
Summary: GNOME Trusted Extensions software message files for Traditional Chinese
SUNW_BaseDir: %{_basedir}
SUNW_Category: TX,GNOME2,application,%{jds_version},l10nzhtw
SUNW_PkgList: SUNWtgnome-tsol-libs
SUNW_Loc: zh_TW,zh_TW.BIG5,zh_TW.UTF-8
%include default-depend.inc
SUNW_Copyright: %{name}.copyright
Requires: SUNWtgnome-tsol-libs
%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='
SUNWtgnome-tsol-libs-l10n
SUNWtgnome-tsoljdsdevmgr-l10n
SUNWtgnome-tsoljdslabel-l10n
SUNWtgnome-tsoljdsselmgr-l10n
SUNWtgnome-tstripe-l10n
'
COPYRIGHT_FILE_NAME=COPYING.tjds
for pkg in $GNOME_PKGS $EVOLUTION_PKGS
do
if [ -d $pkg ] ; then
(cd $pkg/reloc; gtar cfp - .) | (cd $RPM_BUILD_ROOT/usr; gtar xfp - )
else
echo "#### Not Found $pkg"
fi
done
# removing copyright before merge it.
for copyright in \
`find $RPM_BUILD_ROOT/usr -name "*.ui.copyright" -o -name "*.help.copyright" |\
egrep 'locale|gnome/help' &`
do
rm -f $copyright
done
# merging copyright with each $pkg
for pkg in $GNOME_PKGS $EVOLUTION_PKGS $OTHER_PKGS
do
if [ -d $pkg ] ; then
# Invoke grep on the background job so that it return 0 in case of no match.
for copyright in \
`find $pkg/reloc -name "*.ui.copyright" -o -name "*.help.copyright" |\
egrep 'locale|gnome/help' &`
do
subpath=`echo $copyright | sed -e "s|$pkg/reloc/||"`
IS_HELP=`echo $copyright | grep "gnome/help" &`
echo x"$IS_HELP"
if [ x"$IS_HELP" != x ] ; then
subpath=`dirname $subpath`
LOCALE=`basename $subpath`
subpath=`dirname $subpath`
subpath=`dirname $subpath`
mkdir -p $RPM_BUILD_ROOT/usr/$subpath/copyright/$LOCALE
cat $copyright >> $RPM_BUILD_ROOT/usr/$subpath/copyright/$LOCALE/$COPYRIGHT_FILE_NAME
else
subpath=`dirname $subpath`
cat $copyright >> $RPM_BUILD_ROOT/usr/$subpath/$COPYRIGHT_FILE_NAME
fi
done
fi
done
# compressing copyright
for copyright in `find $RPM_BUILD_ROOT/usr -name $COPYRIGHT_FILE_NAME | egrep 'locale|gnome/help'`
do
# if the file is not gziped.
if [ -f $copyright ] ; then
gzip $copyright
#chown root:other $copyright.gz
chmod 644 $copyright.gz
fi
done
# No translations
for ling in cs hu pl
do
rm -rf $RPM_BUILD_ROOT/usr/share/locale/$ling
done
%clean
rm -rf $RPM_BUILD_ROOT
#%files -n SUNWtgnome-l10n-ui-cs
#%defattr (-, root, other)
#%dir %attr (0755, root, sys) %{_datadir}
#%{_datadir}/locale/cs
%files -n SUNWtgnome-l10n-ui-de
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/locale/de
%files -n SUNWtgnome-l10n-ui-es
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/locale/es
%files -n SUNWtgnome-l10n-ui-fr
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/locale/fr
#%files -n SUNWtgnome-l10n-ui-hu
#%defattr (-, root, other)
#%dir %attr (0755, root, sys) %{_datadir}
#%{_datadir}/locale/hu
%files -n SUNWtgnome-l10n-ui-it
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/locale/it
%files -n SUNWtgnome-l10n-ui-ja
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/locale/ja
%files -n SUNWtgnome-l10n-ui-ko
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/locale/ko
#%files -n SUNWtgnome-l10n-ui-pl
#%defattr (-, root, other)
#%dir %attr (0755, root, sys) %{_datadir}
#%{_datadir}/locale/pl
%files -n SUNWtgnome-l10n-ui-ptBR
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/locale/pt_BR
%files -n SUNWtgnome-l10n-ui-ru
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/locale/ru
%files -n SUNWtgnome-l10n-ui-sv
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/locale/sv
%files -n SUNWtgnome-l10n-ui-zhCN
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/locale/zh_CN
%files -n SUNWtgnome-l10n-ui-zhHK
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/locale/zh_HK
%files -n SUNWtgnome-l10n-ui-zhTW
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/locale/zh_TW
%endif
%changelog
* Thu May 22 2008 - [email protected]
- Remove obsolete %build_tjds code.
* Fri Apr 04 2008 - takao.fujiwara
- Add a copyright merging.
* Thu Jan 11 2007 - [email protected]
- s/tar/gtar/ to fix errors about ACL support.
* Thu Jan 11 2007 - [email protected]
- Add BuildRequires entries so that module is not built unless these packages
are installed. This results in cleaner build failures.
* Fri Sep 15 2006 - [email protected]
- Initial implementation