Tizen 2.1 base tizen_2.1 2.1b_release accepted/tizen/20130520.101248 accepted/tizen_2.1/20130425.025220 submit/tizen/20130517.045207 submit/tizen_2.1/20130424.233125
authorJinkun Jang <jinkun.jang@samsung.com>
Tue, 12 Mar 2013 16:51:46 +0000 (01:51 +0900)
committerJinkun Jang <jinkun.jang@samsung.com>
Tue, 12 Mar 2013 16:51:46 +0000 (01:51 +0900)
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/config [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/postinst [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/templates [new file with mode: 0644]
packaging/locales-init.spec [new file with mode: 0755]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..6d06f5b
--- /dev/null
@@ -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 (file)
index 0000000..7ed6ff8
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/debian/config b/debian/config
new file mode 100644 (file)
index 0000000..1de6b90
--- /dev/null
@@ -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 (file)
index 0000000..3056c95
--- /dev/null
@@ -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 (file)
index 0000000..4e72f9d
--- /dev/null
@@ -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 (file)
index 0000000..220a658
--- /dev/null
@@ -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 (executable)
index 0000000..e6192f6
--- /dev/null
@@ -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 (file)
index 0000000..49ce762
--- /dev/null
@@ -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 (executable)
index 0000000..431be64
--- /dev/null
@@ -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