]> git.pld-linux.org Git - packages/xkeyboard-config.git/blob - xkeyboard-config.spec
666e3b8c6f42faec9d72d28880b40505688985a8
[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.23
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:  864093ca94c4958793906c75bbb011c0
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-app-xkbcomp
17 BuildRequires:  xorg-util-util-macros >= 1.12
18 # for sinhala layouts
19 Requires:       xorg-lib-libX11 >= 1.4.3
20 Provides:       xorg-data-xkbdata
21 Obsoletes:      xorg-data-xkbdata < 0.9
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 %{__intltoolize}
45 %{__aclocal}
46 %{__autoconf}
47 %{__automake}
48 %configure \
49 %if "%{_gnu}" != "-gnux32"
50         --host=%{_host} \
51         --build=%{_host} \
52 %endif
53         --disable-runtime-deps \
54         --enable-compat-rules \
55         --with-xkb-rules-symlink=xorg \
56         --with-xkb-base=%{_datadir}/X11/xkb
57
58 %{__make}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62
63 %{__make} install \
64         DESTDIR=$RPM_BUILD_ROOT
65
66 ln -s /var/lib/xkb $RPM_BUILD_ROOT%{_datadir}/X11/xkb/compiled
67
68 %find_lang %{name}
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %pretrans
74 # it used to be directory in xkbdata
75 if [ -d %{_datadir}/X11/xkb/symbols/pc ]; then
76         mv -b %{_datadir}/X11/xkb/symbols/pc{,.dir}
77 %banner -e %{name} <<EOF
78 Check out %{_datadir}/X11/xkb/symbols/pc.dir
79 for your own files and remove it when done.
80 EOF
81 fi
82 if [ -d %{_datadir}/X11/xkb/compiled ]; then
83         rm -rf %{_datadir}/X11/xkb/compiled
84 fi
85
86 %files -f %{name}.lang
87 %defattr(644,root,root,755)
88 %doc AUTHORS COPYING ChangeLog NEWS README TODO docs/H* docs/R*
89 %{_datadir}/X11/xkb
90 %{_npkgconfigdir}/xkeyboard-config.pc
91 %{_mandir}/man7/xkeyboard-config.7*
This page took 1.364565 seconds and 2 git commands to generate.