summaryrefslogtreecommitdiff
path: root/packaging/xmodmap.spec
blob: 124b9f705494b87169186da6f9bda4ddb0a4b240 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
%bcond_with x

Name:           xmodmap
Version:        1.0.8
Release:        0
License:        MIT
Summary:        Utility to modify keymaps and pointer button mappings in X
Url:            http://xorg.freedesktop.org/
Group:          System/X11/Utilities
Source0:        http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
Source1:        Xmodmap.template
Source2:        Xmodmap.remote.template
Source1001:     xmodmap.manifest
BuildRequires:  pkg-config

%if %{with x}
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xorg-macros) >= 1.8
BuildRequires:  pkgconfig(xproto) >= 7.0.17
%else
ExclusiveArch:
%endif


%description
The xmodmap program is used to edit and display the keyboard modifier
map and keymap table that are used by client applications to convert
event keycodes into keysyms. It is usually run from the user's
session startup script to configure the keyboard according to personal
tastes.

%prep
%setup -q
cp %{SOURCE1001} .

%build
%autogen
make %{?_smp_mflags}

%install
%make_install
install -m0644 -D %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/Xmodmap
install -m0644 -D %{SOURCE2} %{buildroot}%{_sysconfdir}/X11/Xmodmap.remote

%files
%manifest %{name}.manifest
%defattr(-,root,root)
%license COPYING
%config %{_sysconfdir}/X11/Xmodmap
%config %{_sysconfdir}/X11/Xmodmap.remote
%{_bindir}/xmodmap
%{_mandir}/man1/xmodmap.1%{?ext_man}