]> git.pld-linux.org Git - packages/kbd.git/blob - kbd.spec
- updated to 2.6.4
[packages/kbd.git] / kbd.spec
1 # TODO:
2 # - probably it doesn't make sense to package ppc keymaps on x86 and vice versa
3 #
4 Summary:        Linux console utilities
5 Summary(ko.UTF-8):      콘솔을 설정하는 도구 (글쇠판, 가상 터미널, 그 밖에)
6 Summary(pl.UTF-8):      Narzędzia do obsługi konsoli
7 Name:           kbd
8 Version:        2.6.4
9 Release:        1
10 License:        GPL v2+
11 Group:          Applications/Console
12 Source0:        https://www.kernel.org/pub/linux/utils/kbd/%{name}-%{version}.tar.xz
13 # Source0-md5:  e2fd7adccf6b1e98eb1ae8d5a1ce5762
14 Source1:        %{name}.init
15 Source2:        %{name}.sysconfig
16 Source3:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
17 # Source3-md5:  93c72a27e4fdeba23cb62d62343e9483
18 Source4:        lat2u-16.psf.gz
19 # Source4-md5:  dc90a9bcff858175beea32a9b3bebb33
20 Source5:        lat2u.sfm.gz
21 # Source5-md5:  8ac4abc169fa1236fc3e64163c043113
22 Source52:       http://pkgs.fedoraproject.org/repo/pkgs/kbd/%{name}-latarcyrheb-16-fixed.tar.bz2/cb1e2d5ba5d4cb8b0a27367029d36a56/kbd-latarcyrheb-16-fixed.tar.bz2
23 # Source52-md5: cb1e2d5ba5d4cb8b0a27367029d36a56
24 Source6:        console.sh
25 Source7:        console.csh
26 Source8:        %{name}-pl1.kmap
27 Source9:        %{name}-mac-pl.kmap
28 Source10:       %{name}-pl3.map
29 Source11:       %{name}-pl4.map
30 Source12:       vlock.pamd
31 Patch0:         %{name}-unicode_start.patch
32 Patch1:         %{name}-tty-detect.patch
33 URL:            http://kbd-project.org/
34 BuildRequires:  autoconf >= 2.71
35 BuildRequires:  automake >= 1:1.9
36 BuildRequires:  bison
37 #BuildRequires: check >= 0.9.4
38 BuildRequires:  doxygen
39 BuildRequires:  flex
40 BuildRequires:  gettext-tools >= 0.14.1
41 BuildRequires:  libtool >= 2:2
42 BuildRequires:  pam-devel
43 BuildRequires:  pkgconfig
44 BuildRequires:  tar >= 1:1.22
45 BuildRequires:  xz
46 Requires(post,preun):   /sbin/chkconfig
47 Requires:       %{name}-libs = %{version}-%{release}
48 Requires:       open
49 Requires:       rc-scripts >= 0.4.3.0
50 Requires:       sed
51 Requires:       util-linux
52 Obsoletes:      console-data < 1999.08.30
53 Obsoletes:      console-tools < 1:0.4
54 Obsoletes:      console-tools-devel < 1:0.4
55 Obsoletes:      console-tools-static < 1:0.4
56 Conflicts:      man-pages < 1.43-5
57 Conflicts:      util-linux < 2.11
58 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59
60 %define         _ldatadir       /lib/%{name}
61
62 %description
63 This package contains utilities to load console fonts and keyboard
64 maps. It also includes a number of different fonts and keyboard maps.
65
66 %description -l pl.UTF-8
67 Pakiet zawiera narzędzia do ładowania fontów konsolowych oraz map
68 klawiatury. Dodatkowo dołączono znaczną liczbę różnych fontów i map.
69
70 %package vlock
71 Summary:        Utility to lock one or more virtual consoles
72 Summary(pl.UTF-8):      Narzędzie do blokowania jednej lub wielu konsol wirtualnych
73 Group:          Applications/Console
74 Requires:       %{name} = %{version}-%{release}
75 Provides:       vlock
76 Obsoletes:      vlock < 2.3
77
78 %description vlock
79 Utility to lock one or more virtual consoles.
80
81 %description vlock -l pl.UTF-8
82 Narzędzie do blokowania jednej lub wielu konsol wirtualnych.
83
84 %package libs
85 Summary:        libkeymap - library to manage the Linux keymaps
86 Summary(pl.UTF-8):      libkeymap - biblioteka do zarządzania linuksowymi przypisaniami klawiszy
87 Group:          Libraries
88
89 %description libs
90 libkeymap - library to manage the Linux keymaps.
91
92 %description libs -l pl.UTF-8
93 libkeymap - biblioteka do zarządzania linuksowymi przypisaniami
94 klawiszy.
95
96 %package devel
97 Summary:        Header files for libkeymap library
98 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libkeymap
99 Group:          Development/Libraries
100 Requires:       %{name}-libs = %{version}-%{release}
101
102 %description devel
103 Header files for libkeymap library.
104
105 %description devel -l pl.UTF-8
106 Pliki nagłówkowe biblioteki libkeymap.
107
108 %package static
109 Summary:        Static libkeymap library
110 Summary(pl.UTF-8):      Statyczna biblioteka libkeymap
111 Group:          Development/Libraries
112 Requires:       %{name}-devel = %{version}-%{release}
113
114 %description static
115 Static libkeymap library.
116
117 %description static -l pl.UTF-8
118 Statyczna biblioteka libkeymap.
119
120 %prep
121 %setup -q -a52
122 %patch0 -p1
123 %patch1 -p1
124
125 %build
126 %{__gettextize}
127 %{__libtoolize}
128 %{__aclocal} -I m4
129 %{__autoconf}
130 %{__autoheader}
131 %{__automake}
132 %configure \
133         --datadir=%{_ldatadir} \
134         --localedir=%{_datadir}/locale \
135         --enable-libkeymap \
136         --enable-nls \
137         --enable-optional-progs \
138         --disable-silent-rules
139 %{__make}
140
141 %install
142 rm -rf $RPM_BUILD_ROOT
143 install -d $RPM_BUILD_ROOT{/bin,/etc/{profile.d,rc.d/init.d,sysconfig,pam.d}}
144
145 %{__make} install \
146         DESTDIR=$RPM_BUILD_ROOT \
147         gnulocaledir=$RPM_BUILD_ROOT%{_datadir}/locale
148
149 install %{SOURCE11} $RPM_BUILD_ROOT/etc/pam.d/vlock
150
151 # some binaries are needed in /bin but the rest is not
152 for f in setfont dumpkeys kbd_mode unicode_start unicode_stop; do
153         %{__mv} $RPM_BUILD_ROOT%{_bindir}/$f $RPM_BUILD_ROOT/bin
154 done
155
156 # move libraries to /lib* for utils in /bin
157 install -d $RPM_BUILD_ROOT/%{_lib}
158 %{__mv} $RPM_BUILD_ROOT%{_libdir}/lib{kbdfile,keymap}.so.* $RPM_BUILD_ROOT/%{_lib}
159 ln -sf $(basename $RPM_BUILD_ROOT/%{_lib}/libkbdfile.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libkbdfile.so
160 ln -sf $(basename $RPM_BUILD_ROOT/%{_lib}/libkeymap.so.*.*.*) $RPM_BUILD_ROOT%{_libdir}/libkeymap.so
161 # no external dependencies in libkbdfile
162 # for libkeymap .pc file exists
163 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib{kbdfile,keymap}.la
164
165 # optional-progs:
166 # obsoleted by setfont
167 %{__rm} $RPM_BUILD_ROOT{%{_bindir}/getunimap,%{_mandir}/man8/getunimap.8}
168 # optional-progs: man pages for not installed utils from contrib
169 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{codepage,splitfont}.1
170 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/{mk_modmap,vcstime}.8
171
172 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/console
173 cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/console
174 %ifarch sparc sparc64
175 %{__sed} -i -e 's/KEYTABLE=pl2/KEYTABLE=sunkeymap/' $RPM_BUILD_ROOT/etc/sysconfig/console
176 %endif
177
178 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_ldatadir}/consolefonts/lat2u-16.psfu.gz
179 gunzip -c %{SOURCE5} > $RPM_BUILD_ROOT%{_ldatadir}/unimaps/lat2u.uni
180
181 gzip -c %{SOURCE8} > $RPM_BUILD_ROOT%{_ldatadir}/keymaps/i386/qwerty/pl1.map.gz
182 gzip -c %{SOURCE9} > $RPM_BUILD_ROOT%{_ldatadir}/keymaps/mac/all/mac-pl.map.gz
183 gzip -c %{SOURCE10} > $RPM_BUILD_ROOT%{_ldatadir}/keymaps/i386/qwerty/pl3.map.gz
184 gzip -c %{SOURCE11} > $RPM_BUILD_ROOT%{_ldatadir}/keymaps/i386/qwerty/pl4.map.gz
185
186 cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/profile.d
187 cp -p %{SOURCE7} $RPM_BUILD_ROOT/etc/profile.d
188
189 bzip2 -dc %{SOURCE3} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
190
191 # Greek is el, not gr
192 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/gr
193 %{__rm} $RPM_BUILD_ROOT%{_mandir}/{README.kbd-non-english-man-pages,kbd-keypaps_instead_keytables.patch}*
194
195 # doxygen docs
196 %{__rm} -rf docs-doxy
197 %{__mv} $RPM_BUILD_ROOT%{_docdir}/kbd/html docs-doxy
198
199 %find_lang %{name}
200
201 %clean
202 rm -rf $RPM_BUILD_ROOT
203
204 %post
205 /sbin/chkconfig --add console
206
207 %preun
208 if [ "$1" = "0" ]; then
209         /sbin/chkconfig --del console
210 fi
211
212 %post   libs -p /sbin/ldconfig
213 %postun libs -p /sbin/ldconfig
214
215 %files -f %{name}.lang
216 %defattr(644,root,root,755)
217 # COPYING contains copyright summary, not GPL text
218 %doc AUTHORS COPYING CREDITS NEWS README docs/doc/kbd.FAQ.txt
219 %attr(754,root,root) /etc/rc.d/init.d/console
220 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/console
221 %attr(755,root,root) /etc/profile.d/console.csh
222 %attr(755,root,root) /etc/profile.d/console.sh
223
224 %attr(755,root,root) /bin/dumpkeys
225 %attr(755,root,root) /bin/kbd_mode
226 %attr(755,root,root) /bin/setfont
227 %attr(755,root,root) /bin/unicode_start
228 %attr(755,root,root) /bin/unicode_stop
229 %attr(755,root,root) %{_bindir}/chvt
230 %attr(755,root,root) %{_bindir}/clrunimap
231 %attr(755,root,root) %{_bindir}/deallocvt
232 %attr(755,root,root) %{_bindir}/fgconsole
233 %attr(755,root,root) %{_bindir}/getkeycodes
234 %attr(755,root,root) %{_bindir}/kbdinfo
235 %attr(755,root,root) %{_bindir}/kbdrate
236 %attr(755,root,root) %{_bindir}/loadkeys
237 %attr(755,root,root) %{_bindir}/loadunimap
238 %attr(755,root,root) %{_bindir}/mapscrn
239 %attr(755,root,root) %{_bindir}/openvt
240 %attr(755,root,root) %{_bindir}/outpsfheader
241 %attr(755,root,root) %{_bindir}/psfaddtable
242 %attr(755,root,root) %{_bindir}/psfgettable
243 %attr(755,root,root) %{_bindir}/psfstriptable
244 %attr(755,root,root) %{_bindir}/psfxtable
245 %ifarch %{ix86} %{x8664} x32
246 %attr(755,root,root) %{_bindir}/resizecons
247 %endif
248 %attr(755,root,root) %{_bindir}/screendump
249 %attr(755,root,root) %{_bindir}/setkeycodes
250 %attr(755,root,root) %{_bindir}/setleds
251 %attr(755,root,root) %{_bindir}/setlogcons
252 %attr(755,root,root) %{_bindir}/setmetamode
253 %attr(755,root,root) %{_bindir}/setpalette
254 %attr(755,root,root) %{_bindir}/setvesablank
255 %attr(755,root,root) %{_bindir}/setvtrgb
256 %attr(755,root,root) %{_bindir}/showconsolefont
257 %attr(755,root,root) %{_bindir}/showkey
258 %attr(755,root,root) %{_bindir}/spawn_console
259 %attr(755,root,root) %{_bindir}/spawn_login
260 %dir %{_ldatadir}
261 %{_ldatadir}/consolefonts
262 %{_ldatadir}/consoletrans
263 %{_ldatadir}/keymaps
264 %{_ldatadir}/unimaps
265
266 %{_mandir}/man1/chvt.1*
267 %{_mandir}/man1/deallocvt.1*
268 %{_mandir}/man1/dumpkeys.1*
269 %{_mandir}/man1/fgconsole.1*
270 %{_mandir}/man1/kbd_mode.1*
271 %{_mandir}/man1/kbdinfo.1*
272 %{_mandir}/man1/loadkeys.1*
273 %{_mandir}/man1/openvt.1*
274 %{_mandir}/man1/psfaddtable.1*
275 %{_mandir}/man1/psfgettable.1*
276 %{_mandir}/man1/psfstriptable.1*
277 %{_mandir}/man1/psfxtable.1*
278 %{_mandir}/man1/screendump.1*
279 %{_mandir}/man1/setleds.1*
280 %{_mandir}/man1/setmetamode.1*
281 %{_mandir}/man1/showkey.1*
282 %{_mandir}/man1/unicode_start.1*
283 %{_mandir}/man1/unicode_stop.1*
284 %{_mandir}/man5/keymaps.5*
285 %{_mandir}/man8/clrunimap.8*
286 %{_mandir}/man8/getkeycodes.8*
287 %{_mandir}/man8/kbdrate.8*
288 %{_mandir}/man8/loadunimap.8*
289 %{_mandir}/man8/mapscrn.8*
290 %ifarch %{ix86} %{x8664} x32
291 %{_mandir}/man8/resizecons.8*
292 %endif
293 %{_mandir}/man8/setfont.8*
294 %{_mandir}/man8/setkeycodes.8*
295 %{_mandir}/man8/setlogcons.8*
296 %{_mandir}/man8/setvesablank.8*
297 %{_mandir}/man8/setvtrgb.8*
298 %{_mandir}/man8/showconsolefont.8*
299 %lang(es) %{_mandir}/es/man[158]/*
300 %lang(fi) %{_mandir}/fi/man[158]/*
301 %lang(fr) %{_mandir}/fr/man[158]/*
302 %lang(hu) %{_mandir}/hu/man[158]/*
303 %lang(ko) %{_mandir}/ko/man[158]/*
304 %lang(pl) %{_mandir}/pl/man[158]/*
305
306 %files vlock
307 %defattr(644,root,root,755)
308 %doc src/vlock/README.vlock
309 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/vlock
310 %attr(755,root,root) %{_bindir}/vlock
311 %{_mandir}/man1/vlock.1*
312
313 %files libs
314 %defattr(644,root,root,755)
315 %attr(755,root,root) /%{_lib}/libkbdfile.so.*.*.*
316 %attr(755,root,root) %ghost /%{_lib}/libkbdfile.so.1
317 %attr(755,root,root) /%{_lib}/libkeymap.so.*.*.*
318 %attr(755,root,root) %ghost /%{_lib}/libkeymap.so.1
319
320 %files devel
321 %defattr(644,root,root,755)
322 %doc docs-doxy/*
323 %attr(755,root,root) %{_libdir}/libkbdfile.so
324 %attr(755,root,root) %{_libdir}/libkeymap.so
325 %{_includedir}/keymap
326 %{_includedir}/kbdfile.h
327 %{_includedir}/keymap.h
328 %{_pkgconfigdir}/libkeymap.pc
329
330 %files static
331 %defattr(644,root,root,755)
332 %{_libdir}/libkbdfile.a
333 %{_libdir}/libkeymap.a
This page took 0.744089 seconds and 4 git commands to generate.