%global appdata_dir %{_datadir}/appdata Name: vim-nerdtree Version: 5.0.0 Release: 2%{?dist} Summary: A tree explorer plugin for the editor Vim Group: Application/Editors License: WTFPL URL: http://www.vim.org/scripts/script.php?script_id=1658 Source0: https://github.com/scrooloose/nerdtree/archive/%{version}/%{name}-%{version}.tar.gz Source1: vim-nerdtree.metainfo.xml Requires: vim-common # TODO: These are needed by %%transfiletrigger provided by vim-commons, # not sure how to get rid of these ATM :/ Requires(post): vim Requires(postun): vim # Needed for AppData check. BuildRequires: libappstream-glib # Defines %%vimfiles_root BuildRequires: vim-filesystem 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 nerdtree-%{version} %build %install mkdir -p %{buildroot}%{vimfiles_root} cp -ar {autoload,doc,lib,nerdtree_plugin,plugin,syntax} %{buildroot}%{vimfiles_root} # Install AppData. mkdir -p %{buildroot}%{appdata_dir} install -m 644 %{SOURCE1} %{buildroot}%{appdata_dir} %check # Check the AppData add-on to comply with guidelines. appstream-util validate-relax --nonet %{buildroot}/%{appdata_dir}/*.metainfo.xml %files %doc CHANGELOG %license LICENCE %doc README.markdown %{vimfiles_root}/autoload/* %doc %{vimfiles_root}/doc/* # This seems to be new convention introduced by NERDTree. %dir %{vimfiles_root}/lib %{vimfiles_root}/lib/nerdtree %{vimfiles_root}/nerdtree_plugin/ %{vimfiles_root}/plugin/* %{vimfiles_root}/syntax/* %{appdata_dir}/vim-nerdtree.metainfo.xml %changelog * Fri Feb 09 2018 Fedora Release Engineering - 5.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Sep 26 2017 Vít Ondruch - 5.0.0-1 - Update to NERDTree 5.0.0. * Thu Jul 27 2017 Fedora Release Engineering - 4.2.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 4.2.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Feb 05 2016 Fedora Release Engineering - 4.2.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jun 19 2015 Fedora Release Engineering - 4.2.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 4.2.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 4.2.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Feb 15 2013 Fedora Release Engineering - 4.2.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Jan 10 2013 Till Maas - 4.2.0-8 - Update summary (#891122) * Fri Aug 03 2012 Bohuslav Kabrda - 4.2.0-7 - Fixed the Deactivating folds patch to apply cleanly. * Sun Jul 22 2012 Fedora Release Engineering - 4.2.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri May 04 2012 Bohuslav Kabrda - 4.2.0-5 - Add the missing Group tag. * Mon Apr 16 2012 Bohuslav Kabrda - 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 - 4.2.0-3 - Added %%preun and %%postun to properly re-generate vim doc tags. * Wed Jan 25 2012 Bohuslav Kabrda - 4.2.0-2 - Fixed issues from the review request (RHBZ #784021). * Tue Jan 24 2012 Bohuslav Kabrda - 4.2.0-1 - Initial package.