]>
Commit | Line | Data |
---|---|---|
617baa03 JP |
1 | %define plugin airline |
2 | Summary: Vim plugin: Lean & mean status/tabline for vim that's light as air | |
3 | Name: vim-plugin-%{plugin} | |
a3e8ab3d | 4 | Version: 0.11 |
617baa03 JP |
5 | Release: 1 |
6 | License: Vim | |
7 | Group: Applications/Editors/Vim | |
8 | Source0: https://github.com/vim-airline/vim-airline/archive/v%{version}.tar.gz | |
a3e8ab3d | 9 | # Source0-md5: 6d6daf831ed726dc06a22ede69f5cbb1 |
617baa03 JP |
10 | URL: http://www.vim.org/scripts/script.php?script_id=4661 |
11 | Requires: vim-rt >= 4:7.4.0 | |
12 | BuildArch: noarch | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %define _vimdatadir %{_datadir}/vim | |
16 | ||
17 | %description | |
18 | A fast and lightweight statusline for Vim that's easily configurable, | |
19 | extendable, and integrates with powerline font symbols. It | |
20 | automatically integrates with a variety of 3rd party plugins and | |
21 | provides many themes out of the box. | |
22 | ||
23 | %package doc | |
24 | Summary: Documentation for airline Vim plugin | |
25 | Requires(post,postun): /usr/bin/vim | |
26 | Requires: %{name} = %{version}-%{release} | |
27 | Requires: vim-rt >= 4:7.4.2054-2 | |
28 | ||
29 | %description doc | |
30 | Documentation for airline Vim plugin. | |
31 | ||
32 | %prep | |
33 | %setup -qn vim-airline-%{version} | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | install -d $RPM_BUILD_ROOT%{_vimdatadir}/ | |
38 | cp -pr autoload doc plugin $RPM_BUILD_ROOT%{_vimdatadir} | |
39 | ||
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %post doc | |
44 | %vim_doc_helptags | |
45 | ||
46 | %postun doc | |
47 | %vim_doc_helptags | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %doc CHANGELOG.md CONTRIBUTING.md README.md | |
52 | %{_vimdatadir}/autoload/airline.vim | |
53 | %dir %{_vimdatadir}/autoload/airline | |
54 | %{_vimdatadir}/autoload/airline/*.vim | |
55 | %dir %{_vimdatadir}/autoload/airline/extensions | |
56 | %{_vimdatadir}/autoload/airline/extensions/*.vim | |
57 | %dir %{_vimdatadir}/autoload/airline/extensions/tabline | |
58 | %{_vimdatadir}/autoload/airline/extensions/tabline/*.vim | |
59 | %dir %{_vimdatadir}/autoload/airline/extensions/tabline/formatters | |
60 | %{_vimdatadir}/autoload/airline/extensions/tabline/formatters/*.vim | |
61 | %dir %{_vimdatadir}/autoload/airline/extensions/wordcount | |
62 | %dir %{_vimdatadir}/autoload/airline/extensions/wordcount/formatters | |
63 | %{_vimdatadir}/autoload/airline/extensions/wordcount/formatters/*.vim | |
64 | %dir %{_vimdatadir}/autoload/airline/themes | |
65 | %{_vimdatadir}/autoload/airline/themes/*.vim | |
66 | %{_vimdatadir}/plugin/airline.vim | |
67 | ||
68 | %files doc | |
69 | %defattr(644,root,root,755) | |
70 | %{_vimdatadir}/doc/airline.txt |