vim-devicons/vim-devicons.spec
2020-05-23 15:18:42 +03:00

76 lines
2.4 KiB
RPMSpec

%global commit d12c9b468ab67e8ea57b1f31cb43c43118b15e34
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global date 20200509
Name: vim-devicons
Version: 0.11.0
Release: 3.%{date}git%{shortcommit}%{?dist}
Summary: Adds file type icons to Vim plugins
License: MIT
URL: https://github.com/ryanoasis/vim-devicons
Source0: %{url}/archive/%{commit}/%{name}-%{version}.%{date}git%{shortcommit}.tar.gz
Source1: %{name}.metainfo.xml
BuildArch: noarch
BuildRequires: libappstream-glib
BuildRequires: vim-filesystem
Requires: vim-enhanced
# Not available in repos
# * https://github.com/ryanoasis/nerd-fonts#font-installation
#Requires: nerd-fonts
%description
Supports plugins such as NERDTree, vim-airline, CtrlP, powerline, denite,
unite, lightline.vim, vim-startify, vimfiler, vim-buffet and flagship.
Features:
- Adds filetype glyphs (icons) to various vim plugins.
- Customizable and extendable glyphs settings.
- Supports a wide range of file type extensions.
- Supports popular full filenames, like .gitignore, node_modules, .vimrc, and
many more.
- Supports byte order marker (BOM).
- Works with patched fonts, especially Nerd Fonts.
%prep
%autosetup -n %{name}-%{commit} -p1
%install
mkdir -p %{buildroot}%{vimfiles_root}
cp -r {autoload,nerdtree_plugin,plugin,pythonx,rplugin} %{buildroot}%{vimfiles_root}
install -m 0644 -Dp %{SOURCE1} %{buildroot}%{_metainfodir}/%{name}.metainfo.xml
%check
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml
%files
%license LICENSE
%doc README.md CHANGELOG.md DEVELOPER.md CONTRIBUTING.md doc/*
%{vimfiles_root}/autoload/*
%{vimfiles_root}/nerdtree_plugin/*
%{vimfiles_root}/plugin/*
%{vimfiles_root}/pythonx/
%{vimfiles_root}/rplugin/
%{_metainfodir}/*.xml
%changelog
* Sat May 23 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 0.11.0-3.20200509gitd12c9b4
- Update to latest git snapshot
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-2.20191110gite3e6aa1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sat Dec 07 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.11.0-1.20191110gite3e6aa1
- Update to latest git snapshot
* Thu Oct 03 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.11.0-1.20190923gitfae1550
- Initial package