%global commit 135276d73603a984498b0af65c759c9cf1f4044d %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: libtsm Version: 4.4.3^2.git%{shortcommit} Release: %autorelease Summary: DEC-VT terminal emulator state machine License: MIT AND LGPL-2.1-or-later URL: https://github.com/kmscon/libtsm Source: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildRequires: meson BuildRequires: gcc BuildRequires: pkgconfig BuildRequires: xz BuildRequires: pkgconfig(xkbcommon) BuildRequires: pkgconfig(check) %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 -n %{name}-%{commit} -p1 %conf %meson %build %meson_build %install %meson_install %check %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 %autochangelog