File xkeyboard-config.spec of Package TW-xkeyboard-config-smarlayout (Revision 8153f35641f245b4e64cf3d96b06dcbd)
Currently displaying revision 8153f35641f245b4e64cf3d96b06dcbd , Show latest
94
1
#
2
# spec file for package xkeyboard-config
3
#
4
# Copyright (c) 2024 SUSE LLC
5
#
6
# All modifications and additions to the file contributed by third parties
7
# remain the property of their copyright owners, unless otherwise agreed
8
# upon. The license for this file, and modifications and additions to the
9
# file, is the same license as for the pristine package itself (unless the
10
# license for the pristine package is not an Open Source License, in which
11
# case the license is the MIT License). An "Open Source License" is a
12
# license that conforms to the Open Source Definition (Version 1.9)
13
# published by the Open Source Initiative.
14
15
# Please submit bugfixes or comments via https://bugs.opensuse.org/
16
#
17
18
19
Name: xkeyboard-config
20
Version: 2.44
21
Release: 0
22
Summary: The X Keyboard Extension
23
License: GPL-2.0-or-later AND LGPL-2.1-or-later AND MIT
24
Group: System/X11/Utilities
25
URL: https://www.freedesktop.org/Software/XKeyboardConfig
26
Source: https://xorg.freedesktop.org/archive/individual/data/%{name}/%{name}-%{version}.tar.xz
27
# PATCH-FIX-OPENSUSE disable-2xalt_2xctrl-toggle.diff fdo#4927 -- This is just a workaround until fdo#4927 is fixed
28
Patch109: n_disable-2xalt_2xctrl-toggle.diff
29
Patch110: n_fi-kotoistus-metainfo.patch
30
%if 0%{?suse_version} < 1550
31
Patch0: python-3.11.patch
32
%endif
33
BuildRequires: fdupes
34
BuildRequires: intltool
35
BuildRequires: meson
36
BuildRequires: pkgconfig
37
%if 0%{?suse_version} < 1550
38
BuildRequires: python311-base
39
%else
40
BuildRequires: python3-base
41
%endif
42
BuildRequires: xsltproc
43
BuildRequires: perl(XML::Parser)
44
BuildRequires: pkgconfig(xorg-macros) >= 1.12
45
Requires(post): coreutils
46
BuildArch: noarch
47
48
%description
49
The X Keyboard Extension essentially replaces the core protocol
50
definition of keyboard. The extension makes possible to clearly and
51
explicitly specify most aspects of keyboard behaviour on per-key basis
52
and to more closely track the logical and physical state of the
53
keyboard. It also includes a number of keyboard controls designed to
54
make keyboards more accessible to people with physical impairments.
55
56
%lang_package
57
58
%prep
59
%autosetup -p1
60
61
%build
62
%{meson} \
63
-Dxkb-base=%{_datadir}/X11/xkb \
64
-Dcompat-rules=true \
65
-Dxorg-rules-symlinks=true
66
%{meson_build}
67
68
%install
69
%{meson_install}
70
mkdir -p %{buildroot}%{_localstatedir}/lib/xkb
71
# Bug 335553
72
mkdir -p %{buildroot}%{_localstatedir}/lib/xkb/compiled/
73
ln -snf %{_localstatedir}/lib/xkb/compiled/ %{buildroot}%{_datadir}/X11/xkb/compiled
74
%find_lang %{name}
75
%fdupes -s %{buildroot}%{_datadir}/X11/xkb
76
77
%post
78
rm -rf %{_localstatedir}/lib/xkb/compiled/server*.xkm
79
80
%files
81
%license COPYING
82
%doc AUTHORS docs/HOWTO.* docs/README.*
83
%dir %{_localstatedir}/lib/xkb
84
%dir %{_localstatedir}/lib/xkb/compiled
85
%dir %{_datadir}/X11
86
%{_datadir}/X11/xkb/
87
%{_datadir}/pkgconfig/*.pc
88
%{_mandir}/man7/*
89
90
%files lang -f %{name}.lang
91
%license COPYING
92
93
%changelog
94