File emacs-treepy.spec of Package emacs-treepy
#
# spec file for package emacs-treepy
#
# 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-treepy
Version: 0.1.2
Release: 0
Summary: Generic tree traversing tools for Emacs Lisp
License: GPL-3.0-only
URL: https://github.com/volrath/treepy.el
Source0: %{url}/archive/%{version}.tar.gz
BuildRequires: emacs-nox
BuildArch: noarch
%description
A set of generic functions for traversing tree-like data structures recursively
and/or iteratively, ported from clojure.walk and clojure.zip respectively.
%prep
%autosetup -n treepy.el-%{version}
%build
emacs -L . --batch -f batch-byte-compile *.el
%install
install -d %{buildroot}%{_emacs_sitelispdir}
install -m0644 *.el *.elc %{buildroot}%{_emacs_sitelispdir}
%files
%license LICENSE
%doc README.md
%{_emacs_sitelispdir}/treepy.el
%{_emacs_sitelispdir}/treepy.elc
%changelog