File emacs-cape-git.spec of Package emacs-cape-git

Name:           emacs-cape-git
Version:        97641dc
Release:        1
Summary:        cape.el - Completion At Point Extensions
License:        GPL-3.0
URL:            https://github.com/minad/cape
Source0:        %{name}-%{version}.tar.xz
BuildArch:      noarch

# Add dependency only for Rawhide (Fedora > 42)
%if 0%{?fedora} > 42
BuildRequires: emacs-pgtk
BuildRequires: wget2-wget
%elif 0%{?fedora} == 42
BuildRequires:  emacs
BuildRequires: wget2-wget
%else
BuildRequires:  emacs-nox
%endif

Provides: emacs-cape

%description
cape.el - Completion At Point Extensions

%prep
%autosetup

%build
# Compile the Emacs Lisp files
emacs -q --no-splash -batch -L . -f batch-byte-compile *.el

%install
# Create the directory structure
mkdir -p %{buildroot}/usr/share/emacs/site-lisp/

# Install the byte-compiled el files into the Emacs site-lisp directory
install -m 644 *.el{c,} %{buildroot}/usr/share/emacs/site-lisp/

%files
/usr/share/emacs/site-lisp/*.el
/usr/share/emacs/site-lisp/*.elc

%changelog
* Thu Sep 13 2025 Simon Heise - 97641dc-1
- Initial release.
openSUSE Build Service is sponsored by