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