Name: libtsm Version: 4.3.0 Release: 1%{?dist} Summary: DEC-VT terminal emulator state machine License: MIT AND LGPL-2.1-or-later URL: https://github.com/Aetf/libtsm Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: meson BuildRequires: python3-pip BuildRequires: gcc BuildRequires: pkgconfig BuildRequires: xz BuildRequires: pkgconfig(xkbcommon) BuildRequires: pkgconfig(check) Patch1: 0000-add-nord-color-scheme.patch %description TSM is a state machine for DEC VT100-VT520 compatible terminal emulators. It can be used to implement terminal emulators, or other applications that need to interpret terminal escape sequences. The library does no rendering or window management of its own, and does not depend on a graphics stack, unlike the similar GNOME libvte. %package devel Summary: Development files for the DEC-VT terminal state machine library License: LGPL-2.1-or-later Requires: %{name}%{?_isa} = %{version}-%{release} %description devel TSM is a state machine for DEC VT100-VT520 compatible terminal emulators. It can be used to implement terminal emulators, or other applications that need to interpret terminal escape sequences. The library does no rendering or window management of its own, and does not depend on a graphics stack, unlike the similar GNOME libvte. This package contains the development headers for the library found in %{name}. %prep %autosetup -p1 # 注意:不要在这里运行 pip 或 export PATH,因为它们无法传递到 %build 阶段 %build # 在%build阶段的最开始安装meson pip3 install --user --upgrade --force-reinstall meson # 将pip安装路径加入PATH,确保shell能找到新版meson export PATH="$HOME/.local/bin:$PATH" # 验证版本,为了在日志里确认 meson --version # RHEL 9 的 meson 宏可能硬编码了 /usr/bin/meson。 # 重新定义 __meson 变量,让它去 PATH 里找(即找到我们刚安装的新版) %define __meson meson %meson %meson_build %install # 再次设置 PATH (因为这是新的 shell 进程) export PATH="$HOME/.local/bin:$PATH" # 重新定义meson宏 %define __meson meson # 执行安装 %meson_install %check # %check 也是独立的 shell,如果测试需要新版 meson,这里也要重新 export PATH export PATH="$HOME/.local/bin:$PATH" %meson_test %files %license COPYING LICENSE_htable %{_libdir}/libtsm.so.4{,.*} %files devel %doc README.md %{_includedir}/libtsm.h %{_libdir}/libtsm.so %{_libdir}/pkgconfig/*.pc %changelog * Fri Nov 15 2025 Jocelyn Falempe - 4.3.0 - Update to 4.3.0, and switch to meson * Wed Jul 2 2025 Jocelyn Falempe - 4.1.0 - Update to 4.1.0, and clean the spec file * Fri Dec 13 2024 Jocelyn Falempe - 4.0.2^1.git69922bde-0 - Update to the upstream develop branch, which hasn't seen a release yet. * Sun Jun 09 2024 Michael Bryant - 4.0.2-0 - Update to 4.0.2 * Sun Nov 22 2020 Michael Bryant - 4.0.1-2 - Add personal patch to add nord color scheme support * Sun Jan 19 2020 Michael Bryant - 4.0.1-1 - Switch to Aetf's fork, latest release * Wed Jul 18 2018 Fabian Vogt - Switch to version 4.0.0 from https://github.com/Aetf/libtsm: * Add soft-black and base16-light and -dark color palettes * Support underline/italic rendering (with a patched version of kmscon) * Support 24-bit true color * Support Ctrl + Arrow keys * Support custom title using OSC * Bug fixes: + Repsonse to 'CSI c' contains random bytes + Fix invalid cpr values - Run make check in %%check - Add patch to fix make check: * 0001-Fix-filename-in-test_common.h.patch - Add patch to add palette with default linux console colors: * 0001-Add-new-palette-with-standard-VGA-colors.patch * Wed Jun 17 2015 Fedora Release Engineering - 3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Aug 17 2014 Fedora Release Engineering - 3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Aug 3 2014 Jan Engelhardt - Initial package (version 3) for build.opensuse.org * Sat Jun 07 2014 Fedora Release Engineering - 3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Nov 01 2013 Christopher Meng - 3-1 - Initial Package.