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