2006-12-18 23:16:50 +00:00
|
|
|
#
|
2011-01-14 14:37:37 +00:00
|
|
|
# spec file for package kbd
|
2006-12-18 23:16:50 +00:00
|
|
|
#
|
2017-03-30 14:20:04 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-18 23:16:50 +00:00
|
|
|
#
|
2008-08-18 16:44:04 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-18 23:16:50 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-12-20 16:54:05 +00:00
|
|
|
|
2006-12-18 23:16:50 +00:00
|
|
|
Name: kbd
|
2017-09-27 18:52:42 +00:00
|
|
|
Version: 2.0.4
|
2011-11-30 14:27:52 +00:00
|
|
|
Release: 0
|
2006-12-18 23:16:50 +00:00
|
|
|
Summary: Keyboard and Font Utilities
|
2017-03-30 14:20:04 +00:00
|
|
|
# git: git://git.altlinux.org/people/legion/packages/kbd.git
|
2012-05-08 08:27:36 +00:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Console
|
2012-12-06 08:14:59 +00:00
|
|
|
Url: ftp://ftp.altlinux.org/pub/people/legion/kbd/
|
2016-07-20 06:59:39 +00:00
|
|
|
# ftp://ftp.kernel.org/pub/linux/utils/kbd/kbd-%{version}.tar.xz repack_kbd.sh
|
2017-09-27 18:52:42 +00:00
|
|
|
Source: %{name}-%{version}-repack.tar.xz
|
2006-12-18 23:16:50 +00:00
|
|
|
Source1: kbd_fonts.tar.bz2
|
|
|
|
Source2: suse-add.tar.bz2
|
2014-08-21 09:09:03 +00:00
|
|
|
Source3: README.SUSE
|
2017-10-19 09:32:21 +00:00
|
|
|
Source4: vlock.pamd
|
2006-12-18 23:16:50 +00:00
|
|
|
Source5: kbd.fillup
|
|
|
|
Source8: sysconfig.console
|
|
|
|
Source9: sysconfig.keyboard
|
2008-05-07 21:13:32 +00:00
|
|
|
Source11: fbtest.c
|
|
|
|
Source12: fbtest.8
|
2010-01-11 13:20:17 +00:00
|
|
|
Source13: guess_encoding.pl
|
2014-09-09 12:39:10 +00:00
|
|
|
Source14: kbd.pl
|
2015-08-21 12:16:43 +00:00
|
|
|
Source15: cz-map.patch
|
2006-12-18 23:16:50 +00:00
|
|
|
Source42: convert-kbd-mac.sed
|
|
|
|
Source43: repack_kbd.sh
|
2015-08-13 14:03:32 +00:00
|
|
|
Source44: xml2lst.pl
|
|
|
|
Source45: genmap4systemd.sh
|
2011-09-14 14:52:28 +00:00
|
|
|
Patch0: kbd-1.15.2-prtscr_no_sigquit.patch
|
|
|
|
Patch2: kbd-1.15.2-unicode_scripts.patch
|
|
|
|
Patch3: kbd-1.15.2-docu-X11R6-xorg.patch
|
|
|
|
Patch4: kbd-1.15.2-sv-latin1-keycode10.patch
|
|
|
|
Patch5: kbd-1.15.2-setfont-no-cruft.patch
|
2014-03-11 18:50:02 +00:00
|
|
|
# TODO: no ideas how to port it.
|
2011-09-14 14:52:28 +00:00
|
|
|
Patch6: kbd-1.15.2-dumpkeys-C-opt.patch
|
2014-08-22 08:31:26 +00:00
|
|
|
Patch9: kbd-2.0.2-comment-typo-qwerty.patch
|
2014-09-18 11:57:55 +00:00
|
|
|
Patch10: kbd-2.0.2-doshell-reference.patch
|
2014-09-25 11:15:33 +00:00
|
|
|
Patch11: kbd-2.0.2-euro-unicode.patch
|
2015-01-07 08:25:43 +00:00
|
|
|
Patch12: kbd-2.0.2-fix-bashisms.patch
|
2015-08-13 14:03:32 +00:00
|
|
|
# Patch13: adds xkb and legacy keymaps subdirs to loadkyes search path
|
|
|
|
# (openSUSE FATE#318355, sle FATE#318426)
|
|
|
|
Patch13: kbd-1.15.5-loadkeys-search-path.patch
|
2012-12-06 08:14:59 +00:00
|
|
|
BuildRequires: automake
|
2011-11-30 14:27:52 +00:00
|
|
|
BuildRequires: bison
|
2014-03-11 18:50:02 +00:00
|
|
|
BuildRequires: check-devel
|
2016-07-20 06:59:39 +00:00
|
|
|
BuildRequires: console-setup
|
2011-11-30 14:27:52 +00:00
|
|
|
BuildRequires: flex
|
2014-03-11 18:50:02 +00:00
|
|
|
BuildRequires: gcc >= 4.6
|
2012-12-06 08:14:59 +00:00
|
|
|
BuildRequires: pam-devel
|
2016-07-20 06:59:39 +00:00
|
|
|
BuildRequires: pkgconfig
|
2015-04-09 09:04:38 +00:00
|
|
|
BuildRequires: suse-module-tools
|
2015-08-13 14:03:32 +00:00
|
|
|
BuildRequires: xkeyboard-config
|
2016-07-20 06:59:39 +00:00
|
|
|
BuildRequires: xz
|
2017-03-30 14:20:04 +00:00
|
|
|
# Temporarily require -legacy
|
|
|
|
Requires: %{name}-legacy = %{version}-%{release}
|
2016-07-20 06:59:39 +00:00
|
|
|
Requires(post): coreutils
|
|
|
|
Requires(postun): coreutils
|
|
|
|
Requires(pre): %fillup_prereq
|
2017-09-27 18:52:42 +00:00
|
|
|
Provides: vlock = 2.2.3
|
|
|
|
Obsoletes: vlock <= 2.2.3
|
2012-12-06 08:14:59 +00:00
|
|
|
|
2006-12-18 23:16:50 +00:00
|
|
|
%description
|
|
|
|
Load and save keyboard mappings. This is needed if you are not using
|
|
|
|
the US keyboard map. This package also contains utilities for changing
|
|
|
|
your console fonts. If you install this package, YaST includes an extra
|
|
|
|
menu to allow you to choose between the different fonts. This package
|
|
|
|
also includes fonts from the kbd_fonts.tar.gz package (by Paul
|
|
|
|
Gortmaker) on Sunsite.
|
|
|
|
|
2015-08-13 14:03:32 +00:00
|
|
|
%package legacy
|
|
|
|
Summary: Legacy data for kbd package
|
|
|
|
Group: System/Console
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description legacy
|
|
|
|
The %{name}-legacy package contains original keymaps for kbd package.
|
|
|
|
Please note that %{name}-legacy is not helpful without kbd.
|
|
|
|
|
2016-07-20 06:59:39 +00:00
|
|
|
%define kbd %{_datadir}/kbd
|
2007-12-03 22:16:58 +00:00
|
|
|
|
2006-12-18 23:16:50 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -a 1 -a 2 -n kbd-%{version}
|
2017-10-19 09:32:21 +00:00
|
|
|
|
2015-08-13 14:03:32 +00:00
|
|
|
cp -fp %{SOURCE44} .
|
|
|
|
cp -fp %{SOURCE45} .
|
2010-09-06 15:36:50 +00:00
|
|
|
%patch0 -p1
|
|
|
|
%patch2
|
2014-03-11 18:50:02 +00:00
|
|
|
%patch3
|
2006-12-18 23:16:50 +00:00
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
2014-03-11 18:50:02 +00:00
|
|
|
# TODO: no ideas how to port it.
|
2014-09-18 11:57:55 +00:00
|
|
|
%patch6
|
2014-08-22 08:31:26 +00:00
|
|
|
%patch9
|
2014-09-18 11:57:55 +00:00
|
|
|
%patch10
|
2014-09-25 11:15:33 +00:00
|
|
|
%patch11
|
2015-01-07 08:25:43 +00:00
|
|
|
%patch12 -p1
|
2015-08-13 14:03:32 +00:00
|
|
|
%patch13 -p1
|
2006-12-18 23:16:50 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
for i in `find data/keymaps/mac -type f` ; do
|
2012-12-06 08:14:59 +00:00
|
|
|
sed -i -f %{SOURCE42} $i
|
2006-12-18 23:16:50 +00:00
|
|
|
done
|
2008-11-10 14:22:02 +00:00
|
|
|
# workaround ambiguous keymap names
|
|
|
|
pushd data/keymaps/i386
|
|
|
|
# bnc#48301
|
|
|
|
test -f qwerty/se-latin1.map || cp qwerty/sv-latin1.map qwerty/se-latin1.map
|
|
|
|
# bnc#435121
|
|
|
|
test -f olpc/es-olpc.map || mv olpc/es.map olpc/es-olpc.map
|
2016-07-20 06:59:39 +00:00
|
|
|
# Rename conflicting keymaps, as Fedora do
|
|
|
|
test -f dvorak/no.map || mv dvorak/no.map dvorak/no-dvorak.map
|
|
|
|
test -f fgGIod/trf.map || mv fgGIod/trf.map fgGIod/trf-fgGIod.map
|
|
|
|
test -f olpc/pt.map || mv olpc/pt.map olpc/pt-olpc.map
|
|
|
|
test -f qwerty/cz.map || mv qwerty/cz.map qwerty/cz-qwerty.map
|
2008-11-10 14:22:02 +00:00
|
|
|
popd
|
2011-10-04 08:34:21 +00:00
|
|
|
%configure \
|
2016-07-20 06:59:39 +00:00
|
|
|
--disable-silent-rules \
|
2008-08-21 21:56:49 +00:00
|
|
|
--datadir=%{kbd} \
|
|
|
|
--enable-nls \
|
2016-07-20 06:59:39 +00:00
|
|
|
--localedir=%{_datadir}/locale \
|
2017-09-27 18:52:42 +00:00
|
|
|
--enable-optional-progs
|
2016-07-20 06:59:39 +00:00
|
|
|
make %{?_smp_mflags}
|
2012-12-06 08:14:59 +00:00
|
|
|
gcc %{optflags} -o fbtest $RPM_SOURCE_DIR/fbtest.c
|
2008-10-06 16:56:18 +00:00
|
|
|
# fix lat2-16.psfu (bnc#340579)
|
|
|
|
font=data/consolefonts/lat2a-16.psfu
|
|
|
|
./src/psfxtable -i $font -it data/unimaps/lat2u.uni \
|
|
|
|
-o t.psfu
|
|
|
|
mv t.psfu $font
|
2016-07-20 06:59:39 +00:00
|
|
|
make %{?_smp_mflags}
|
2006-12-18 23:16:50 +00:00
|
|
|
|
|
|
|
%install
|
2012-12-06 08:14:59 +00:00
|
|
|
mkdir -p %{buildroot}%{_sbindir}
|
|
|
|
DOC=%{buildroot}%{_defaultdocdir}/kbd
|
2006-12-18 23:16:50 +00:00
|
|
|
KBD=%{kbd}
|
2012-12-06 08:14:59 +00:00
|
|
|
K=%{buildroot}$KBD
|
2006-12-18 23:16:50 +00:00
|
|
|
mkdir -p $K/consolefonts
|
2016-07-20 06:59:39 +00:00
|
|
|
# First install the fonts from the vfont package
|
2006-12-18 23:16:50 +00:00
|
|
|
# (allowing kbd to overwrite some of them)
|
|
|
|
mkdir -p $DOC/fonts
|
|
|
|
install -m 644 fonts/README $DOC/fonts/README.fonts
|
|
|
|
install -m 644 fonts/vfont-4.36/README $DOC/fonts/README.vfont-4.36
|
|
|
|
install -m 644 fonts/vfont-5.10/README $DOC/fonts/README.vfont-5.10
|
|
|
|
install -m 644 fonts/vfont-5.10/SCRIPT $DOC/fonts/SCRIPT.vfont-5.10
|
|
|
|
rm -f fonts/vfont-5.10/SCRIPT fonts/*/README
|
|
|
|
install -m 644 fonts/*/* $K/consolefonts/
|
|
|
|
# Now call kbd install
|
2012-12-06 08:14:59 +00:00
|
|
|
echo "# Now call kbd install DESTDIR=%{buildroot} DATA_DIR=%{kbd} MAN_DIR=%{_mandir}"
|
|
|
|
make DESTDIR=%{buildroot} DATA_DIR=%{kbd} MAN_DIR=%{_mandir} install
|
2006-12-18 23:16:50 +00:00
|
|
|
# ln -s iso01-12x22.psfu $K/consolefonts/suse12x22.psfu
|
|
|
|
install -m 644 data/consolefonts/README* $DOC/fonts/
|
|
|
|
mkdir -p $DOC/doc/
|
2014-03-11 18:50:02 +00:00
|
|
|
install -m 644 docs/doc/keysyms.h.info docs/doc/kbd.FAQ.txt docs/doc/kbd.FAQ*.html docs/doc/README* docs/doc/TODO $DOC/doc/
|
|
|
|
install -m 644 docs/doc/as400.kbd docs/doc/console.docs docs/doc/repeat/set_kbd_repeat-2 $DOC/doc/
|
2016-07-20 06:59:39 +00:00
|
|
|
echo "See %{_datadir}/i18/charmaps for a description of char maps" >$DOC/doc/README.charmaps
|
2010-09-06 15:36:50 +00:00
|
|
|
install -m 644 COPYING ChangeLog CREDITS README $DOC/
|
2012-12-06 08:14:59 +00:00
|
|
|
install -m 644 %{SOURCE3} $DOC/
|
2006-12-18 23:16:50 +00:00
|
|
|
rm -f $K/consolefonts/README* $K/consolefonts/ERRORS.gz
|
|
|
|
if ls $K/consolefonts/Agafari-* > /dev/null 2>&1; then
|
|
|
|
echo "";
|
|
|
|
echo "ERROR: Ethiopian Agafari fonts are for noncommercial distribution only."
|
|
|
|
echo "please run repack_kbd.sh";
|
|
|
|
echo "";
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
ln -sf us.map.gz $K/keymaps/i386/qwerty/khmer.map.gz
|
|
|
|
ln -sf us.map.gz $K/keymaps/i386/qwerty/korean.map.gz
|
2008-11-04 16:42:08 +00:00
|
|
|
ln -sf us.map.gz $K/keymaps/i386/qwerty/arabic.map.gz
|
2010-09-06 15:36:50 +00:00
|
|
|
ln -sf us.map.gz $K/keymaps/i386/qwerty/chinese.map.gz
|
|
|
|
ln -sf us.map.gz $K/keymaps/i386/qwerty/taiwanese.map.gz
|
2015-08-21 12:16:43 +00:00
|
|
|
ln -sf sr-cy.map.gz $K/keymaps/i386/qwerty/sr-latin.map.gz
|
2006-12-18 23:16:50 +00:00
|
|
|
# Compatability links; don't know what the first three are good for.
|
|
|
|
# The others are for yast/langselection and should be removed as soon as
|
|
|
|
# yast knows about it.
|
|
|
|
#ln -sf de-latin1-nodeadkeys.map.gz \
|
|
|
|
# $K/keymaps/i386/qwertz/de-lat1-nd.map.gz
|
|
|
|
#ln -sf ru1.map.gz $K/keymaps/i386/qwerty/russian.map.gz
|
|
|
|
#ln -sf sg-latin1-lk450.map.gz \
|
|
|
|
# $K/keymaps/i386/qwertz/sg-l1-lk450.map.gz
|
|
|
|
# The next two links are for yast-language choise; should be obsolete
|
|
|
|
# with the next yast version (on 6.1)
|
|
|
|
#ln -sf lat1-16.psfu.gz $K/consolefonts/lat1u-16.psf.gz
|
|
|
|
#ln -sf lat2-16.psfu.gz $K/consolefonts/lat2u-16.psf.gz
|
|
|
|
#
|
|
|
|
# This is for stupid default font search
|
|
|
|
rm -f $K/consolefonts/default8x16.gz
|
|
|
|
ln -sf default8x16.psfu.gz $K/consolefonts/default8x16.gz
|
|
|
|
#
|
|
|
|
rm -f $K/keymaps/i386/qwerty/*~ $K/keymaps/i386/qwerty/*,v
|
|
|
|
#
|
|
|
|
# this is until the Cyr* font are not part of the package
|
|
|
|
rm -f $K/consolefonts/Cyr_a8x14.gz
|
|
|
|
ln -sf Cyr_a8x14.psfu.gz $K/consolefonts/Cyr_a8x14.gz
|
|
|
|
rm -f $K/consolefonts/Cyr_a8x16.gz
|
|
|
|
ln -sf Cyr_a8x16.psfu.gz $K/consolefonts/Cyr_a8x16.gz
|
|
|
|
rm -f $K/consolefonts/Cyr_a8x8.gz
|
|
|
|
ln -sf Cyr_a8x8.psfu.gz $K/consolefonts/Cyr_a8x8.gz
|
|
|
|
#
|
|
|
|
find $K -name \*.orig | xargs -r rm -vf
|
|
|
|
# add some missing maps to mac and remap french board
|
|
|
|
(
|
|
|
|
cd $K/keymaps/mac/all
|
|
|
|
pwd
|
|
|
|
#ln -s mac-fr-latin1.map.gz mac-fr_CH-latin1.map.gz
|
|
|
|
#ln -s mac-fr-latin1.map.gz mac-fr.map.gz
|
|
|
|
for i in \
|
|
|
|
mac-es.map.gz \
|
|
|
|
mac-it.map.gz \
|
|
|
|
mac-pt-latin1.map.gz \
|
|
|
|
mac-br-abnt2.map.gz \
|
|
|
|
mac-gr.map.gz \
|
|
|
|
mac-dk-latin1.map.gz \
|
|
|
|
mac-no-latin1.map.gz \
|
|
|
|
mac-fi-latin1.map.gz \
|
|
|
|
mac-cz-us-qwertz.map.gz \
|
|
|
|
mac-hu.map.gz \
|
|
|
|
mac-Pl02.map.gz \
|
|
|
|
mac-ru1.map.gz \
|
|
|
|
mac-jp106.map.gz
|
|
|
|
do test -f $i || ln -sv mac-us.map.gz $i
|
|
|
|
done
|
|
|
|
)
|
2012-12-06 08:14:59 +00:00
|
|
|
FILLUP_DIR=%{buildroot}%{_localstatedir}/adm/fillup-templates
|
2006-12-18 23:16:50 +00:00
|
|
|
mkdir -p $FILLUP_DIR
|
2012-12-06 08:14:59 +00:00
|
|
|
install -m 644 %{SOURCE8} $FILLUP_DIR/sysconfig.console
|
|
|
|
install -m 644 %{SOURCE9} $FILLUP_DIR/sysconfig.keyboard
|
|
|
|
cat %{SOURCE5} >> $FILLUP_DIR/sysconfig.keyboard
|
2016-07-20 06:59:39 +00:00
|
|
|
%ifnarch %{ix86} x86_64
|
2017-10-19 09:32:21 +00:00
|
|
|
rm -f %{buildroot}%{_mandir}/man8/resizecons.8*
|
2006-12-18 23:16:50 +00:00
|
|
|
%endif
|
2016-07-20 06:59:39 +00:00
|
|
|
%ifarch %{sparc} m68k
|
2017-10-19 09:32:21 +00:00
|
|
|
rm -f %{buildroot}%{_mandir}/man8/getkeycodes.8*
|
|
|
|
rm -f %{buildroot}%{_mandir}/man8/setkeycodes.8*
|
2006-12-18 23:16:50 +00:00
|
|
|
%endif
|
2017-10-19 09:32:21 +00:00
|
|
|
install -m 755 fbtest %{buildroot}%{_sbindir}
|
|
|
|
install -d %{buildroot}%{_sysconfdir}/pam.d
|
|
|
|
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/pam.d/vlock
|
|
|
|
install -m 644 %{SOURCE12} %{buildroot}%{_mandir}/man8/
|
|
|
|
install -m 755 %{SOURCE13} %{buildroot}%{_bindir}/guess_encoding
|
|
|
|
install -m 755 %{SOURCE14} %{buildroot}%{_bindir}/kbd
|
2012-05-08 08:27:36 +00:00
|
|
|
#UsrMerge
|
2012-12-06 08:14:59 +00:00
|
|
|
mkdir -p %{buildroot}/bin
|
|
|
|
mkdir -p %{buildroot}/sbin
|
|
|
|
ln -s %{_bindir}/chvt %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/clrunimap %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/deallocvt %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/dumpkeys %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/fgconsole %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/getunimap %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/guess_encoding %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/kbd_mode %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/kbdinfo %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/kbdrate %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/loadkeys %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/loadunimap %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/mapscrn %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/openvt %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/outpsfheader %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/psfaddtable %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/psfgettable %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/psfstriptable %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/psfxtable %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/screendump %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/setfont %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/setleds %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/setlogcons %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/setmetamode %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/setpalette %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/setvesablank %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/setvtrgb %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/showconsolefont %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/showkey %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/spawn_console %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/spawn_login %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/unicode_start %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/unicode_stop %{buildroot}/bin
|
|
|
|
ln -s %{_sbindir}/fbtest %{buildroot}/sbin
|
2016-07-20 06:59:39 +00:00
|
|
|
%ifnarch %{sparc} m68k
|
2012-12-06 08:14:59 +00:00
|
|
|
ln -s %{_bindir}/getkeycodes %{buildroot}/bin
|
|
|
|
ln -s %{_bindir}/setkeycodes %{buildroot}/bin
|
2012-05-08 08:27:36 +00:00
|
|
|
%endif
|
2016-07-20 06:59:39 +00:00
|
|
|
%ifarch %{ix86} x86_64
|
2012-12-06 08:14:59 +00:00
|
|
|
ln -s %{_bindir}/resizecons %{buildroot}/bin
|
2012-05-08 08:27:36 +00:00
|
|
|
%endif
|
|
|
|
#EndUsrMerge
|
2015-08-13 14:03:32 +00:00
|
|
|
|
|
|
|
# Move original keymaps to legacy directory
|
2017-10-19 09:32:21 +00:00
|
|
|
mkdir -p %{buildroot}%{kbd}/keymaps/legacy
|
|
|
|
mv %{buildroot}%{kbd}/keymaps/{amiga,atari,i386,include,mac,ppc,sun} %{buildroot}%{kbd}/keymaps/legacy
|
2015-08-13 14:03:32 +00:00
|
|
|
|
|
|
|
# Convert X keyboard layouts to console keymaps
|
2017-10-19 09:32:21 +00:00
|
|
|
mkdir -p %{buildroot}%{kbd}/keymaps/xkb
|
2016-07-20 06:59:39 +00:00
|
|
|
perl xml2lst.pl < %{_datadir}/X11/xkb/rules/base.xml > layouts-variants.lst
|
2015-08-13 14:03:32 +00:00
|
|
|
while read line; do
|
|
|
|
XKBLAYOUT=`echo "$line" | cut -d " " -f 1`
|
|
|
|
echo "$XKBLAYOUT" >> layouts-list.lst
|
|
|
|
XKBVARIANT=`echo "$line" | cut -d " " -f 2`
|
2017-10-19 09:32:21 +00:00
|
|
|
ckbcomp "$XKBLAYOUT" "$XKBVARIANT" | gzip -n9 > %{buildroot}%{kbd}/keymaps/xkb/"$XKBLAYOUT"-"$XKBVARIANT".map.gz
|
2015-08-13 14:03:32 +00:00
|
|
|
done < layouts-variants.lst
|
|
|
|
|
|
|
|
# Convert X keyboard layouts (plain, no variant)
|
|
|
|
cat layouts-list.lst | sort -u >> layouts-list-uniq.lst
|
|
|
|
while read line; do
|
2017-10-19 09:32:21 +00:00
|
|
|
ckbcomp "$line" | gzip -n9 > %{buildroot}%{kbd}/keymaps/xkb/"$line".map.gz
|
2015-08-13 14:03:32 +00:00
|
|
|
done < layouts-list-uniq.lst
|
|
|
|
|
|
|
|
# wipe converted layouts which cannot input ASCII (rh#1031848)
|
2017-10-19 09:32:21 +00:00
|
|
|
zgrep -L "U+0041" %{buildroot}%{kbd}/keymaps/xkb/* | xargs rm -f
|
2015-08-13 14:03:32 +00:00
|
|
|
|
|
|
|
# Rename the converted default fi (kotoistus) layout (rh#1117891)
|
2017-10-19 09:32:21 +00:00
|
|
|
gunzip %{buildroot}%{kbd}/keymaps/xkb/fi.map.gz
|
|
|
|
mv %{buildroot}%{kbd}/keymaps/xkb/fi.map %{buildroot}%{kbd}/keymaps/xkb/fi-kotoistus.map
|
|
|
|
gzip -n9 %{buildroot}%{kbd}/keymaps/xkb/fi-kotoistus.map
|
2015-08-13 14:03:32 +00:00
|
|
|
|
2015-08-21 12:16:43 +00:00
|
|
|
# Fix converted cz layout - add compose rules (rh#1181581)
|
2017-10-19 09:32:21 +00:00
|
|
|
gunzip %{buildroot}%{kbd}/keymaps/xkb/cz.map.gz
|
|
|
|
patch %{buildroot}%{kbd}/keymaps/xkb/cz.map < %{SOURCE15}
|
|
|
|
gzip -n9 %{buildroot}%{kbd}/keymaps/xkb/cz.map
|
2015-08-21 12:16:43 +00:00
|
|
|
|
2015-08-13 14:03:32 +00:00
|
|
|
# Generate entries for systemd's /usr/share/systemd/kbd-model-map
|
2016-07-20 06:59:39 +00:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/systemd
|
2017-10-19 09:32:21 +00:00
|
|
|
sh ./genmap4systemd.sh %{buildroot}%{kbd}/keymaps/xkb \
|
2016-07-20 06:59:39 +00:00
|
|
|
> %{buildroot}%{_datadir}/systemd/kbd-model-map.xkb-generated
|
2015-08-13 14:03:32 +00:00
|
|
|
|
2008-03-10 01:57:24 +00:00
|
|
|
%find_lang %{name}
|
2006-12-18 23:16:50 +00:00
|
|
|
|
|
|
|
%post
|
2013-04-04 07:20:40 +00:00
|
|
|
%{fillup_only -n console}
|
2007-08-16 12:06:26 +00:00
|
|
|
%{fillup_only -n keyboard}
|
2015-04-01 18:22:10 +00:00
|
|
|
%{?regenerate_initrd_post}
|
2006-12-18 23:16:50 +00:00
|
|
|
|
2015-12-15 18:39:59 +00:00
|
|
|
%postun
|
|
|
|
%{?regenerate_initrd_post}
|
|
|
|
|
2015-04-01 18:22:10 +00:00
|
|
|
%posttrans
|
|
|
|
%{?regenerate_initrd_posttrans}
|
|
|
|
|
2008-03-10 01:57:24 +00:00
|
|
|
%files -f %{name}.lang
|
2012-12-06 08:14:59 +00:00
|
|
|
#config(noreplace) /etc/sysconfig/console
|
2006-12-18 23:16:50 +00:00
|
|
|
%doc %{_defaultdocdir}/kbd
|
2012-12-06 08:14:59 +00:00
|
|
|
#doc COPYING CHANGES README CREDITS
|
|
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.console
|
|
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.keyboard
|
2006-12-18 23:16:50 +00:00
|
|
|
%{kbd}
|
2015-08-13 14:03:32 +00:00
|
|
|
%exclude %{kbd}/keymaps/legacy
|
2012-05-08 08:27:36 +00:00
|
|
|
#UsrMerge
|
2008-05-07 21:13:32 +00:00
|
|
|
/sbin/fbtest
|
2006-12-18 23:16:50 +00:00
|
|
|
/bin/chvt
|
|
|
|
/bin/openvt
|
|
|
|
/bin/deallocvt
|
|
|
|
/bin/dumpkeys
|
2016-07-20 06:59:39 +00:00
|
|
|
%ifnarch %{sparc} m68k
|
2006-12-18 23:16:50 +00:00
|
|
|
/bin/getkeycodes
|
|
|
|
/bin/setkeycodes
|
|
|
|
%endif
|
|
|
|
/bin/fgconsole
|
|
|
|
/bin/kbd_mode
|
2011-09-14 14:52:28 +00:00
|
|
|
/bin/kbdinfo
|
2006-12-18 23:16:50 +00:00
|
|
|
/bin/loadkeys
|
|
|
|
/bin/loadunimap
|
|
|
|
/bin/mapscrn
|
|
|
|
/bin/psfaddtable
|
|
|
|
/bin/psfgettable
|
|
|
|
/bin/psfstriptable
|
|
|
|
/bin/psfxtable
|
2016-07-20 06:59:39 +00:00
|
|
|
%ifarch %{ix86} x86_64
|
2011-12-20 16:54:05 +00:00
|
|
|
/bin/resizecons
|
|
|
|
%endif
|
2006-12-18 23:16:50 +00:00
|
|
|
/bin/setfont
|
|
|
|
/bin/setleds
|
|
|
|
/bin/setmetamode
|
2011-09-14 14:52:28 +00:00
|
|
|
/bin/setvtrgb
|
2006-12-18 23:16:50 +00:00
|
|
|
/bin/showconsolefont
|
|
|
|
/bin/showkey
|
|
|
|
/bin/unicode_start
|
|
|
|
/bin/unicode_stop
|
|
|
|
/bin/kbdrate
|
2010-01-11 13:20:17 +00:00
|
|
|
/bin/guess_encoding
|
2010-09-07 12:49:05 +00:00
|
|
|
/bin/clrunimap
|
|
|
|
/bin/getunimap
|
|
|
|
/bin/outpsfheader
|
|
|
|
/bin/screendump
|
|
|
|
/bin/setlogcons
|
|
|
|
/bin/setpalette
|
|
|
|
/bin/setvesablank
|
|
|
|
/bin/spawn_console
|
|
|
|
/bin/spawn_login
|
2012-05-08 08:27:36 +00:00
|
|
|
#EndUsrMerge
|
|
|
|
%{_sbindir}/fbtest
|
|
|
|
%{_bindir}/chvt
|
|
|
|
%{_bindir}/openvt
|
|
|
|
%{_bindir}/deallocvt
|
|
|
|
%{_bindir}/dumpkeys
|
2016-07-20 06:59:39 +00:00
|
|
|
%ifnarch %{sparc} m68k
|
2012-05-08 08:27:36 +00:00
|
|
|
%{_bindir}/getkeycodes
|
|
|
|
%{_bindir}/setkeycodes
|
|
|
|
%endif
|
|
|
|
%{_bindir}/fgconsole
|
|
|
|
%{_bindir}/kbd_mode
|
|
|
|
%{_bindir}/kbdinfo
|
|
|
|
%{_bindir}/loadkeys
|
|
|
|
%{_bindir}/loadunimap
|
|
|
|
%{_bindir}/mapscrn
|
|
|
|
%{_bindir}/psfaddtable
|
|
|
|
%{_bindir}/psfgettable
|
|
|
|
%{_bindir}/psfstriptable
|
|
|
|
%{_bindir}/psfxtable
|
2016-07-20 06:59:39 +00:00
|
|
|
%ifarch %{ix86} x86_64
|
2012-05-08 08:27:36 +00:00
|
|
|
%{_bindir}/resizecons
|
|
|
|
%endif
|
|
|
|
%{_bindir}/setfont
|
|
|
|
%{_bindir}/setleds
|
|
|
|
%{_bindir}/setmetamode
|
|
|
|
%{_bindir}/setvtrgb
|
|
|
|
%{_bindir}/showconsolefont
|
|
|
|
%{_bindir}/showkey
|
|
|
|
%{_bindir}/unicode_start
|
|
|
|
%{_bindir}/unicode_stop
|
|
|
|
%{_bindir}/kbdrate
|
|
|
|
%{_bindir}/guess_encoding
|
2014-09-09 12:39:10 +00:00
|
|
|
%{_bindir}/kbd
|
2012-05-08 08:27:36 +00:00
|
|
|
%{_bindir}/clrunimap
|
|
|
|
%{_bindir}/getunimap
|
|
|
|
%{_bindir}/outpsfheader
|
|
|
|
%{_bindir}/screendump
|
|
|
|
%{_bindir}/setlogcons
|
|
|
|
%{_bindir}/setpalette
|
|
|
|
%{_bindir}/setvesablank
|
|
|
|
%{_bindir}/spawn_console
|
|
|
|
%{_bindir}/spawn_login
|
2017-09-27 18:52:42 +00:00
|
|
|
%{_bindir}/vlock
|
2016-07-20 06:59:39 +00:00
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man5/keymaps.5%{ext_man}
|
|
|
|
%ifnarch %{sparc} m68k
|
|
|
|
%{_mandir}/man8/getkeycodes.8%{ext_man}
|
|
|
|
%{_mandir}/man8/setkeycodes.8%{ext_man}
|
2006-12-18 23:16:50 +00:00
|
|
|
%endif
|
2016-07-20 06:59:39 +00:00
|
|
|
%{_mandir}/man8/showconsolefont.8%{ext_man}
|
|
|
|
%{_mandir}/man8/loadunimap.8%{ext_man}
|
|
|
|
%{_mandir}/man8/mapscrn.8%{ext_man}
|
|
|
|
%ifarch %{ix86} x86_64
|
|
|
|
%{_mandir}/man8/resizecons.8%{ext_man}
|
2011-12-20 16:54:05 +00:00
|
|
|
%endif
|
2016-07-20 06:59:39 +00:00
|
|
|
%{_mandir}/man8/setfont.8%{ext_man}
|
|
|
|
%{_mandir}/man8/fbtest.8%{ext_man}
|
|
|
|
%{_mandir}/man8/kbdrate.8%{ext_man}
|
|
|
|
%{_mandir}/man8/clrunimap.8%{ext_man}
|
|
|
|
%{_mandir}/man8/getunimap.8%{ext_man}
|
|
|
|
%{_mandir}/man8/mk_modmap.8%{ext_man}
|
|
|
|
%{_mandir}/man8/setlogcons.8%{ext_man}
|
|
|
|
%{_mandir}/man8/setvesablank.8%{ext_man}
|
|
|
|
%{_mandir}/man8/setvtrgb.8%{ext_man}
|
|
|
|
%{_mandir}/man8/vcstime.8%{ext_man}
|
2017-10-19 09:32:21 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/pam.d/vlock
|
2016-07-20 06:59:39 +00:00
|
|
|
%dir %{_datadir}/systemd
|
|
|
|
%{_datadir}/systemd/kbd-model-map.xkb-generated
|
2015-08-13 14:03:32 +00:00
|
|
|
|
|
|
|
%files legacy
|
|
|
|
%{kbd}/keymaps/legacy
|
2006-12-18 23:16:50 +00:00
|
|
|
|
2007-03-29 15:13:27 +00:00
|
|
|
%changelog
|