blob: 08fe24706badab7c48c3e2ed3a29555bb139d516 (
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
53
54
55
56
57
58
59
60
61
|
Name: xkeyboard-config
Version: 2.7
Release: 0
License: GPL-2.0+ ; LGPL-2.1+ ; MIT
Summary: The X Keyboard Extension
Url: http://www.freedesktop.org/Software/XKeyboardConfig
Group: System/X11/Utilities
Source: http://xorg.freedesktop.org/releases/individual/data/%{name}-%{version}.tar.bz2
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: perl-XML-Parser
BuildRequires: pkg-config
BuildRequires: xkbcomp
BuildRequires: pkgconfig(xorg-macros) >= 1.12
Requires: xkbcomp
Provides: XFree86:/etc/X11/xkb/symbols/us
Provides: xorg-x11:/etc/X11/xkb/symbols/us
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires(pre): /usr/bin/ln
Requires(pre): /usr/bin/rm
%description
The X Keyboard Extension essentially replaces the core protocol
definition of keyboard. The extension makes possible to clearly and
explicitly specify most aspects of keyboard behaviour on per-key basis
and to more closely track the logical and physical state of the
keyboard. It also includes a number of keyboard controls designed to
make keyboards more accessible to people with physical impairments.
%prep
%setup -q
%build
%configure --with-xkb-rules-symlink=xfree86,xorg \
--with-xkb-base=/usr/share/X11/xkb \
--enable-compat_rules \
--disable-runtime-deps \
--disable-xkbcomp-symlink
rm -f */*.dir
make
%install
%make_install
mkdir -p %{buildroot}%{_localstatedir}/lib/xkb
ln -snf /usr/bin/xkbcomp %{buildroot}/usr/share/X11/xkb/xkbcomp
# Bug 335553
mkdir -p %{buildroot}%{_localstatedir}/lib/xkb/compiled/
ln -snf /var/lib/xkb/compiled/ %{buildroot}/usr/share/X11/xkb/compiled
%find_lang %{name}
%fdupes -s %{buildroot}/usr/share/X11/xkb
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING README docs/HOWTO.* docs/README.*
%dir %{_localstatedir}/lib/xkb
%dir %{_localstatedir}/lib/xkb/compiled
/usr/share/X11/xkb/
%{_datadir}/pkgconfig/*.pc
%changelog
|