%global pkg cond-let %global pkgname Cond-Let Name: emacs-%{pkg} Version: 0.2.1 Release: %autorelease Summary: Additional and improved binding conditionals License: GPL-3.0-or-later URL: https://github.com/tarsius/cond-let Source0: %{url}/archive/v%{version}/%{pkg}-%{version}.tar.gz BuildArch: noarch BuildRequires: make BuildRequires: emacs-nw Requires: emacs-filesystem%{?_emacs_version: >= %{_emacs_version}} Requires: emacs(bin)%{?_emacs_version: >= %{_emacs_version}} %description Emacs provides the binding conditionals if-let, if-let*, when-let, when-let*, and-let* and while-let. %{pkgname} implements the missing and-let and while-let*, and the original cond-let, cond-let*, and$ and and>. %prep %autosetup -n %{pkg}-%{version} %build %make_build %install # Cond-Let doesn't provide an install target. install -D -p -m 644 -t %{buildroot}/%{_emacs_sitelispdir}/%{pkg} \ %{pkg}.el %{pkg}.elc %check %make_build test %files %license LICENSE %doc README.org %{_emacs_sitelispdir}/%{pkg} %changelog %autochangelog