1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
%define plugname python %define plugtype after-ftplugin %define plugver 1.11 Name: vim-plugin-%plugname-%plugtype Version: %plugver Release: alt1 Summary: VIm plugin for easier editing of python scripts Group: Editors License: Distributable Url: %vim_script_url 30 BuildArch: noarch Source: %plugname.vim Patch: %name-1.7-alt-disable-default.patch PreReq: vim-common >= 4:6.3.007-alt1 BuildPreReq: vim-devel Packager: VIm Plugins Development Team <vim-plugins@packages.altlinux.org> %description This script can be useful when editing Python scripts. It provides the following menus: - Select a block of lines with the same indentation - Select a function - Select a class - Go to previous/next class/function - Go to the beginning/end of a block - Comment the selection - Uncomment the selection - Jump to the last/next line with the same indent - Shift a block (left/right) To enable this plugin define "use_python_after_ftplugin" variable somewhere in your .vimrc file. %prep %setup -cT %__cp %SOURCE0 . %patch -p0 %install %__mkdir_p %buildroot%vim_after_ftplugin_dir %__install -m644 %plugname.vim %buildroot%vim_after_ftplugin_dir %files %vim_after_ftplugin_dir/%plugname.vim %changelog * Wed Dec 13 2006 Andrey Rahmatullin <wrar@altlinux.ru> 1.11-alt1 - 1.11 * Sat Oct 22 2005 Andrey Rahmatullin <wrar@altlinux.ru> 1.7-alt1 - initial build