From 527a5c107e14834382b71eda316f9c91dbf4d949fa41169626d7c9ed4e6e31c0 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 2 Nov 2024 21:46:06 +0000 Subject: [PATCH 1/2] [info=e05d5dea342e2c5e31693df82253fbfea5e228d1ed7c2e566d74958824703fe1] OBS-URL: https://build.opensuse.org/package/show/editors/libt3window?expand=0&rev=15 --- .gitattributes | 23 ++++++++ .gitignore | 1 + _scmsync.obsinfo | 4 ++ build.specials.obscpio | 3 ++ libt3window-0.4.1.tar.bz2 | 3 ++ libt3window-0.4.1.tar.bz2.sig | Bin 0 -> 135 bytes libt3window.changes | 61 +++++++++++++++++++++ libt3window.keyring | 38 +++++++++++++ libt3window.spec | 97 ++++++++++++++++++++++++++++++++++ 9 files changed, 230 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _scmsync.obsinfo create mode 100644 build.specials.obscpio create mode 100644 libt3window-0.4.1.tar.bz2 create mode 100644 libt3window-0.4.1.tar.bz2.sig create mode 100644 libt3window.changes create mode 100644 libt3window.keyring create mode 100644 libt3window.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo new file mode 100644 index 0000000..8f105bf --- /dev/null +++ b/_scmsync.obsinfo @@ -0,0 +1,4 @@ +mtime: 1661778993 +commit: e05d5dea342e2c5e31693df82253fbfea5e228d1ed7c2e566d74958824703fe1 +url: https://src.opensuse.org/jengelh/libt3window +revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio new file mode 100644 index 0000000..c54d3f2 --- /dev/null +++ b/build.specials.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0162ca7ae7fbfc7198dab1ce6d2af00877b90c221cdc0c617101bba6b8a68f22 +size 256 diff --git a/libt3window-0.4.1.tar.bz2 b/libt3window-0.4.1.tar.bz2 new file mode 100644 index 0000000..dd8c343 --- /dev/null +++ b/libt3window-0.4.1.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c14d3f4f946637fd6c3fa23ef7511fa505880946e151406d5e16f645d24e792 +size 96736 diff --git a/libt3window-0.4.1.tar.bz2.sig b/libt3window-0.4.1.tar.bz2.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..23df43515cea0fda81a488c0712108abe2ca1fd59d18817ccdd104daece4009e GIT binary patch literal 135 zcmeBZWnmEHV9*s)WHE?1rqHa`u*9K$?y4xI?_1(6?*+0lC4S9M<(Ek>NOwrjNX*Gj zE!NA+Vc_BvfT`$}WB8{abobeGTO+Y|KW?`uNi*ygYij1S*tFY4{R6j!+PsO4j0{uw l*IhqivPY;xan>3J{?vONZ$55O`0}-Zb;Tn6MT`25000rMHm(2w literal 0 HcmV?d00001 diff --git a/libt3window.changes b/libt3window.changes new file mode 100644 index 0000000..92f9566 --- /dev/null +++ b/libt3window.changes @@ -0,0 +1,61 @@ +------------------------------------------------------------------- +Mon Aug 29 09:49:32 UTC 2022 - Jan Engelhardt + +- Update to release 0.4.1 + * Fix incorrect length computation of buffer in t3_win_clrtoeol + when the current paint position is in the middle of a + double-width character. This could cause segmentation faults. + +------------------------------------------------------------------- +Thu Dec 19 23:54:10 UTC 2019 - Jan Engelhardt + +- Update eto release 0.4.0 + * This release allows explicitly unsetting the binary + attributes when combining attributes using + t3_term_combine_attrs. + +------------------------------------------------------------------- +Mon Jan 7 13:35:16 UTC 2019 - Jan Engelhardt + +- Update to new upstream release 0.3.2 + * Allow compilation in C++ with pre C++11 compilers. + * A new function is provided which determines the width of a + string with explicit length. + * Replacement functions for determining the length are provided + that return a size_t instead of an int. + * Includes a C++ class which wraps a t3_window_t pointer and + forwards all the functions. Otherwise behaves like + std::unique_ptr, to make memory management simpler. + * Prefer to use Unicode line-drawing characters if they are + available. Some terminals explicitly disable the alternate + character set if UTF-8 encoding is enabled, resulting in bad + output. + * Don't use the alternate characterset for line drawing if the + terminal type is ansi, or if the smacs capability is not + defined. + * Internal tables were updated to Unicode 10.0. + * Terminal size detection is done based on cursor position + reporting if no other information is available. + +------------------------------------------------------------------- +Thu Feb 19 18:14:25 UTC 2015 - p.drouand@gmail.com + +- Update to version 0.2.3 + * Re-release of version 0.2.2 to update the configure script. + +------------------------------------------------------------------- +Mon Jul 21 19:10:29 UTC 2014 - jengelh@inai.de + +- Update to new upstream release 0.2.2 +* This release fixes the handling of the nul character. + +------------------------------------------------------------------- +Fri Feb 7 22:08:26 UTC 2014 - dimstar@opensuse.org + +- Declare CC=gcc to ensure we build with gcc; seems make falls back + to 'c99' otherwise (instead of requiring posix_cc). + +------------------------------------------------------------------- +Mon Jun 10 13:04:05 UTC 2013 - jengelh@inai.de + +- Initial package (version 0.2.1) for build.opensuse.org diff --git a/libt3window.keyring b/libt3window.keyring new file mode 100644 index 0000000..757b4fa --- /dev/null +++ b/libt3window.keyring @@ -0,0 +1,38 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQMuBFEIGNsRCACrnPIiiWApLChXo0Q/pJ3/Ngd22fHLHDS4ga4JIvyLU1OZyNrA +XccCRZ7R+DMtzEI9QqmDQeS5WHLJ0ehBQaccw9J8lQ5OfRLd89ZKpKbhTZhdaiGQ +1zrPvT1tsX8aF8Pwqz9CMPSsPny0tCcvfbjumOuhli/qIboHS2BcE6tKyFX4wohv +B9ZVsJtKa2APqJSffquu5pfC37sfu5gD3komOHWsCx1gPPXyE6o+R2p3Y9KfX/tr +1sVfcyhGBdQbNn59vvVfAHp6fidiiGFImOLvg38PBTfMOBXNQwbTOFFWDz3HMGu9 +FaotG8oG76wqQnc+T2uyfdSLzWpfK17cM9BXAQCWxCIc401soHdNCux7RSgTvM+M +m2Vjf3VnqdLKJLbaNwf/cBuxGBjM1QYE4bFpFt7EEqRGfHFBaVE+eAsMK/yE2vgZ +5zWd1IenzU26VgDZFzpu0puZxi9rGi6SsAvkHdLup98PisOBYcv0pWZega76yOcQ +JKlvY2HohhDqqR94I0Y5hn1fO+QN2hq6TTOFYJ3mDGK/R8B+Ezk5VuNh/7Sxs8Dk +yLGvHdh8EuCgjwKIU8FLJ+4AgZjnWEoiau7jRagy/CBEMdai/wVD3LpAqHTyB0tL +DbguGvC7dVTotTyCY65BiLIwhMb7of+IDEkoNYIf/i2Fkk+Zb7jKQYxu7tqe+reb +ov2MwPCwsKDcEsC2b9BkvJT2Zyc+o1ZSmif2TA9TlAf/dqHYhz9HCmSyZd3Vdd0T +QPVQ4fCjkBliTIOO0Oi/0ItMJwALZTaiYGTnxqsIYzWC4kw85IMSEc5/XwcaUm4N +AcXV95IJ2bY+tCSsvvHOGxvWz6tJ+lCs3/vyeVom9372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EWeNrxSWQ7TePVUDSaiyMTrDSBHHnf4cwD0xXLs +AYCRICmgxlSr+JvLYkGIYQQYEQgACQUCUQgY2wIbDAAKCRBaIve0XzneUZbpAP99 +a6+840t31YBBVQKiIPziSufMI6BOsfzp8q6XSBCJIwD/X2szcgVGOrG6DXYp+yLg +gxlPsZP8Ibkb/kclOvRwNzo= +=yATM +-----END PGP PUBLIC KEY BLOCK----- diff --git a/libt3window.spec b/libt3window.spec new file mode 100644 index 0000000..281e22b --- /dev/null +++ b/libt3window.spec @@ -0,0 +1,97 @@ +# +# spec file for package libt3window +# +# Copyright (c) 2022 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/ +# + + +Name: libt3window +%define lname libt3window0 +Version: 0.4.1 +Release: 0 +Summary: The Tilde Toolkit's window-based terminal program library +License: GPL-3.0-only +Group: Development/Libraries/C and C++ +URL: https://os.ghalkes.nl/t3/libt3window.html + +#Git-Clone: https://github.com/gphalkes/t3widget +Source: https://os.ghalkes.nl/dist/%name-%version.tar.bz2 +Source2: https://os.ghalkes.nl/dist/%name-%version.tar.bz2.sig +Source3: %name.keyring +BuildRequires: fdupes +BuildRequires: gettext-tools +BuildRequires: libtool +BuildRequires: libunistring-devel +BuildRequires: ncurses-devel +BuildRequires: pkg-config +BuildRequires: pkgconfig(libtranscript) >= 0.2.2 + +%description +libt3window library provides functions for manipulating the terminal +and for creating (possibly overlapping) windows on a terminal. +libt3window can be used instead of (n)curses for drawing on the +terminal. + +%package -n %lname +Summary: The Tilde Toolkit's window-based terminal program library +Group: System/Libraries + +%description -n %lname +libt3window library provides functions for manipulating the terminal +and for creating (possibly overlapping) windows on a terminal. +libt3window can be used instead of (n)curses for drawing on the +terminal. + +%package devel +Summary: Development files for libt3window, a library for window-based terminal drawing +Group: Development/Libraries/C and C++ +Requires: %lname = %version + +%description devel +libt3window library provides functions for manipulating the terminal +and for creating (possibly overlapping) windows on a terminal. +libt3window can be used instead of (n)curses for drawing on the +terminal. + +This subpackage contains libraries and header files for developing +applications that want to make use of libt3window. + +%prep +%autosetup + +%build +export CC=gcc +./configure --prefix="%_prefix" --libdir="%_libdir" --docdir="%_docdir/%name" +%make_build + +%install +%make_install +rm -f "%buildroot/%_libdir"/*.la +%fdupes %buildroot/%_prefix + +%post -p /sbin/ldconfig -n %lname +%postun -p /sbin/ldconfig -n %lname + +%files -n %lname +%_libdir/libt3window.so.0* +%license COPYING + +%files devel +%_includedir/t3window/ +%_libdir/libt3window.so +%_libdir/pkgconfig/libt3window.pc +%_docdir/%name/ +%exclude %_docdir/%name/COPYING + +%changelog From 53fb205775e99a2a1160e7231bb3376e980e807bb39b897d7a3a65a32217d0ea Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Sat, 2 Nov 2024 21:52:06 +0000 Subject: [PATCH 2/2] [info=1666afb115b755db9f2c113fec65324c6302aeb73101c7d7299a0b285fdb77af] OBS-URL: https://build.opensuse.org/package/show/editors/libt3window?expand=0&rev=16 --- ...uild-fix-configure-failure-in-gcc-14.patch | 37 +++++++++++++++++++ _scmsync.obsinfo | 4 +- build.specials.obscpio | 2 +- libt3window.changes | 5 +++ libt3window.spec | 7 ++-- 5 files changed, 48 insertions(+), 7 deletions(-) create mode 100644 0001-build-fix-configure-failure-in-gcc-14.patch diff --git a/0001-build-fix-configure-failure-in-gcc-14.patch b/0001-build-fix-configure-failure-in-gcc-14.patch new file mode 100644 index 0000000..4e5bbaa --- /dev/null +++ b/0001-build-fix-configure-failure-in-gcc-14.patch @@ -0,0 +1,37 @@ +From 1b808e79311e016f8af3d25ecc64f3de26279f1a Mon Sep 17 00:00:00 2001 +From: Jan Engelhardt +Date: Sat, 2 Nov 2024 22:48:57 +0100 +Subject: [PATCH] build: fix configure failure in gcc-14 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit +References: https://github.com/gphalkes/t3window/pull/2 + +``` +$ ./configure +[ 5s] Checking for curses header file... no +[ 5s] !! Can not find curses/tinfo library. The curses/tinfo library is required to compile libt3key. +$ cat config.log +… +.config.c:8:13: error: implicit declaration of function "setupterm"; +did you mean ‘set_term’? [-Wimplicit-function-declaration] +``` +--- + dist/config.pkg | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/dist/config.pkg b/dist/config.pkg +index be5415e..c397384 100644 +--- a/dist/config.pkg ++++ b/dist/config.pkg +@@ -121,6 +121,7 @@ EOF + #include + #include + #include ++#include + + int main(int argc, char *argv[]) { + int args[9], error, fd; +-- +2.47.0 + diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo index 8f105bf..86cfee4 100644 --- a/_scmsync.obsinfo +++ b/_scmsync.obsinfo @@ -1,4 +1,4 @@ -mtime: 1661778993 -commit: e05d5dea342e2c5e31693df82253fbfea5e228d1ed7c2e566d74958824703fe1 +mtime: 1730584305 +commit: 1666afb115b755db9f2c113fec65324c6302aeb73101c7d7299a0b285fdb77af url: https://src.opensuse.org/jengelh/libt3window revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio index c54d3f2..e1865bb 100644 --- a/build.specials.obscpio +++ b/build.specials.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:0162ca7ae7fbfc7198dab1ce6d2af00877b90c221cdc0c617101bba6b8a68f22 +oid sha256:c458123cff694abc1a65ab5a02a5a8fa171a729e72793a8bdeaae7d716f56bc4 size 256 diff --git a/libt3window.changes b/libt3window.changes index 92f9566..d4610f5 100644 --- a/libt3window.changes +++ b/libt3window.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Nov 2 21:51:13 UTC 2024 - Jan Engelhardt + +- Add 0001-build-fix-configure-failure-in-gcc-14.patch + ------------------------------------------------------------------- Mon Aug 29 09:49:32 UTC 2022 - Jan Engelhardt diff --git a/libt3window.spec b/libt3window.spec index 281e22b..ae16861 100644 --- a/libt3window.spec +++ b/libt3window.spec @@ -1,7 +1,7 @@ # # spec file for package libt3window # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,10 +24,10 @@ Summary: The Tilde Toolkit's window-based terminal program library License: GPL-3.0-only Group: Development/Libraries/C and C++ URL: https://os.ghalkes.nl/t3/libt3window.html - #Git-Clone: https://github.com/gphalkes/t3widget Source: https://os.ghalkes.nl/dist/%name-%version.tar.bz2 Source2: https://os.ghalkes.nl/dist/%name-%version.tar.bz2.sig +Patch1: 0001-build-fix-configure-failure-in-gcc-14.patch Source3: %name.keyring BuildRequires: fdupes BuildRequires: gettext-tools @@ -80,8 +80,7 @@ export CC=gcc rm -f "%buildroot/%_libdir"/*.la %fdupes %buildroot/%_prefix -%post -p /sbin/ldconfig -n %lname -%postun -p /sbin/ldconfig -n %lname +%ldconfig_scriptlets -n %lname %files -n %lname %_libdir/libt3window.so.0*