From cfa3a37844d200fa82f36cb32363b2231111e4ae Mon Sep 17 00:00:00 2001 From: Kim Kibum Date: Sun, 29 Apr 2012 17:01:32 +0900 Subject: [PATCH] upload tizen1.0 source --- debian/changelog | 4 ++-- debian/copyright | 24 +++++++++++------------- packaging/locales-init.spec | 43 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+), 15 deletions(-) create mode 100644 packaging/locales-init.spec diff --git a/debian/changelog b/debian/changelog index b2ae32d..df8a9e1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Thu, 15 Dec 2011 14:06:53 +0100 diff --git a/debian/copyright b/debian/copyright index 16fab4f..4e72f9d 100644 --- a/debian/copyright +++ b/debian/copyright @@ -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 - -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 index 0000000..bd4a358 --- /dev/null +++ b/packaging/locales-init.spec @@ -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 + + -- 2.7.4