File emacs-with-editor.spec of Package emacs-with-editor

#
# spec file for package emacs-with-editor
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           emacs-with-editor
Version:        3.4.3
Release:        0
Summary:        Use the Emacsclient as the $EDITOR of child processes
License:        GPL-3.0-or-later
URL:            https://github.com/magit/with-editor
Source0:        %{url}/archive/v%{version}.tar.gz
BuildRequires:  emacs-compat
BuildRequires:  emacs-nox
BuildRequires:  emacs-transient
BuildRequires:  emacs-vterm
BuildRequires:  info
BuildRequires:  make
BuildRequires:  makeinfo
BuildRequires:  texinfo
BuildArch:      noarch

%description
This library makes it possible to reliably use the Emacsclient as the $EDITOR
of child processes. It makes sure that they know how to call home. For remote
processes a substitute is provided, which communicates with Emacs on standard
output/input instead of using a socket as the Emacsclient does.

%prep
%autosetup -n with-editor-%{version}

%build
%make_build EMACS_ARGS="-L %{_emacs_sitelispdir}" all

%install
install -d %{buildroot}%{_emacs_sitelispdir}
install -m0644 lisp/*.el lisp/*.elc %{buildroot}%{_emacs_sitelispdir}

%files
%license LICENSE
%doc CHANGELOG README.org
%{_emacs_sitelispdir}/with-editor*.el
%{_emacs_sitelispdir}/with-editor*.elc

%changelog
openSUSE Build Service is sponsored by