diff options
author | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-13 01:51:46 +0900 |
---|---|---|
committer | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-13 01:51:46 +0900 |
commit | 748a2f57bcb9472a17fa74035a3eccf53bb757d5 (patch) | |
tree | c4033dfebd7d8ae365af82626415b7d6afcb6990 /packaging | |
parent | ea3bce7969e299386bd35f2bca00c33cf31e5d37 (diff) | |
download | locales-init-748a2f57bcb9472a17fa74035a3eccf53bb757d5.tar.gz locales-init-748a2f57bcb9472a17fa74035a3eccf53bb757d5.tar.bz2 locales-init-748a2f57bcb9472a17fa74035a3eccf53bb757d5.zip |
Tizen 2.1 basesubmit/tizen_2.2/20130714.151757submit/tizen_2.1/20130424.233125accepted/tizen_2.1/20130425.0252202.2_release2.2.1_release2.1b_releasetizen_2.2tizen_2.1
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 |