Archive for the ‘X keyboard config’ Category

Changes in xkeyboard-config Layout.

February 22, 2010

The changes are came in  xkeyboard-config-1.7-2.fc12 except xkb-tamil.

New Layout Added in the name of Tamil_Unicode_with_Numerals.

xkb-Tamil_Unicode:

Old Layout:

New Layout:

xkb-Tamil:

Old Layout:

New layout:

Advertisements

Create patch file for xkeyboard-config using git and build rpm package on Fedora

August 26, 2009

xkeyboard-config is the default  keyboard layout  on all linux distribution. In that  Tamil unicode layout i made added few letters like ஶ ஷ ஸ ஹ ஜ  in q rows and ௹ for Rupess in Tamil symbol and replace the ஃ  shift of  ்and also create the new layout in the name of Tamil Keyboard with numerals in this layout i added the Tamil numerals .

How to install the git:

$yum install git (or)su -c’yum install git-all publican-fedora’

$yum install git-core

To check the git version:

$ git –version

Locate the git config:

$locate gitconfig

Through the gitconfig set the name and email id

git config --global user.name "Joey Joejoe"
git config --global user.email "joey@joejoe.com"

Create the new directory:

$mkdir xkb-git

$cd xkb-git

i got the git clone in this link:http://cgit.freedesktop.org/xkeyboard-config/

$git clone git://anongit.freedesktop.org/git/xkeyboard-config 

it initialized the empty git repository
Initialized empty Git repository in /home/malathi/xkb-git/xkeyboard-config/.git/
remote: Counting objects: 7880, done.
remote: Compressing objects: 100% (2995/2995), done.
remote: Total 7880 (delta 5995), reused 6363 (delta 4830)
Receiving objects: 100% (7880/7880), 2.33 MiB | 180 KiB/s, done.
Resolving deltas: 100% (5995/5995), done
$cd xkeyboard-config/symbols/

$gedit in                        //Modify the infile

$git status

 # On branch master
 # Changed but not updated:
 #   (use "git add <file>..." to update what will be committed)
 #   (use "git checkout -- <file>..." to discard changes in working directory
 #
 #
 #     modified: rules/base.xml.in               
 #     modified:rules/compat/variantsMapping.lst
 #      modified:symbols/in
 # Untracked files:
 #   (use "git add <file>..." to include in what will be committed)
 #
 #    in~
  no changes added to commit (use "git add" and/or "git commit -a")
$rm in~                     // Refer:Note 1

$git status

$git add in                             

$git commit -s -m 'one line high-level description about this commit'
created commit 36b31b3:one line high-level description about this commit 
[master 36b31b3] Signed-off-by: malathi <malathiramya@gmail.com>
 3 files changed, 119 insertions(+), 41 deletions(-)

$ git format-patch HEAD~1                
  symbols/0001-one-line-high-level-description-about-this-commit.patch

RPM package creation:

Create the new user:
       #adduser makerpm
       #passwd makerpm

Change the user:
       $ su – makerpm
       $rpmdev-setuptree
Download the latest source file for xkeyboard:

link: http://koji.fedoraproject.org/koji/buildinfo?buildID=100115 

$rpm -ivh xkeyboard-config-1.5-6.fc11.src.rpm

$rpmdev-setuptree

$cd rpmbuild

$cd BUILD

$cd xkeyboard-config-1.5/symbols/

$gedit in              //modify the in file

$cd SOURCES/           //Move the patch file already created in git.

$cd SPECS/

$gedit xkeyboard-config.spec      //Refer:Note 2       

Patch10: xkeyboard-config-1.5-infile-change.patch 

$rpmbuild -ba xkeyboard-config.spec

$cd RPMS/noarch/              //The newly created rpm is located here

$cd SRPMS/            //The newly created source file is located here.

Now the rpm package for xkeyboard-config created.


NOTE:
1. The Untracked files are display in git status,just remove the
   those files because when open a file in gedit and made any
   changes in that it will create the same file name with ~ this symbol.
2. In .spec file add the patch file name  under the patch:
   Patch10: xkeyboard-config-1.5-infile-change.patch(This is the
    patch file  symbols/0001-one-line-high-level-description-
   about- this-commit.patch already created in git and rename into
   xkeyboard-config-1.5-infile-change.patch)