-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathkbd.spec
More file actions
460 lines (346 loc) · 15.5 KB
/
kbd.spec
File metadata and controls
460 lines (346 loc) · 15.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
Name: kbd
Version: 1.15
Release: 11%{?dist}
Summary: Tools for configuring the console (keyboard, virtual terminals, etc.)
Group: System Environment/Base
License: GPLv2+
URL: http://ftp.altlinux.org/pub/people/legion/kbd
Source0: http://ftp.altlinux.org/pub/people/legion/kbd/kbd-%{version}.tar.gz
Source1: kbd-latsun-fonts.tar.bz2
Source2: ro_maps.tar.bz2
Source3: kbd-latarcyrheb-16-fixed.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch0: kbd-1.15-po.patch
Patch1: kbd-1.15-keycodes-man.patch
Patch2: kbd-1.15-sparc.patch
Patch3: kbd-1.15-unicode_start.patch
Patch4: kbd-1.15-resizecon-x86_64.patch
Patch5: kbd-1.15-quiet_doc.patch
Patch6: kbd-1.15-defkeymap.patch
BuildRequires: bison, flex, gettext
Conflicts: util-linux < 2.11r-9
Requires: initscripts >= 5.86-1
Requires: %{name}-misc = %{version}-%{release}
%description
The %{name} package contains tools for managing a Linux
system's console's behavior, including the keyboard, the screen
fonts, the virtual terminals and font files.
%package misc
Summary: Data for kbd package
BuildArch: noarch
%description misc
The %{name}-misc package contains data for kbd package - console fonts,
keymaps etc. Please note that %{name}-misc is not helpful without kbd.
%prep
%setup -q -a 1 -a 2 -a 3
%patch0 -p1 -b .po
%patch1 -p1 -b .keycodes-man
%patch2 -p1 -b .sparc
%patch3 -p1 -b .unicode_start
%patch4 -p1 -b .resizecon_x86_64
%patch5 -p1 -b .quiet_doc
%patch6 -p1 -b .defkeymap
# 7-bit maps are obsolete; so are non-euro maps
pushd data/keymaps/i386
mv qwerty/fi.map qwerty/fi-old.map
cp qwerty/fi-latin9.map qwerty/fi.map
cp qwerty/pt-latin9.map qwerty/pt.map
cp qwerty/sv-latin1.map qwerty/se-latin1.map
mv azerty/fr.map azerty/fr-old.map
cp azerty/fr-latin9.map azerty/fr.map
cp azerty/fr-latin9.map azerty/fr-latin0.map # legacy alias
# Rename conflicting keymaps
mv dvorak/no.map dvorak/no-dvorak.map
mv fgGIod/trf.map fgGIod/trf-fgGIod.map
mv olpc/es.map olpc/es-olpc.map
mv olpc/pt.map olpc/pt-olpc.map
mv qwerty/cz.map qwerty/cz-qwerty.map
popd
# Convert to utf-8
iconv -f iso-8859-1 -t utf-8 < "ChangeLog" > "ChangeLog_"
mv "ChangeLog_" "ChangeLog"
%build
%configure --prefix=%{_prefix} --datadir=/lib/kbd --mandir=%{_mandir} --localedir=%{_datadir}/locale --enable-nls
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# ro_win.map.gz is useless
rm -f $RPM_BUILD_ROOT/lib/kbd/keymaps/i386/qwerty/ro_win.map.gz
# Create additional name for Serbian latin keyboard
ln -s sr-cy.map.gz $RPM_BUILD_ROOT/lib/kbd/keymaps/i386/qwerty/sr-latin.map.gz
# The rhpl keyboard layout table is indexed by kbd layout names, so we need a
# Korean keyboard
ln -s us.map.gz $RPM_BUILD_ROOT/lib/kbd/keymaps/i386/qwerty/ko.map.gz
# Move binaries which we use before /usr is mounted from %{_bindir} to /bin.
mkdir -p $RPM_BUILD_ROOT/bin
for binary in setfont dumpkeys kbd_mode unicode_start unicode_stop loadkeys ; do
mv $RPM_BUILD_ROOT%{_bindir}/$binary $RPM_BUILD_ROOT/bin/
done
# Some microoptimization
sed -i -e 's,\<kbd_mode\>,/bin/kbd_mode,g;s,\<setfont\>,/bin/setfont,g' \
$RPM_BUILD_ROOT/bin/unicode_start
# Link open to openvt
ln -s openvt $RPM_BUILD_ROOT%{_bindir}/open
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc ChangeLog AUTHORS README COPYING doc/kbd.FAQ*.html doc/font-formats/*.html doc/utf/utf* doc/dvorak/*
/bin/*
%{_bindir}/*
%{_mandir}/*/*
%files misc
%defattr(-,root,root,-)
/lib/kbd
%changelog
- Ship /lib/kbd in separate subpackage
- Fix name referring to default keymap
- Rebuilt for RHEL 6
- drop excludearch s390x, we need this package to be able to build other packages on s390x
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
- Add loadkeys 'q' option to loadkeys manpage and --help
Resolves: #487538
- Remove static loadkeys binary (it's not needed anymore)
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
- Merge review (drop Provides/Obsoletes, change Prereq to Requires,
add URL, convert ChangeLog to utf-8, replace locale destination
with macro, add COPYING and add dvorak documentation)
Resolves: #225958
- Rename conflicting keymaps to have unique names
Resolves: #481674
- Move loadkeys to /bin
- Update to kbd-1.15
- Rediff all patches to work with patch --fuzz=0
- Add static loadkeys
Related: #451672
- Fix trq.map
Resolves: #216710
- Rebuild fo GCC 4.3
- Stop kbdrate using consolehelper
Resolves: #393231
- Fix ro.map.gz, add ro_std.map.gz, drop ro_win.map.gz,
add Lat2-Terminus16.psf console font (many thanks to Alexandru Szasz
Resolves: #253892
- Add resizecons (with man page) for x86_64
Resolves: #333651
- Fix ro.map to generate right unicode for s, S, t, T with comma
- Fix LatArCyrHeb-16 unicode mapping table to show comma-version
of s, S, t, T and cedilla-version of s, S, t, T as the same glyph
(because there is no font in kbd for comma-version)
Resolves: #329071
- Add new romanian keymap
Resolves: #253892
- Fix license
- Symlink sr-cy layout to sr-latin
Resolves: #253957
- Rebuild
- Fix sun12x22 font missing unicode mapping table
Resolves: #244628
- Add a "ko" (Korean) keyboard layout, equivalent to the "us" layout
Resolves: #220151
- Document that setkeycodes doesn't affect USB keyboards and that the kernel
doesn't provide the raw scan codes by default
Resolves: #211803
- Ship "el" translation instead of the obsolete "gr" translation
Resolves: #210749
- Fix %% quoting in %%changelog
- Add a missing tilde to U+00E3 in latarcyrheb-sun16.psfu (#204470)
- Obsoletes/Provides open
- Create a symlink from open to openvt
- rebuild
- Don't include <asm/kbdio.h> on SPARC (#198040, patch by Dennis Gilmore
- Fix missing BuildRequires (#193406)
- Don't install resizecons.8 on non-x86 (#186877, patch by Keiichi Mori
- bump again for double-long bug on ppc(64)
- rebuilt for new gcc4.1 snapshot and glibc changes
- Fix build with new coreutils
- Hardcode paths in unicode_start to avoid a few file lookups (#178329)
- Drop unnecessary Prereq: sed mktemp
* Fri Dec 09 2005 Jesse Keating <[email protected]>
- rebuilt
- Don't reload the keymap in unicode_start (#172425)
- Don't ship character set lists (they are already in glibc-common) and an
obsolete copy of kbd.FAQ
- Don't attempt to open directories as source files (#141634, original patch by
Paul Nasrat)
- Fix another violation of C aliasing rules (#157720, patch by Jan Kratochvil)
- Fix violation of C aliasing rules (#150440)
- Don't run ldconfig
- Don't strip executables
- Rebuild with gcc4
- Put "Meta_acute" back in German keymaps, just ignore it in (loadkeys -u)
(patch by Jochen Schmitt)
- Don't ship patch backup files, simpler way
- Don't ship a patch backup file
- Mention in setfont.8 that 512-glyph fonts reduce the number of available
colors (#140935, patch by Dmitry Butskoj)
- Remove "Meta_acute" from German keymaps (#143124)
- Make the %%triggerun script condition more precise, ignore failure of the
script
* Mon Feb 14 2005 Adrian Havill <[email protected]>
- rebuilt
* Tue Jun 15 2004 Elliot Lee <[email protected]>
- rebuilt
* Thu Feb 26 2004 Adrian Havill <[email protected]>
- update to 1.12
* Fri Feb 13 2004 Elliot Lee <[email protected]>
- rebuilt
- remove speakup patch at request of author
- remove speakup patch at request of author
- remove keytable init script (#106783)
- bump for RHEL
- apply the rukbd patch (#78218)
- don't print "plus before..." warnings about non-supported capslock
in unimode <[email protected]> (#81855)
- replaced Russian keyboard map with working UTF-8 equivalent (#79338)
- make euro/latin-9 the default instead of latin-1 and 7-bit (#97013)
- fix swedish keymap; se, not sv (#88791)
- add fr-latin0 legacy alias of fr-latin-9 (#88324)
- add ".map" ext to filename param of init script (#90562)
* Wed Jun 04 2003 Elliot Lee <[email protected]>
- rebuilt
* Thu Mar 06 2003 Florian La Roche <[email protected]>
- build new rpm
* Fri Feb 21 2003 Florian La Roche <[email protected]>
- ExcludeArch mainframe
- remove condrestart from initscript
* Wed Jan 22 2003 Tim Powers <[email protected]>
- rebuilt
- only output terminal unicode init sequence if both stdout and stderr are
connected to terminals, so that it doesn't show up when script outputs
get piped to files
- update to 1.08
- drop updates which went mainline
- add detached signature
- remove directory names from PAM configuration so that the same config file
can be used for any arch on multilib systems
- don't munge /etc/sysconfig/i18n
- don't run setsysfont in upgrade trigger on console-tools
- use cyr-sun16 cyrillic chars in latarcyrheb-sun16 font
instead of old LatArCyrHeb-16 chars
- add Euro character to latarcyrheb-sun16
- use latarcyrheb-sun16 by default in unicode_start script
- add back lat[02]-sun16 fonts plus latarcyrheb-sun16 font
* Thu Aug 22 2002 Karsten Hopp <[email protected]>
- needs to conflict with older util-linux packages
(kbdrate moved between packages)
- remove Evil Hack in favor of slightly-less-evil-hack in initscripts
- fix speakup keymap names
- Evil hack to make setfont work correctly on all consoles (#68018)
- move unicode_stop to /bin too
- fix path to loadkeys in keytable.init
- add in speakup keymaps
* Fri Jun 21 2002 Tim Powers <[email protected]>
- automated rebuild
- fix incorrect path in console.apps configuration file
- move some more stuff to /bin (unicode_start and dependencies)
* Thu May 23 2002 Tim Powers <[email protected]>
- automated rebuild
- Rebuild in new environment
- Oops, actually list the pam files in %%files
- Add and consolehelper'ify kbdrate
- Re-remove kbdrate
- Fix build in current environment
- Get rid of kbdrate, it's in util-linux these days
* Wed Jul 18 2001 Matt Wilson <[email protected]>
- added a patch (Patch4) that allows --tty= in setfont
- modified patch not to break translations
- Add cyrillic patches from [email protected] (#47144)
- Fix "Alt+AltGr=Compose" in qwertz-keyboards
- Fix "make install" and init script (#45327)
* Sat Jun 16 2001 Than Ngo <[email protected]>
- update to 1.0.6
- use %%{_tmppath}
- use find_lang
- support new gettext
- remove some patch files, which are included in 1.0.6
- fix to use RPM_OPT_FLAGS
- Fix up resizecons
- Build everything, obsoletes console-tools
- s/Copyright:/License:/
- License is GPL, not just distributable
- Add our compose mappings from old console-tools
- Add triggerpostun -- console-tools magic to get sane fonts and mappings
* Tue Apr 17 2001 Erik Troan <[email protected]>
- initial packaging for kbdrate