File emacs-transient.spec of Package emacs-transient

#
# spec file for package emacs-transient
#
# Copyright (c) 2021 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-transient
Version:        0.8.3
Release:        0
Summary:        A library to abstract "transient commands"
License:        GPL-3.0-or-later
URL:            https://github.com/magit/transient
Source0:        %{url}/archive/v%{version}.tar.gz
BuildRequires:  emacs-compat
BuildRequires:  emacs-el
BuildRequires:  emacs-nox
BuildRequires:  emacs-which-key
BuildRequires:  info
BuildRequires:  make
BuildRequires:  makeinfo
Requires:       emacs
BuildArch:      noarch

%description
Taking inspiration from prefix keys and prefix arguments, Transient implements
a similar abstraction involving a prefix command, infix arguments and suffix
commands. We could call this abstraction a "transient command", but because it
always involves at least two commands (a prefix and a suffix) we prefer to call
it just a "transient".

%prep
%autosetup -n transient-%{version}
pushd ..
    ln -sf %{_emacs_sitelispdir} compat
    ln -sf %{_emacs_sitelispdir} which-key
popd
mkdir bin
pushd bin
    (cat > texi2pdf) <<-'EOF'
	#!/bin/sh
        test "$1" = --clean && shift
	texi2any --pdf $@
	EOF
    chmod 755 texi2pdf
popd
%build
PATH=${PWD}/bin:$PATH
%make_build EMACS_ARGS="-L %{_emacs_sitelispdir}"

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

%files
%license LICENSE
%doc README.org
%{_emacs_sitelispdir}/transient*.el
%{_emacs_sitelispdir}/transient*.elc

%changelog
openSUSE Build Service is sponsored by