vim-nerdtree/vim-nerdtree.spec

57 lines
1.5 KiB
RPMSpec

%global vimfiles_root %{_datadir}/vim/vimfiles
Name: vim-nerdtree
Version: 4.2.0
Release: 3%{?dist}
Summary: A tree explorer plugin that owns your momma
License: WTFPL
URL: http://www.vim.org/scripts/script.php?script_id=1658
Source0: https://github.com/scrooloose/nerdtree/tarball/%{version}
Requires: vim-common
BuildArch: noarch
%description
The NERD tree allows you to explore your filesystem and to open files and
directories. It presents the filesystem to you in the form of a tree which
you manipulate with the keyboard and/or mouse. It also allows you
to perform simple filesystem operations.
%prep
%setup -q -n scrooloose-nerdtree-205367a
%build
%install
mkdir -p %{buildroot}%{vimfiles_root}
cp -ar {doc,nerdtree_plugin,plugin,syntax} %{buildroot}%{vimfiles_root}
%post
vim -c ":helptags %{vimfiles_root}/doc" -c :q &> /dev/null
%postun
rm %{vimfiles_root}/doc/tags
vim -c ":helptags %{vimfiles_root}/doc" -c :q &> /dev/null
%files
%doc README.markdown
%doc %{vimfiles_root}/doc/*
%{vimfiles_root}/nerdtree_plugin/
%{vimfiles_root}/plugin/*
%{vimfiles_root}/syntax/*
%changelog
* Thu Jan 26 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 4.2.0-3
- Added %%preun and %%postun to properly re-generate vim doc tags.
* Wed Jan 25 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 4.2.0-2
- Fixed issues from the review request (RHBZ #784021).
* Tue Jan 24 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 4.2.0-1
- Initial package.