]> git.pld-linux.org Git - packages/xkeyboard-config.git/blob - xkeyboard-config.spec
- up to 2.4.1 ; configure is now arch dependant (likely some bug/macros stupidity
[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.4.1
5 Release:        1
6 License:        MIT
7 Group:          X11/Development/Libraries
8 Source0:        http://xorg.freedesktop.org/archive/individual/data/%{name}-%{version}.tar.bz2
9 # Source0-md5:  9f6d7a37fd192264a3ca07ede5d183c3
10 URL:            http://www.freedesktop.org/wiki/Software/XKeyboardConfig
11 BuildRequires:  autoconf >= 2.57
12 BuildRequires:  automake
13 BuildRequires:  gettext-devel
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 # for sinhala layouts
20 Requires:       xorg-lib-libX11 >= 1.4.3
21 Provides:       xorg-data-xkbdata
22 Obsoletes:      xorg-data-xkbdata < 0.9
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 %configure \
47         --disable-runtime-deps \
48         --enable-compat-rules \
49         --with-xkb-rules-symlink=xorg \
50         --with-xkb-base=%{_datadir}/X11/xkb
51
52 %{__make}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56
57 %{__make} install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 ln -s /var/lib/xkb $RPM_BUILD_ROOT%{_datadir}/X11/xkb/compiled
61
62 %find_lang %{name}
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %pretrans
68 # it used to be directory in xkbdata
69 if [ -d %{_datadir}/X11/xkb/symbols/pc ]; then
70         mv -b %{_datadir}/X11/xkb/symbols/pc{,.dir}
71 %banner -e %{name} <<EOF
72 Check out %{_datadir}/X11/xkb/symbols/pc.dir
73 for your own files and remove it when done.
74 EOF
75 fi
76 if [ -d %{_datadir}/X11/xkb/compiled ]; then
77         rm -rf %{_datadir}/X11/xkb/compiled
78 fi
79
80 %files -f %{name}.lang
81 %defattr(644,root,root,755)
82 %doc AUTHORS COPYING CREDITS ChangeLog NEWS README TODO docs/H* docs/R*
83 %{_datadir}/X11/xkb
84 %{_npkgconfigdir}/xkeyboard-config.pc
85 %{_mandir}/man7/xkeyboard-config.7*
This page took 0.056068 seconds and 4 git commands to generate.