This commit is contained in:
commit
09d4df7f25
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
1
baselibs.conf
Normal file
1
baselibs.conf
Normal file
@ -0,0 +1 @@
|
||||
libgnt0
|
3
libgnt-2.14.0.tar.xz
Normal file
3
libgnt-2.14.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6b7ea2030c9755ad9756ab4b1d3396dccaef4a712eccce34d3990042bb4b3abf
|
||||
size 102444
|
16
libgnt-2.14.0.tar.xz.asc
Normal file
16
libgnt-2.14.0.tar.xz.asc
Normal file
@ -0,0 +1,16 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCgAdFiEEQN4dxyiP4/UKuTjFSPZq/9m9tykFAl7gREgACgkQSPZq/9m9
|
||||
tym5sA/7BpjpvZO1orXl5nqsZRPKqZ5vm8oqo8cJftuKcU2HA8/k6FKRxeemvwGx
|
||||
YzBdP2uh7uHUI5sX6TFwEWbyFOR+sasgNrULPW4COPbILosONLvzNQbgTosK9RZC
|
||||
obZgJWVZxd8EqqwYra+2c1ZjphsiRxzjjqNsJMzWQPxKgmFDbH3W39nfDgtP5ret
|
||||
9OK7WcfBH9bor+fmT+PHwijPc8vTrZSRp3rb3G7x59fUzPEIYuaZH97ZqXCs82Gl
|
||||
hVQPVV2l08VrmGG1GwG4ntn41+arhKWDzF4liejyjvYMGiS3spUShSUgIMgNexx7
|
||||
1738pa6NnuWoD96k3yuDUT5ZJEjnuvxn/pFxwmzH/V4hln3R/pwOS1qofhGFEJf8
|
||||
m7V2pfTlI/GJpg5+F0TY58cvAbDbLnh6CPL0Gw5kbyjiRjA3K+9/d0mhcAOLmRBC
|
||||
DD9FaCXxMfsR5KAOTS3vdHCSfp0m4JLhNixotR433ei+VSNq+4Vey72xXADgYz/U
|
||||
mwwjEml4Iw+dMVDyoAYlcDQILxlwlCmU+qQ5cATjcbgOMXI+sq1WVZO3TkhBlGwV
|
||||
w+mfJmLyGnqBsF8Z3wPG5T1+Yvf3IILLKaxpfw6FEsqFwBpAR44r4Z2WYGvWQEKO
|
||||
hPJHnAV8oUwFicbcbQSh9+1RVNWvPhNLmi26zsWQZYemAmLRzvk=
|
||||
=Z4gl
|
||||
-----END PGP SIGNATURE-----
|
56
libgnt-ncurses-6.0-accessors.patch
Normal file
56
libgnt-ncurses-6.0-accessors.patch
Normal file
@ -0,0 +1,56 @@
|
||||
--- a/gntwm.c
|
||||
+++ b/gntwm.c
|
||||
@@ -167,37 +167,37 @@ work_around_for_ncurses_bug(void)
|
||||
cchar_t ch;
|
||||
PANEL *below = panel;
|
||||
|
||||
- sx = getbegx(panel->win);
|
||||
- ex = getmaxx(panel->win) + sx;
|
||||
- sy = getbegy(panel->win);
|
||||
- ey = getmaxy(panel->win) + sy;
|
||||
+ sx = getbegx(panel_window(panel));
|
||||
+ ex = getmaxx(panel_window(panel)) + sx;
|
||||
+ sy = getbegy(panel_window(panel));
|
||||
+ ey = getmaxy(panel_window(panel)) + sy;
|
||||
|
||||
while ((below = panel_below(below)) != NULL) {
|
||||
- if (sy > getbegy(below->win) + getmaxy(below->win) ||
|
||||
- ey < getbegy(below->win))
|
||||
+ if (sy > getbegy(panel_window(below)) + getmaxy(panel_window(below)) ||
|
||||
+ ey < getbegy(panel_window(below)))
|
||||
continue;
|
||||
- if (sx > getbegx(below->win) + getmaxx(below->win) ||
|
||||
- ex < getbegx(below->win))
|
||||
+ if (sx > getbegx(panel_window(below)) + getmaxx(panel_window(below)) ||
|
||||
+ ex < getbegx(panel_window(below)))
|
||||
continue;
|
||||
- for (y = MAX(sy, getbegy(below->win)); y <= MIN(ey, getbegy(below->win) + getmaxy(below->win)); y++) {
|
||||
- if (mvwin_wch(below->win, y - getbegy(below->win), sx - 1 - getbegx(below->win), &ch) != OK)
|
||||
+ for (y = MAX(sy, getbegy(panel_window(below))); y <= MIN(ey, getbegy(panel_window(below)) + getmaxy(panel_window(below))); y++) {
|
||||
+ if (mvwin_wch(panel_window(below), y - getbegy(panel_window(below)), sx - 1 - getbegx(panel_window(below)), &ch) != OK)
|
||||
goto right;
|
||||
w = widestringwidth(ch.chars);
|
||||
if (w > 1 && (ch.attr & 1)) {
|
||||
ch.chars[0] = ' ';
|
||||
ch.attr &= ~ A_CHARTEXT;
|
||||
- mvwadd_wch(below->win, y - getbegy(below->win), sx - 1 - getbegx(below->win), &ch);
|
||||
- touchline(below->win, y - getbegy(below->win), 1);
|
||||
+ mvwadd_wch(panel_window(below), y - getbegy(panel_window(below)), sx - 1 - getbegx(panel_window(below)), &ch);
|
||||
+ touchline(panel_window(below), y - getbegy(panel_window(below)), 1);
|
||||
}
|
||||
right:
|
||||
- if (mvwin_wch(below->win, y - getbegy(below->win), ex + 1 - getbegx(below->win), &ch) != OK)
|
||||
+ if (mvwin_wch(panel_window(below), y - getbegy(panel_window(below)), ex + 1 - getbegx(panel_window(below)), &ch) != OK)
|
||||
continue;
|
||||
w = widestringwidth(ch.chars);
|
||||
if (w > 1 && !(ch.attr & 1)) {
|
||||
ch.chars[0] = ' ';
|
||||
ch.attr &= ~ A_CHARTEXT;
|
||||
- mvwadd_wch(below->win, y - getbegy(below->win), ex + 1 - getbegx(below->win), &ch);
|
||||
- touchline(below->win, y - getbegy(below->win), 1);
|
||||
+ mvwadd_wch(panel_window(below), y - getbegy(panel_window(below)), ex + 1 - getbegx(panel_window(below)), &ch);
|
||||
+ touchline(panel_window(below), y - getbegy(panel_window(below)), 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
Только в b: gntwm.c.orig
|
4
libgnt.changes
Normal file
4
libgnt.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 10 15:19:12 UTC 2020 - Alexei Sorokin <sor.alexei@meowr.ru>
|
||||
|
||||
- Initial package.
|
56
libgnt.keyring
Normal file
56
libgnt.keyring
Normal file
@ -0,0 +1,56 @@
|
||||
pub rsa4096 2019-07-25 [SC]
|
||||
40DE 1DC7 288F E3F5 0AB9 38C5 48F6 6AFF D9BD B729
|
||||
uid [ unknown] Gary Kramlich (grim) <grim@reaperworld.com>
|
||||
sub rsa4096 2019-07-25 [E]
|
||||
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQINBF05DzkBEADFEFM1ZALjngGoeIalaW9aXCA5Gr505LDK8WIVVeQD/Izggx9z
|
||||
Y0wi2UJR97eIXllL8FPZIe8DywJqXKhuafL+E/TI9UqRH/WtmNxZTFW6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libgnt.spec
Normal file
@ -0,0 +1,88 @@
|
||||
#
|
||||
# spec file for package libgnt
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define sover 0
|
||||
Name: libgnt
|
||||
Version: 2.14.0
|
||||
Release: 0
|
||||
Summary: TUI toolkit based on GLib and ncurses
|
||||
License: GPL-2.0-or-later
|
||||
URL: https://pidgin.im/
|
||||
Source: http://downloads.sf.net/%{name}/%{name}-%{version}.tar.xz
|
||||
Source1: http://downloads.sf.net/%{name}/%{name}-%{version}.tar.xz.asc
|
||||
Source2: %{name}.keyring
|
||||
Source3: baselibs.conf
|
||||
# PATCH-FIX-OPENSUSE libgnt-ncurses-6.0-accessors.patch pidgin.im#16764 dimstar@opensuse.org -- Fix build with NCurses 6.0 with WINDOW_OPAQUE set to 1.
|
||||
Patch0: libgnt-ncurses-6.0-accessors.patch
|
||||
BuildRequires: gtk-doc
|
||||
BuildRequires: meson
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: pkgconfig(glib-2.0)
|
||||
BuildRequires: pkgconfig(libxml-2.0)
|
||||
|
||||
%description
|
||||
GNT is an ncurses toolkit for creating text-mode graphical user
|
||||
interfaces in a fast and easy way.
|
||||
|
||||
%package -n %{name}%{sover}
|
||||
Summary: TUI Toolkit based on GLib and ncurses
|
||||
|
||||
%description -n %{name}%{sover}
|
||||
GNT is an ncurses toolkit for creating text-mode graphical user
|
||||
interfaces in a fast and easy way.
|
||||
|
||||
%package -n %{name}-devel
|
||||
Summary: Development files of GNT
|
||||
Requires: %{name}%{sover} = %{version}
|
||||
|
||||
%description -n %{name}-devel
|
||||
GNT is an ncurses toolkit for creating text-mode graphical user
|
||||
interfaces in a fast and easy way.
|
||||
|
||||
The GNT development package includes the header files, libraries,
|
||||
and development tools necessary for compiling and linking
|
||||
applications which will use GNT.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%meson
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
|
||||
%post -n %{name}%{sover} -p /sbin/ldconfig
|
||||
|
||||
%postun -n %{name}%{sover} -p /sbin/ldconfig
|
||||
|
||||
%files -n %{name}%{sover}
|
||||
%license COPYING
|
||||
%doc ChangeLog README.md
|
||||
%{_libdir}/%{name}.so.%{sover}*
|
||||
|
||||
%files -n %{name}-devel
|
||||
%{_datadir}/gtk-doc/*/%{name}/
|
||||
%{_includedir}/gnt/
|
||||
%{_libdir}/%{name}.so
|
||||
%{_libdir}/gnt/
|
||||
%{_libdir}/pkgconfig/gnt.pc
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user