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