%global commit cb63232b51cff6ae8d9e42aa12e4ba6e76522f6e
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: vim-apprentice
Version: 1.9
Release: 1.20220327git%{shortcommit}%{?dist}
Summary: A dark, low-contrast, Vim colorscheme
License: MIT
URL: https://github.com/romainl/Apprentice
Source0: %{url}/archive/%{commit}.tar.gz
BuildArch: noarch
BuildRequires: vim-filesystem
Requires: vim-filesystem
%description
Apprentice is a dark, low-contrast colorscheme for Vim based on the awesome
Sorcerer by Jeet Sukumaran.
It is essentially a streamlined version of the original, with a reduced number
of colors entirely taken from the default xterm palette to ensure a similar
look in 256colors-ready terminal emulators and GUI Vim.
%prep
%autosetup -n Apprentice-%{commit}
%build
%install
install -Dpm 0644 colors/apprentice.vim %{buildroot}%{vimfiles_root}/colors/apprentice.vim
%files
%{vimfiles_root}/colors/apprentice.vim
%license LICENSE
%doc README.md
%changelog
* Sun Mar 27 2022 Oğuz Ersen <oguz@ersen.moe> - 1.9-1.20220327gitcb63232
- Rebuild for the latest git commit
* Mon May 03 2021 Oğuz Ersen <oguz@ersen.moe> - 0-1.20210503git3491eda
- Initial version of the package