Package emacs-libvterm: Specfile

Name: emacs-libvterm
Version: 0.0.20251119
Release: alt1

Summary: Libvterm-based terminal emulator for Emacs
License: GPLv3
Group: Terminals
Url: https://github.com/akermu/emacs-libvterm

Source: %name-%version.tar

BuildRequires: /usr/bin/emacs
BuildRequires: cmake libvterm-devel

%description
Fully-fledged terminal emulator inside GNU Emacs based on libvterm.
As a result of using compiled code (instead of elisp), emacs-libvterm is fully
capable, fast, and it can seamlessly handle large outputs.

%define emacsversion %(emacs -q --batch --eval '(princ (format "%s.%s" emacs-major-version emacs-minor-version))')
%define modulepath %_libdir/emacs/%emacsversion/site-lisp

%prep
%setup

%build
%cmake
%cmake_build
emacs -Q --batch -f batch-byte-compile vterm.el
gzip vterm.el

%install
install -pm0644 -D vterm-module.so %buildroot%modulepath/vterm-module.so
install -pm0644 vterm.elc vterm.el.gz %buildroot%modulepath/

%global _customdocdir %_defaultdocdir/%name

%files
%doc README* etc/*
%modulepath/vterm.elc
%modulepath/vterm.el.gz
%modulepath/vterm-module.so

%changelog
* Tue Jan 20 2026 Sergey Bolshakov <sbolshakov@altlinux.org> 0.0.20251119-alt1
- updated from git rev.a01a289

* Thu Feb 20 2025 Sergey Bolshakov <sbolshakov@altlinux.org> 0.0.20250111-alt1
- updated from git rev.056ad74

* Wed Sep 25 2024 Sergey Bolshakov <sbolshakov@altlinux.org> 0.0.20240821-alt1
- updated from git rev.9882793

* Mon Sep 25 2023 Sergey Bolshakov <sbolshakov@altlinux.ru> 0.0.20230210-alt1
- initial