File xkeycaps.spec of Package xkeycaps

# spec file for package xkeycaps (Version 2.46)
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# Please submit bugfixes or comments via

# norootforbuild

Name:           xkeycaps
BuildRequires:  xorg-x11 xorg-x11-devel
License:        BSD 3-Clause; X11/MIT
Group:          System/X11/Utilities
AutoReqProv:    on
Version:        2.46
Release:        843
Summary:        A graphical frontend for "xmodmap"
Source:         xkeycaps-%{version}.tar.bz2
Patch0:         xkeycaps-%{version}.patch
Patch1:         xkeycaps-%{version}-Xmodmap.patch
Patch2:         xkeycaps-%{version}-Imake.patch
Patch3:         %{name}-%{version}_context-menu.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if "%(xft-config --prefix)" == "/usr"
%define _xorg7libs %_lib
%define _xorg7libs32 lib
%define _xorg7bin bin
%define _xorg7_mandir %_mandir
%define _xorg7pixmaps include
%define _xorg7libshare share
%define _xorg7_xkb /usr/share/X11/xkb
%define _xorg7_termcap /usr/lib/X11/etc
%define _xorg7_serverincl /usr/include/xorg
%define _xorg7_fonts /usr/share/fonts
#%define _xorg7_config /usr/share/X11/config #use libshare macro
%define _xorg7_prefix /usr
%define _xorg7libs X11R6/%_lib
%define _xorg7libs32 X11R6/lib
%define _xorg7bin X11R6/bin
%define _xorg7_mandir /usr/X11R6/man
%define _xorg7pixmaps X11R6/include
%define _xorg7libshare X11R6/lib/
%define _xorg7_xkb /etc/X11/xkb
%define _xorg7_termcap /usr/X11R6/lib/X11/etc
%define _xorg7_serverincl /usr/X11R6/lib/Server/include
%define _xorg7_fonts /usr/X11R6/lib/X11/fonts
#%define _xorg7_config /usr/X11R6/lib/X11/config #use libshare macro
%define _xorg7_prefix /usr/X11R6

"xkeycaps" is a graphical front-end to "xmodmap". It opens a window
that looks like a keyboard. Moving the mouse over a key shows what
KeySyms and Modifier bits that key generates. Clicking on a key
simulates KeyPress/KeyRelease events on the window of your choice. It
is possible to change the KeySyms and Modifiers generated by a key
through a mouse-based interface. This program can also write an input
file for xmodmap to recreate your changes in future sessions.

    Jamie Zawinski <>

%setup -q

xmkmf -a
touch XKeyCaps_ad.h
make %{?jobs:-j%jobs}

make install DESTDIR=${RPM_BUILD_ROOT}

rm -rf ${RPM_BUILD_ROOT}

%doc  README defining.txt hierarchy.txt sgi-microsoft.txt
%doc %{_xorg7_mandir}/man1/xkeycaps.1x.gz
* Thu Oct 04 2007 -
- remove definitions and tests only useful for hpux and make it
  build for hppa linux
* Wed Jun 13 2007 -
- context menu is working now [#282654]
  - context-menu.patch
* Fri Jul 28 2006 -
- builds also with new 7.x, detecting prefix in
- building with icecream
* Wed Jan 25 2006 -
- converted neededforbuild to BuildRequires
* Sun Jan 11 2004 -
- build as user
* Tue Nov 19 2002 -
- fixed prefix of comments which should go to from the Imakefile
  to the Makefile:
  * old prefix: /**/#
  * new prefix: XCOMM
- removed forgotten debugging option and build again with $RPM_OPT_FLAGS
* Tue Sep 17 2002 -
- removed bogus self-provides
* Fri Aug 17 2001 -
- fixed output file name to work with default .xinitrc
* Mon Jun 04 2001 -
- fixed arguments to XtVa... functions for ia64
* Thu May 24 2001 -
- fxi cast warning on ia64
* Mon Oct 30 2000 -
- update -> 2.46 , add build root
* Mon Sep 13 1999 -
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Fri Jul 09 1999 -
- update -> 2.45