]> git.pld-linux.org Git - packages/xkeycaps.git/blob - xkeycaps.spec
bf50f490b91b57ddb7f96230b772aaf6c5ed68d6
[packages/xkeycaps.git] / xkeycaps.spec
1 Summary:        xkeycaps - a keymap editor for the X Window System
2 Summary(pl):    xkeycaps - edytor mapy klawiatury dla X Window System
3 Name:           xkeycaps
4 Version:        2.46
5 Release:        1
6 License:        BSD
7 Group:          X11/Applications
8 Group(pl):      X11/Aplikacje
9 Source0:        http://www.jwz.org/xkeycaps/%{name}-%{version}.tar.Z
10 Source1:        xkeycaps.desktop
11 URL:            http://www.jwz.org/xkeycaps/
12 BuildRequires:  XFree86-devel
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %define         _prefix         /usr/X11R6
16 %define         _mandir         %{_prefix}/man
17
18 %description
19 xkeycaps is a graphical front-end to xmodmap.It opens a window that
20 looks like a keyboard; moving the mouse over a key shows what KeySyms
21 and Modifier bits that key generates. Clicking on a key simulates
22 KeyPress/KeyRelease events on the window of your choice. It is
23 possible to change the KeySyms and Modifiers generated by a key
24 through a mouse-based interface. This program can also write an input
25 file for xmodmap to recreate your changes in future sessions.
26
27 %description -l pl
28 xkeycaps jest graficzn± nak³adk± na xmodmap. xkeycaps otwiera okno,
29 które wygl±da jak klawiatura; przesuwaj±c mysz± ponad klawiszami
30 uzyskujemy informacjê na temat KeySyms oraz bitów Modifier jakie ten
31 klawisz generuje. Klikniêcie na klawiszu symuluje zdarzenia
32 KeyPress/KeyRelease dla okna, które wybierzesz. Mo¿na zmieniæ KeySyms
33 i Modifiers wygenerowane przez klawisz przy u¿yciu bazuj±cego na myszy
34 interfejsu. Ten program mo¿e tak¿e zapisywaæ plik konfiguracyjny dla
35 xmodmapa.
36
37 %prep
38 %setup -q
39
40 %build
41 xmkmf -a
42 make    DEFAULT_KBD_NAME="L101" \
43         CDEBUGFLAGS="$RPM_OPT_FLAGS"
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{_applnkdir}/Utilities
48
49 make install install.man \
50         DESTDIR=$RPM_BUILD_ROOT \
51         MANDIR=%{_mandir}/man1 \
52         BINDIR=%{_bindir} 
53
54 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Utilities
55
56 strip $RPM_BUILD_ROOT%{_bindir}/*
57
58 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* \
59         README defining.txt
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %doc *.gz
67 %{_applnkdir}/Utilities/xkeycaps.desktop
68 %attr(755,root,root) %{_bindir}/*
69 %{_mandir}/man1/*
This page took 0.18951 seconds and 2 git commands to generate.