diff options
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/locales-init.spec | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/packaging/locales-init.spec b/packaging/locales-init.spec new file mode 100755 index 0000000..431be64 --- /dev/null +++ b/packaging/locales-init.spec @@ -0,0 +1,35 @@ +Name: locales-init +Summary: Locales selection +Version: 1.1 +Release: 1 +Group: TO_BE/FILLED_IN +License: Apache License, Version 2.0 +Source0: %{name}-%{version}.tar.gz +Requires(post): eglibc-common +Requires(post): findutils + +%description +Locales selection + +%build +echo "generating locales.." + +%prep + +%install + +%post +LOCALE_REGEXP="(az_AZ|eu_ES|bg_BG|ca_ES|zh_CN|zh_HK|zh_TW|hr_HR|cs_CZ|da_DK|nl_NL|en_GB|en_US|et_EE|fi_FI|fr_FR|gl_ES|ka_GE|de_DE|el_GR|hu_HU|is_IS|ga_IE|it_IT|ja_JP|kk_KZ|ko_KR|lv_LV|lt_LT|mk_MK|nb_NO|pl_PL|pt_PT|pt_BR|ro_RO|ru_RU|sk_SK|sl_SI|es_ES|es_US|sv_SE|tr_TR|uk_UA|uz_UZ|ar_AE|zh_SG|en_PH|fr_CA|he_IL|id_ID|ms_MY|th_TH).utf8|(hy_AM|sr_RS|hi_IN|fa_Ir|ur_PK|vi_VN)$" +LOCALE_DIR="/usr/lib/locale" + +find "$LOCALE_DIR" -maxdepth 1 -mindepth 1 | grep -Ev "$LOCALE_REGEXP" | +while read line +do + rm -rf "$line" +done + +%files + +%changelog +* Sun Jul 15 2012 - Hyungdeuk Kim <hd3.kim@samsung.com> +- Add required pkg(findutils) for postinst at spec file |