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