%global pkg ellama Name: emacs-%{pkg} Version: 1.4.0 Release: %autorelease Summary: Ellama is a tool for interacting with large language models from Emacs License: GPL-3.0-or-later URL: https://github.com/s-kostyaev/%{pkg} Source0: %{url}/archive/refs/tags/%{version}.tar.gz Patch0: 0001-ellama-remove-compat.patch BuildRequires: emacs BuildRequires: emacs-llm Requires: emacs-llm Requires: ollama BuildArch: noarch # Ollama only on x86_64 ExclusiveArch: x86_64 %description Ellama is a tool for interacting with large language models from Emacs. It allows you to ask questions and receive responses from the LLMs. Ellama can perform various tasks such as translation, code review, summarization, enhancing grammar/spelling or wording and more through the Emacs interface. Ellama natively supports streaming output, making it effortless to use with your preferred text editor. %prep %autosetup -p1 -n %{pkg}-%{version} %build %{_emacs_bytecompile} %{pkg}.el %install install -dm 0755 $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{pkg}/ install -pm 0644 %{pkg}.el* -t $RPM_BUILD_ROOT%{_emacs_sitelispdir}/%{pkg}/ %files %doc README.org %{_emacs_sitelispdir}/%{pkg}/ %changelog %autochangelog