]> git.pld-linux.org Git - packages/vim-plugin-nnn.git/blob - vim-plugin-nnn.spec
new
[packages/vim-plugin-nnn.git] / vim-plugin-nnn.spec
1 %define         plugin  nnn
2 Summary:        Vim plugin: File manager for powered by n³
3 Name:           vim-plugin-%{plugin}
4 Version:        3.6
5 Release:        1
6 License:        Vim
7 Group:          Applications/Editors/Vim
8 Source0:        https://github.com/mcchrish/nnn.vim/archive/v%{version}/nnn.vim-%{version}.tar.gz
9 # Source0-md5:  d517c282ea2158c5c65ee3c138649e7c
10 URL:            https://github.com/mcchrish/nnn.vim
11 Requires:       nnn >= 4.3
12 Requires:       vim-rt
13 BuildArch:      noarch
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         _vimdatadir     %{_datadir}/vim
17
18 %description
19 File manager for vim/neovim powered by n³.
20
21 %package doc
22 Summary:        Documentation for nnn Vim plugin
23 Requires(post,postun):  /usr/bin/vim
24 Requires:       %{name} = %{version}-%{release}
25 Requires:       vim-rt
26
27 %description doc
28 Documentation for nnn Vim plugin.
29
30 %prep
31 %setup -qn nnn.vim-%{version}
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{_vimdatadir}/
36 cp -pr autoload doc ftplugin plugin $RPM_BUILD_ROOT%{_vimdatadir}
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %post doc
42 %vim_doc_helptags
43
44 %postun doc
45 %vim_doc_helptags
46
47 %files
48 %defattr(644,root,root,755)
49 %{_vimdatadir}/autoload/nnn.vim
50 %{_vimdatadir}/ftplugin/nnn.vim
51 %{_vimdatadir}/plugin/nnn.vim
52
53 %files doc
54 %defattr(644,root,root,755)
55 %{_vimdatadir}/doc/nnn.txt
This page took 0.149026 seconds and 3 git commands to generate.