SampleSpecs/vimplugin
См. также пп. 3 и 4 из /usr/share/doc/vim-common-*/README.ALT-ru_RU.KOI8-R
%define plugname sample %define plugver 0.1 Name: vim-plugin-%plugname Version: %plugver Release: alt1 Summary: Sample spec for Vim plugin Group: Editors License: distributable Url: %vim_script_url 0 BuildArch: noarch Source: %plugname-%plugver.tar.gz Patch: %name-0.1-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 specfile is provided as sample spec for Vim plugins. It contains most of usual tags and constructions used in such specfiles. %prep %setup -n %plugname-%plugver %patch -p1 %install mkdir -p %buildroot%vim_runtime_dir cp -a {plugin,ftplugin,doc} %buildroot%vim_runtime_dir %post %update_vimhelp %postun %clean_vimhelp %files %vim_doc_dir/* %vim_ftplugin_dir/* %vim_plugin_dir/* %changelog * Sun Sep 25 2005 Andrey Rahmatullin <wrar@altlinux.ru> 0.1-alt1 - initial build