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