upload tizen1.0 source
authorKim Kibum <kb0929.kim@samsung.com>
Sun, 29 Apr 2012 08:01:32 +0000 (17:01 +0900)
committerKim Kibum <kb0929.kim@samsung.com>
Sun, 29 Apr 2012 08:01:32 +0000 (17:01 +0900)
debian/changelog
debian/copyright
packaging/locales-init.spec [new file with mode: 0644]

index b2ae32d..df8a9e1 100644 (file)
@@ -1,7 +1,7 @@
-locales-init (0.7) unstable; urgency=low
+locales-init (0.8-2) unstable; urgency=low
 
   * Initial Release.
   * Git: pkgs/l/locales-init
-  * Tag: locales-init_0.7
+  * Tag: locales-init_0.8-2
 
  -- Rafal Krapa <r.krypa@samsung.com>  Thu, 15 Dec 2011 14:06:53 +0100
index 16fab4f..4e72f9d 100644 (file)
@@ -8,19 +8,17 @@ Copyright:
 
 License:
 
-    This package is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
+   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
 
-    This package is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
+       http://www.apache.org/licenses/LICENSE-2.0
 
-    You should have received a copy of the GNU General Public License
-    along with this program. If not, see <http://www.gnu.org/licenses/>
-
-On Debian systems, the complete text of the GNU General
-Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+   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/packaging/locales-init.spec b/packaging/locales-init.spec
new file mode 100644 (file)
index 0000000..bd4a358
--- /dev/null
@@ -0,0 +1,43 @@
+Name:       locales-init
+Summary:    Locales selection for Tizen platforms
+Version:    0.8
+Release:    3
+Group:      System/Libraries
+License:    Apache License, Version 2.0
+
+%description
+Locales selection for Tizen platforms
+
+%build
+echo "generating locales.."
+
+%post
+TMP="`tempfile`"
+LOCALE_REGEXP="(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"
+
+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
+
+%files
+
+