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 | |
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
-rw-r--r-- | debian/changelog | 79 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/config | 8 | ||||
-rw-r--r-- | debian/control | 16 | ||||
-rw-r--r-- | debian/copyright | 24 | ||||
-rw-r--r-- | debian/postinst | 67 | ||||
-rwxr-xr-x | debian/rules | 3 | ||||
-rw-r--r-- | debian/templates | 4 | ||||
-rwxr-xr-x | packaging/locales-init.spec | 35 |
9 files changed, 237 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..6d06f5b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,79 @@ +samsung-locales-init (0.8-4) unstable; urgency=low + + * remove unused locale resources + * Git: slp/pkgs/s/samsung-locales-init + * Tag: samsung-locales-init_0.8-4 + + -- Hyungdeuk Kim <hd3.kim@samsung.com> Fri, 15 Jun 2012 13:20:47 +0900 + +samsung-locales-init (0.8-3) unstable; urgency=low + + * add '%files' to spec file for binary package + * Git: slp/pkgs/s/samsung-locales-init + * Tag: samsung-locales-init_0.8-3 + + -- Hyungdeuk Kim <hd3.kim@samsung.com> Fri, 23 Mar 2012 13:20:47 +0900 + +samsung-locales-init (0.8-2) unstable; urgency=low + + * pkg upload + * Git: slp/pkgs/s/samsung-locales-init + * Tag: samsung-locales-init_0.8-2 + + -- Hyungdeuk Kim <hd3.kim@samsung.com> Fri, 16 Mar 2012 01:20:47 +0900 + +samsung-locales-init (0.8-1) unstable; urgency=low + + * upload spec file + * Git: slp/pkgs/s/samsung-locales-init + * Tag: samsung-locales-init_0.8-1 + + -- Hyungdeuk Kim <hd3.kim@samsung.com> Fri, 16 Mar 2012 01:10:47 +0900 + +samsung-locales-init (0.8) unstable; urgency=low + + * Change license once more, to Apache-2.0. + + -- Rafal Krypa <r.krypa@samsung.com> Mon, 19 Dec 2011 15:10:47 +0100 + +samsung-locales-init (0.7) unstable; urgency=low + + * Change license to GPL-2+. + + -- Rafal Krypa <r.krypa@samsung.com> Thu, 15 Dec 2011 14:06:53 +0100 + +samsung-locales-init (0.6) unstable; urgency=low + + * Use debconf to configure package + + -- Karol Lewandowski <k.lewandowsk@samsung.com> Mon, 29 Nov 2010 14:10:09 +0900 + +samsung-locales-init (0.5) unstable; urgency=low + + * Provide scratchbox1-compatible glibc-common package replacement + + -- Karol Lewandowski <k.lewandowsk@samsung.com> Mon, 22 Nov 2010 15:38:12 +0900 + +samsung-locales-init (0.4) unstable; urgency=low + + * Use the proper name in the changelog as well + + -- Rafal Krypa <r.krypa@@samsung.com> Wed, 01 Sep 2010 15:44:14 +0900 + +slp-locales-init (0.3) unstable; urgency=low + + * Change package name to samsung-locales-init + + -- Rafal Krypa <r.krypa@@samsung.com> Mon, 30 Aug 2010 12:55:32 +0900 + +s3c-locales (0.2) unstable; urgency=low + + * Drop jp, ru, zh locales - keep only few popular en_* and ko locales + + -- Karol Lewandowski <k.lewandowsk@samsung.com> Wed, 26 May 2010 13:33:50 +0200 + +s3c-locales (0.1) unstable; urgency=low + + * Initial Release. + + -- Rafal Krypa <r.krypa@samsung.com> Mon, 18 Jan 2010 15:33:39 +0900 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/config b/debian/config new file mode 100644 index 0000000..1de6b90 --- /dev/null +++ b/debian/config @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_input low samsung-locales-init/locales-regex || true +db_go || true diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3056c95 --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: samsung-locales-init +Section: misc +Priority: extra +Maintainer: Rafal Krypa <r.krypa@samsung.com> +Build-Depends: cdbs, debhelper (>= 5) +Standards-Version: 3.8.3 + +Package: samsung-locales-init +Architecture: all +Depends: ${misc:Depends}, debconf-2.0, locales +Provides: glibc-common +Description: Locales selection for Samsung platforms + Enables and generates locales needed on Samsung platforms. + . + This package also provides scratchbox1-compatible 'glibc-common' + package containg exactly same set of generated locales. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..4e72f9d --- /dev/null +++ b/debian/copyright @@ -0,0 +1,24 @@ +This work was packaged for Debian by: + + Rafal Krypa <r.krypa@samsung.com> on Mon, 18 Jan 2010 15:33:39 +0900 + +Copyright: + + Copyright (C) 2010 Samsung Electronics + +License: + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +On Debian systems, the complete text of the Apache version 2.0 license +can be found in "/usr/share/common-licenses/Apache-2.0". diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..220a658 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,67 @@ +#!/bin/sh +# postinst script for samsung-locales-init +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <postinst> `abort-remove' +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +. /usr/share/debconf/confmodule + +case "$1" in + *configure) + TMP="`tempfile`" + + db_get samsung-locales-init/locales-regex + LOCALE_REGEXP="$RET" + + egrep -v '^(#|$)' /etc/locale.gen | + egrep -v "^ *$LOCALE_REGEXP" | + while read line + do + echo Disabling locale `echo $line | cut -d' ' -f1` 1>&2 + echo "-e 's|^$line\$|# $line|'" + done | + xargs sed /etc/locale.gen -r -e '' >"$TMP" + cat "$TMP" >/etc/locale.gen + + egrep "^# *$LOCALE_REGEXP" /etc/locale.gen | + sed 's/^# *//' | + while read line + do + echo Enabling locale `echo $line | cut -d' ' -f1` 1>&2 + echo "-e 's|^# *$line\$|$line|'" + done | + xargs sed /etc/locale.gen -r -e '' >"$TMP" + cat "$TMP" >/etc/locale.gen + rm "$TMP" + + locale-gen + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..e6192f6 --- /dev/null +++ b/debian/rules @@ -0,0 +1,3 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk diff --git a/debian/templates b/debian/templates new file mode 100644 index 0000000..49ce762 --- /dev/null +++ b/debian/templates @@ -0,0 +1,4 @@ +Template: samsung-locales-init/locales-regex +Description: Regex of locales to generate +Type: string +Default: (de_DE|el_GR|en_US|es_ES|fr_FR|it_IT|ja_JP|ko_KR|nl_NL|pt_PT|ru_RU|tr_TR|zh_CN|zh_HK|zh_TW).*UTF-8 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 |