SampleSpecs/vimplugin

Материал из ALT Linux Wiki
Перейти к: навигация, поиск

См. также пп. 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 666
BuildArch: noarch

Source: %plugname-%plugver.tar.gz
Patch: %name-0.1-alt-disable-default.patch

BuildRequires(pre): rpm-build-vim

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

%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