From 2685d67a8a9dd7eaa483cc27f8c71b6712bec8fa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 21 Aug 2015 13:02:40 +0300 Subject: [PATCH] install to vimfiles dir to override system file :set runtimepath runtimepath=~/.vim,/usr/share/vim/vimfiles,/usr/share/vim,/usr/share/vim/vimfiles/after,~/.vim/after --- vim-plugin-python-pep8-indent.spec | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/vim-plugin-python-pep8-indent.spec b/vim-plugin-python-pep8-indent.spec index 00ee81f..a4d8d50 100644 --- a/vim-plugin-python-pep8-indent.spec +++ b/vim-plugin-python-pep8-indent.spec @@ -9,23 +9,22 @@ Group: Applications/Editors/Vim Source0: https://github.com/hynek/vim-python-pep8-indent/archive/master.tar.gz # Source0-md5: 8b1174311aedccb17807c9cac7c5baee URL: https://github.com/hynek/vim-python-pep8-indent -Requires: vim-rt >= 4:7.2.170 +Requires: vim-rt >= 4:6.3.058-3 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _vimdatadir %{_datadir}/vim +%define _vimdatadir %{_datadir}/vim/vimfiles %description -A nicer Python indentation style for vim. +A nicer Python indentation style for Vim. %prep %setup -q -n vim-%{plugin}-master %install rm -rf $RPM_BUILD_ROOT - install -d $RPM_BUILD_ROOT%{_vimdatadir}/indent -cp -a indent/python.vim $RPM_BUILD_ROOT%{_vimdatadir}/indent +cp -p indent/python.vim $RPM_BUILD_ROOT%{_vimdatadir}/indent %clean rm -rf $RPM_BUILD_ROOT -- 2.44.0