]>
Commit | Line | Data |
---|---|---|
1 | Summary: X Keyboard Configuration Database | |
2 | Summary(pl.UTF-8): Baza danych konfiguracji klawiatury pod X | |
3 | Name: xkeyboard-config | |
4 | Version: 2.27 | |
5 | Release: 1 | |
6 | License: MIT | |
7 | Group: X11/Development/Libraries | |
8 | Source0: https://xorg.freedesktop.org/releases/individual/data/xkeyboard-config/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: 316753e35d3906d042c74230612eab9f | |
10 | URL: https://www.freedesktop.org/wiki/Software/XKeyboardConfig | |
11 | BuildRequires: autoconf >= 2.57 | |
12 | BuildRequires: automake | |
13 | BuildRequires: gettext-tools >= 0.19.8 | |
14 | BuildRequires: rpmbuild(macros) >= 1.446 | |
15 | BuildRequires: xorg-util-util-macros >= 1.12 | |
16 | # for sinhala layouts | |
17 | Requires: xorg-lib-libX11 >= 1.4.3 | |
18 | Provides: xorg-data-xkbdata | |
19 | Obsoletes: xorg-data-xkbdata < 0.9 | |
20 | # due to large maximum keycode handling | |
21 | Conflicts: xorg-app-xkbcomp < 1.4.2 | |
22 | BuildArch: noarch | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | The non-arch keyboard configuration database for X Window System. The | |
27 | goal is to provide the consistent, well-structured, frequently | |
28 | released open source of X keyboard configuration data for X Window | |
29 | System implementations (free, open source and commercial). The project | |
30 | is targeted to XKB-based systems. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | Niezależna od architektury baza danych konfiguracji klawiatury dla | |
34 | systemu X Window. Celem jest dostarczenie spójnych, dobrze | |
35 | zbudowanych, często wydawanych danych konfiguracji klawiatury pod X z | |
36 | otwartymi źródłami dla implementacji X Window System (wolnodostępnych, | |
37 | mających otwarte źródła i komercyjnych). Projekt jest przeznaczony dla | |
38 | systemów opartych na XKB. | |
39 | ||
40 | %prep | |
41 | %setup -q | |
42 | ||
43 | %build | |
44 | %{__aclocal} | |
45 | %{__autoconf} | |
46 | %{__automake} | |
47 | %configure \ | |
48 | %if "%{_gnu}" != "-gnux32" | |
49 | --host=%{_host} \ | |
50 | --build=%{_host} \ | |
51 | %endif | |
52 | --disable-runtime-deps \ | |
53 | --enable-compat-rules \ | |
54 | --with-xkb-rules-symlink=xorg \ | |
55 | --with-xkb-base=%{_datadir}/X11/xkb | |
56 | ||
57 | %{__make} | |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %{__make} install \ | |
63 | DESTDIR=$RPM_BUILD_ROOT | |
64 | ||
65 | ln -s /var/lib/xkb $RPM_BUILD_ROOT%{_datadir}/X11/xkb/compiled | |
66 | ||
67 | %find_lang %{name} | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %pretrans | |
73 | # it used to be directory in xkbdata | |
74 | if [ -d %{_datadir}/X11/xkb/symbols/pc ]; then | |
75 | mv -b %{_datadir}/X11/xkb/symbols/pc{,.dir} | |
76 | %banner -e %{name} <<EOF | |
77 | Check out %{_datadir}/X11/xkb/symbols/pc.dir | |
78 | for your own files and remove it when done. | |
79 | EOF | |
80 | fi | |
81 | if [ -d %{_datadir}/X11/xkb/compiled ]; then | |
82 | rm -rf %{_datadir}/X11/xkb/compiled | |
83 | fi | |
84 | ||
85 | %files -f %{name}.lang | |
86 | %defattr(644,root,root,755) | |
87 | %doc AUTHORS COPYING ChangeLog NEWS README TODO docs/H* docs/R* | |
88 | %{_datadir}/X11/xkb | |
89 | %{_npkgconfigdir}/xkeyboard-config.pc | |
90 | %{_mandir}/man7/xkeyboard-config.7* |