- Add a template for ~/.i18n (bsc#934720).

OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/x11-tools?expand=0&rev=31
This commit is contained in:
Egbert Eich 2015-07-03 20:25:57 +00:00 committed by Git OBS Bridge
parent 5fdf076f52
commit 8acfeb59a4
4 changed files with 18 additions and 4 deletions

5
i18n.template Normal file
View File

@ -0,0 +1,5 @@
#
# Override system wide input method here
#
# export INPUT_METHOD=scim

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jul 3 20:24:13 UTC 2015 - eich@suse.com
- Add a template for ~/.i18n (bsc#934720).
-------------------------------------------------------------------
Wed Jun 24 07:22:49 UTC 2015 - werner@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package x11-tools
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -34,6 +34,7 @@ Source33: none
Source34: sysconfig.language-%{name}
Source35: nvidia-pre-install
Source36: nvidia-post-uninstall
Source37: i18n.template
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -59,6 +60,7 @@ install -m 644 $RPM_SOURCE_DIR/xim $RPM_BUILD_ROOT/etc/X11
install -m 644 $RPM_SOURCE_DIR/none $RPM_BUILD_ROOT/etc/X11/xim.d
mkdir -p $RPM_BUILD_ROOT/etc/skel
install -m 644 $RPM_SOURCE_DIR/xim.template $RPM_BUILD_ROOT/etc/skel/.xim.template
install -m 644 ${S:37} $RPM_BUILD_ROOT/etc/skel/.i18n
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates/
install -c -m0644 $RPM_SOURCE_DIR/sysconfig.language-%{name} $RPM_BUILD_ROOT/var/adm/fillup-templates/
mkdir -p $RPM_BUILD_ROOT/usr/lib/nvidia
@ -80,6 +82,7 @@ install -m 755 $RPM_SOURCE_DIR/nvidia-post-uninstall \
/etc/X11/xim
/etc/X11/xim.d/*
/etc/skel/.xim.template
/etc/skel/.i18n
/var/adm/fillup-templates/sysconfig.language-%{name}
%changelog

View File

@ -3,6 +3,7 @@
# Copyright © 2001 SUSE LINUX GmbH Nuernberg, Germany
#
# Mike Fabian <mfabian@suse.de>, 2005
# Egbert Eich <eich@suse.com>, 2015
# usually, /etc/X11/xim is used to start a default input method.
@ -12,8 +13,9 @@
# For example:
# INPUT_METHOD="scim"
# This changes the default for all users
# 2) set and export the variable "INPUT_METHOD" in ~/.profile in the
# home directory of a user (or ~/.login for csh users) For example:
# 2) set and export the variable "INPUT_METHOD" in ~/.i18n in the
# home directory of a user.
# For example:
# export INPUT_METHOD="scim"
# This changes the default only for one user.
#
@ -44,4 +46,3 @@
# export QT_IM_SWITCHER=imsw-multi
# export QT_IM_MODULE=scim
# scim -d