%global sover 4 %global lname libtsm%{sover} Name: libtsm Version: 4.0.1 Release: 1 Summary: DEC-VT terminal emulator state machine License: MIT AND LGPL-2.1-or-later Group: Development/Libraries/C and C++ URL: https://github.com/Aetf/libtsm Source: https://github.com/Aetf/libtsm/archive/v%{version}.tar.gz BuildRequires: cmake BuildRequires: libtool 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. %package -n %{lname} Summary: DEC-VT terminal emulator state machine License: LGPL-2.1-or-later Group: System/Libraries %description -n %{lname} 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 Group: Development/Libraries/C and C++ Requires: %{lname} = %{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 %{lname}. %prep %setup %patch -P 1 -p1 %build %cmake %cmake_build %check %ctest %install %cmake_install %post -n %{lname} -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig %files -n %{lname} %doc README %license COPYING LICENSE_htable %{_libdir}/libtsm.so.%{sover}* %files devel %{_libdir}/cmake/libtsm/ %{_libdir}/cmake/libtsm/libtsm-config-version.cmake %{_libdir}/cmake/libtsm/libtsm-config.cmake %{_libdir}/cmake/libtsm/libtsm-targets-debug.cmake %{_libdir}/cmake/libtsm/libtsm-targets.cmake %{_includedir}/libtsm.h %{_libdir}/libtsm.so %{_libdir}/pkgconfig/*.pc %changelog * 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 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 * 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.