vim-nerdtree/vim-nerdtree.spec
2012-05-04 10:31:01 +02:00

68 lines
1.9 KiB
RPMSpec

%global vimfiles_root %{_datadir}/vim/vimfiles
Name: vim-nerdtree
Version: 4.2.0
Release: 5%{?dist}
Summary: A tree explorer plugin that owns your momma
Group: Application/Editors
License: WTFPL
URL: http://www.vim.org/scripts/script.php?script_id=1658
Source0: https://github.com/scrooloose/nerdtree/tarball/%{version}
Patch0: %{name}-Deactivating-folds-in-NERDtree-buffer.patch
Requires: vim-common
Requires(post): vim
Requires(postun): vim
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
%patch0 -p1
%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
* Fri May 04 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 4.2.0-5
- Add the missing Group tag.
* Mon Apr 16 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 4.2.0-4
- Applied upstream patch as requested in RHBZ #812360.
- Add post and postun Requires: vim (to generate helptags properly).
* 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.