Accepting request 528635 from home:sbrabec:branches:kbd-1056449
- Version update to 2.0.6: * translation updates * support for U+202F * minor fixes and code cleanup * minor improvements and more characters support - Enable vlock (bsc#1056449, FATE#261). OBS-URL: https://build.opensuse.org/request/show/528635 OBS-URL: https://build.opensuse.org/package/show/Base:System/kbd?expand=0&rev=94
This commit is contained in:
parent
418a5bd734
commit
146e9377e6
@ -1,18 +1,18 @@
|
|||||||
Index: docs/man/man1/dumpkeys.1.in
|
Index: docs/man/man1/dumpkeys.1.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- docs/man/man1/dumpkeys.1.in.orig 2013-08-27 22:45:33.000000000 +0200
|
--- docs/man/man1/dumpkeys.1.in.orig
|
||||||
+++ docs/man/man1/dumpkeys.1.in 2014-09-12 13:42:01.557871837 +0200
|
+++ docs/man/man1/dumpkeys.1.in
|
||||||
@@ -4,6 +4,7 @@
|
@@ -4,6 +4,7 @@
|
||||||
dumpkeys \- dump keyboard translation tables
|
dumpkeys \- dump keyboard translation tables
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B dumpkeys
|
.B dumpkeys
|
||||||
+.RI [ \-C\ '<vc>' | \-\-console='<vc>' ]
|
+.RI [ \-C\ '<vc>' | \-\-console='<vc>' ]
|
||||||
[
|
[
|
||||||
.B \-hilfn
|
.\".B \-1Vdfhiklnstv
|
||||||
.BI \-c charset
|
.B \-h \-\-help \-i \-\-short\-info \-l \-s \-\-long\-info
|
||||||
@@ -197,6 +198,12 @@
|
@@ -212,6 +213,12 @@ loadkeys how to interpret the keymap. (F
|
||||||
loadkeys how to interpret the keymap. (For example, "division" is
|
.B \-V \-\-version
|
||||||
0xf7 in iso-8859-1 but 0xba in iso-8859-8.)
|
Prints version number and exits.
|
||||||
.LP
|
.LP
|
||||||
+The affected console device can be specified using the
|
+The affected console device can be specified using the
|
||||||
+.I -C
|
+.I -C
|
||||||
@ -25,27 +25,27 @@ Index: docs/man/man1/dumpkeys.1.in
|
|||||||
.TP 20
|
.TP 20
|
||||||
Index: src/dumpkeys.c
|
Index: src/dumpkeys.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- src/dumpkeys.c.orig 2014-06-15 20:33:18.000000000 +0200
|
--- src/dumpkeys.c.orig
|
||||||
+++ src/dumpkeys.c 2014-09-12 13:47:09.633866557 +0200
|
+++ src/dumpkeys.c
|
||||||
@@ -41,6 +41,8 @@
|
@@ -45,6 +45,8 @@ valid options are:\n\
|
||||||
--funcs-only display only the function key strings\n\
|
-t --funcs-only display only the function key strings\n\
|
||||||
--keys-only display only key bindings\n\
|
-k --keys-only display only key bindings\n\
|
||||||
--compose-only display only compose key combinations\n\
|
-d --compose-only display only compose key combinations\n\
|
||||||
+ -C <vc>\n\
|
+ -C <vc>\n\
|
||||||
+ --console=<vc> Indicate the virtual console device to be used.\n\
|
+ --console=<vc> Indicate the virtual console device to be used.\n\
|
||||||
-c --charset="));
|
-c --charset="));
|
||||||
lk_list_charsets(stderr);
|
lk_list_charsets(stderr);
|
||||||
fprintf(stderr, _("\
|
fprintf(stderr, _("\
|
||||||
@@ -52,7 +54,7 @@
|
@@ -60,7 +62,7 @@ valid options are:\n\
|
||||||
|
|
||||||
int
|
int main(int argc, char *argv[])
|
||||||
main (int argc, char *argv[]) {
|
{
|
||||||
- const char *short_opts = "hilvsnf1tkdS:c:V";
|
- const char *short_opts = "hilvsnf1tkdS:c:V";
|
||||||
+ const char *short_opts = "hilvsnf1tkdS:C:c:V";
|
+ const char *short_opts = "hilvsnf1tkdS:C:c:V";
|
||||||
const struct option long_opts[] = {
|
const struct option long_opts[] = {
|
||||||
{ "help", no_argument, NULL, 'h' },
|
{ "help", no_argument, NULL, 'h' },
|
||||||
{ "short-info", no_argument, NULL, 'i' },
|
{ "short-info", no_argument, NULL, 'i' },
|
||||||
@@ -65,6 +67,7 @@
|
@@ -73,6 +75,7 @@ int main(int argc, char *argv[])
|
||||||
{ "keys-only", no_argument, NULL, 'k' },
|
{ "keys-only", no_argument, NULL, 'k' },
|
||||||
{ "compose-only", no_argument, NULL, 'd' },
|
{ "compose-only", no_argument, NULL, 'd' },
|
||||||
{ "charset", required_argument, NULL, 'c' },
|
{ "charset", required_argument, NULL, 'c' },
|
||||||
@ -53,7 +53,7 @@ Index: src/dumpkeys.c
|
|||||||
{ "verbose", no_argument, NULL, 'v' },
|
{ "verbose", no_argument, NULL, 'v' },
|
||||||
{ "version", no_argument, NULL, 'V' },
|
{ "version", no_argument, NULL, 'V' },
|
||||||
{ NULL, 0, NULL, 0 }
|
{ NULL, 0, NULL, 0 }
|
||||||
@@ -79,6 +82,7 @@
|
@@ -87,6 +90,7 @@ int main(int argc, char *argv[])
|
||||||
char funcs_only = 0;
|
char funcs_only = 0;
|
||||||
char keys_only = 0;
|
char keys_only = 0;
|
||||||
char diac_only = 0;
|
char diac_only = 0;
|
||||||
@ -61,7 +61,7 @@ Index: src/dumpkeys.c
|
|||||||
|
|
||||||
struct lk_ctx *ctx;
|
struct lk_ctx *ctx;
|
||||||
|
|
||||||
@@ -135,6 +139,9 @@
|
@@ -143,6 +147,9 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
printf("charset \"%s\"\n", optarg);
|
printf("charset \"%s\"\n", optarg);
|
||||||
break;
|
break;
|
||||||
@ -71,12 +71,12 @@ Index: src/dumpkeys.c
|
|||||||
case 'V':
|
case 'V':
|
||||||
print_version_and_exit();
|
print_version_and_exit();
|
||||||
case 'h':
|
case 'h':
|
||||||
@@ -146,7 +153,7 @@
|
@@ -154,7 +161,7 @@ int main(int argc, char *argv[])
|
||||||
if (optind < argc)
|
if (optind < argc)
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
- fd = getfd(NULL);
|
- if ((fd = getfd(NULL)) < 0)
|
||||||
+ fd = getfd(console);
|
+ if ((fd = getfd(console)) < 0)
|
||||||
|
kbd_error(EXIT_FAILURE, 0, _("Couldn't get a file descriptor referring to the console"));
|
||||||
|
|
||||||
/* check whether the keyboard is in Unicode mode */
|
/* check whether the keyboard is in Unicode mode */
|
||||||
if (ioctl(fd, KDGKBMODE, &kbd_mode)) {
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
--- kbd-1.14.1wip/src/kdfontop.c.orig 2008-03-03 23:47:18.160420000 +0100
|
Index: kbd-2.0.4/src/kdfontop.c
|
||||||
+++ kbd-1.14.1wip/src/kdfontop.c 2008-03-03 23:52:32.918345000 +0100
|
===================================================================
|
||||||
@@ -268,6 +268,23 @@
|
--- kbd-2.0.4.orig/src/kdfontop.c
|
||||||
|
+++ kbd-2.0.4/src/kdfontop.c
|
||||||
|
@@ -168,6 +168,23 @@ int putfont(int fd, unsigned char *buf,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24,7 +26,7 @@
|
|||||||
/* Second attempt: PIO_FONTX */
|
/* Second attempt: PIO_FONTX */
|
||||||
cfd.charcount = count;
|
cfd.charcount = count;
|
||||||
cfd.charheight = height;
|
cfd.charheight = height;
|
||||||
@@ -302,4 +319,5 @@
|
@@ -190,4 +207,5 @@ int putfont(int fd, unsigned char *buf,
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
diff -up kbd-2.0.1/src/loadkeys.c.orig kbd-2.0.1/src/loadkeys.c
|
Index: kbd-2.0.4/src/loadkeys.c
|
||||||
--- kbd-2.0.1/src/loadkeys.c.orig 2013-11-27 12:56:57.846069007 +0100
|
===================================================================
|
||||||
+++ kbd-2.0.1/src/loadkeys.c 2013-11-27 12:58:03.877302345 +0100
|
--- kbd-2.0.4.orig/src/loadkeys.c
|
||||||
@@ -26,7 +26,7 @@
|
+++ kbd-2.0.4/src/loadkeys.c
|
||||||
|
@@ -27,7 +27,7 @@
|
||||||
#include "keymap.h"
|
#include "keymap.h"
|
||||||
|
|
||||||
static const char *progname = NULL;
|
static const char *progname = NULL;
|
||||||
@ -10,9 +11,10 @@ diff -up kbd-2.0.1/src/loadkeys.c.orig kbd-2.0.1/src/loadkeys.c
|
|||||||
static const char *const suffixes[] = { "", ".kmap", ".map", 0 };
|
static const char *const suffixes[] = { "", ".kmap", ".map", 0 };
|
||||||
|
|
||||||
static void __attribute__((noreturn))
|
static void __attribute__((noreturn))
|
||||||
diff -up kbd-2.0.1/src/paths.h.orig kbd-2.0.1/src/paths.h
|
Index: kbd-2.0.4/src/paths.h
|
||||||
--- kbd-2.0.1/src/paths.h.orig 2013-11-27 12:58:10.662326108 +0100
|
===================================================================
|
||||||
+++ kbd-2.0.1/src/paths.h 2013-11-27 12:58:32.566403015 +0100
|
--- kbd-2.0.4.orig/src/paths.h
|
||||||
|
+++ kbd-2.0.4/src/paths.h
|
||||||
@@ -5,6 +5,8 @@
|
@@ -5,6 +5,8 @@
|
||||||
* The following five subdirectories are defined:
|
* The following five subdirectories are defined:
|
||||||
*/
|
*/
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ee4c4178a6a733009f9068f05f866db3f1bed12dbe908e078e3af82f50ba8bda
|
|
||||||
size 1525278
|
|
3
kbd-2.0.4-repack.tar.xz
Normal file
3
kbd-2.0.4-repack.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:30f7c9c7c9da7cf1afb53cf8cf33f626d2752a74768326b353c9190b67ecee41
|
||||||
|
size 1046268
|
10
kbd.changes
10
kbd.changes
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 22 15:51:51 CEST 2017 - sbrabec@suse.com
|
||||||
|
|
||||||
|
- Version update to 2.0.6:
|
||||||
|
* translation updates
|
||||||
|
* support for U+202F
|
||||||
|
* minor fixes and code cleanup
|
||||||
|
* minor improvements and more characters support
|
||||||
|
- Enable vlock (bsc#1056449, FATE#261).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Apr 30 04:31:25 UTC 2017 - bwiedemann@suse.com
|
Sun Apr 30 04:31:25 UTC 2017 - bwiedemann@suse.com
|
||||||
|
|
||||||
|
10
kbd.spec
10
kbd.spec
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: kbd
|
Name: kbd
|
||||||
Version: 2.0.3
|
Version: 2.0.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Keyboard and Font Utilities
|
Summary: Keyboard and Font Utilities
|
||||||
# git: git://git.altlinux.org/people/legion/packages/kbd.git
|
# git: git://git.altlinux.org/people/legion/packages/kbd.git
|
||||||
@ -25,7 +25,7 @@ License: GPL-2.0+
|
|||||||
Group: System/Console
|
Group: System/Console
|
||||||
Url: ftp://ftp.altlinux.org/pub/people/legion/kbd/
|
Url: ftp://ftp.altlinux.org/pub/people/legion/kbd/
|
||||||
# ftp://ftp.kernel.org/pub/linux/utils/kbd/kbd-%{version}.tar.xz repack_kbd.sh
|
# ftp://ftp.kernel.org/pub/linux/utils/kbd/kbd-%{version}.tar.xz repack_kbd.sh
|
||||||
Source: %{name}-%{version}-repack.tar.bz2
|
Source: %{name}-%{version}-repack.tar.xz
|
||||||
Source1: kbd_fonts.tar.bz2
|
Source1: kbd_fonts.tar.bz2
|
||||||
Source2: suse-add.tar.bz2
|
Source2: suse-add.tar.bz2
|
||||||
Source3: README.SUSE
|
Source3: README.SUSE
|
||||||
@ -71,6 +71,8 @@ Requires: %{name}-legacy = %{version}-%{release}
|
|||||||
Requires(post): coreutils
|
Requires(post): coreutils
|
||||||
Requires(postun): coreutils
|
Requires(postun): coreutils
|
||||||
Requires(pre): %fillup_prereq
|
Requires(pre): %fillup_prereq
|
||||||
|
Provides: vlock = 2.2.3
|
||||||
|
Obsoletes: vlock <= 2.2.3
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -130,8 +132,7 @@ popd
|
|||||||
--datadir=%{kbd} \
|
--datadir=%{kbd} \
|
||||||
--enable-nls \
|
--enable-nls \
|
||||||
--localedir=%{_datadir}/locale \
|
--localedir=%{_datadir}/locale \
|
||||||
--enable-optional-progs \
|
--enable-optional-progs
|
||||||
--disable-vlock
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
gcc %{optflags} -o fbtest $RPM_SOURCE_DIR/fbtest.c
|
gcc %{optflags} -o fbtest $RPM_SOURCE_DIR/fbtest.c
|
||||||
# fix lat2-16.psfu (bnc#340579)
|
# fix lat2-16.psfu (bnc#340579)
|
||||||
@ -439,6 +440,7 @@ sh ./genmap4systemd.sh %{buildroot}/%{kbd}/keymaps/xkb \
|
|||||||
%{_bindir}/setvesablank
|
%{_bindir}/setvesablank
|
||||||
%{_bindir}/spawn_console
|
%{_bindir}/spawn_console
|
||||||
%{_bindir}/spawn_login
|
%{_bindir}/spawn_login
|
||||||
|
%{_bindir}/vlock
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
%{_mandir}/man5/keymaps.5%{ext_man}
|
%{_mandir}/man5/keymaps.5%{ext_man}
|
||||||
%ifnarch %{sparc} m68k
|
%ifnarch %{sparc} m68k
|
||||||
|
@ -21,6 +21,6 @@ fi
|
|||||||
|
|
||||||
echo removing files...
|
echo removing files...
|
||||||
find $tmpdir -iname \*agafari\* | tee /dev/tty | xargs rm
|
find $tmpdir -iname \*agafari\* | tee /dev/tty | xargs rm
|
||||||
tar jcf $name-repack.tar.bz2 -C $tmpdir $name
|
tar Jcf $name-repack.tar.xz -C $tmpdir $name
|
||||||
|
|
||||||
rm -rf $tmpdir
|
rm -rf $tmpdir
|
||||||
|
Loading…
x
Reference in New Issue
Block a user