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