summaryrefslogtreecommitdiff
path: root/packaging/locales-init.spec
blob: ab9dd6d963b6bc3c5281cb30a764373fa596ffc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Name:       locales-init
Summary:    Locales selection
Version:    1.0
Release:    1
Group:      System/Libraries
License:    Apache License, Version 2.0
Requires(post): eglibc-common
Requires(post): findutils

%description
Locales selection

%build
echo "generating locales.."

%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).utf8"
LOCALE_REGEXP2="hy_AM|sr_RS|hi_IN"

find /usr/lib/locale -maxdepth 1 -mindepth 1 | egrep -v "$LOCALE_REGEXP" | egrep -v "$LOCALE_REGEXP2" |
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