File soria-theme.spec of Package soria-theme
# spec file for package soria-theme
#
# Copyright (C) 2020 Miquel Sabaté Solà <mikisabate@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: soria-theme
Version: 0.4.2
Release: 0
Summary: A xoria256 theme with some colors from openSUSE
License: GPL-3.0+
Group: System/GUI/Other
Url: https://github.com/mssola/soria
Source0: %{name}-%{version}.tar.xz
BuildRequires: emacs-nox
BuildRequires: make
%description
Soria is a color theme which mixes xoria256 (a color theme by Dmitry Zotikov,
originally for Vim) and some colors from openSUSE's Brand Guidelines.
%prep
%setup -q
%build
make build
%install
mkdir -p "%{buildroot}%{_datadir}/emacs/site-lisp/themes"
install -D -m0644 %{name}.elc "%{buildroot}%{_datadir}/emacs/site-lisp/themes/"
install -D -m0644 %{name}-tree.el "%{buildroot}%{_datadir}/emacs/site-lisp/themes/"
%post
echo "Make sure that the \"%{_datadir}/emacs/site-lisp/themes\" directory is inside of the \"custom-theme-load-path\" variable."
echo "You can load this theme by running the following code:"
echo ""
echo "(add-to-list 'custom-theme-load-path \"%{_datadir}/emacs/site-lisp/themes\")"
echo "(load-theme 'soria t)"
%files
%defattr(-,root,root)
%dir %{_datadir}/emacs/site-lisp/themes
%{_datadir}/emacs/site-lisp/themes/%{name}.elc
%{_datadir}/emacs/site-lisp/themes/%{name}-tree.el
%doc README.md CHANGELOG.org CONTRIBUTING.org
%license LICENSE
%changelog