File emacs-spacemacs-theme-git.spec of Package emacs-spacemacs-theme-git
Name: emacs-spacemacs-theme-git
Version: 398f732
Release: 1
Summary: Light and dark theme for spacemacs that supports GUI and terminal
License: GPL-3.0-or-later
URL: https://github.com/nashamri/spacemacs-theme
Source0: %{name}-%{version}.tar.xz
BuildArch: noarch
%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-spacemacs-theme
%description
Light and dark theme for spacemacs that supports GUI and terminal
%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 - 398f732-1
- Initial release.