Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37758823
en ru br
ALT Linux repos
S:20040316-alt2.1
5.0: 20040316-alt1.1
4.1: 20040316-alt1.1
4.0: 20040316-alt1.1
3.0: 20040316-alt1.1

Group :: Editors
RPM: vim-plugin-lh_cpp-ftplugin

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define plugname lh_cpp
%define plugtype ftplugin
%define plugver  20040316

Name: vim-plugin-%plugname-%plugtype
Version: %plugver
Release: alt1.1

Summary: Collection of plugins for editing C/C++ files
Summary(ru_RU.CP1251): Коллекция плагинов для редактирования исходников на C/C++

Group: Editors
License: Distributable
Url: %vim_script_url 336
BuildArch: noarch

Source: lh-cpp.tar.gz
Patch: %name-20040316-alt-disable-default.patch

PreReq: vim-common >= 4:6.3.007-alt1
BuildPreReq: vim-devel

Packager: VIm Plugins Development Team <vim-plugins at packages.altlinux.org>

%post
%update_vimhelp

%postun
%clean_vimhelp

%description
This package contains several ftplugins addressed at the edition of C
and C++ files. It also includes folding settings for C/C++.
You should read :help lh-cpp-first-steps if you are using these plugins
for the first time.

To enable these plugins define "use_lh_cpp_ftplugin" variable somewhere
in your .vimrc file. To enable C/C++ folding (very slow) define
"use_lh_cpp_folding".

%description -l ru_RU.CP1251
Этот пакет содержит несколько плагинов для редактирования исходных файлов
на C/C++, а также настройки фолдинга для C/C++ на основе синтаксиса. Перед
1-м использованием этих плагинов прочитайте :help lh-cpp-first-steps.

Чтобы включить эти плагины, определите переменную use_lh_cpp_ftplugin в
своем файле .vimrc. Чтобы включить фолдинг для C/C++ (очень медленный),
определите переменную use_lh_cpp_folding.

%prep
%setup -q -n lh-cpp
%patch -p1
%__subst 's,\r,,' syntax/doxygen.vim

%build
%__rm -f ftplugin/c/doc/tags
%__mv ftplugin/c/doc/lh-cpp-readme.txt doc/
%__mv fold/c-fold.vim ftplugin/c_fold.vim

%install
%__mkdir_p %buildroot%vim_runtime_dir
%__cp -a {after,doc,ftplugin,plugin,syntax} %buildroot%vim_runtime_dir
%__rm -rf %buildroot%vim_runtime_dir/{after/template/lie-dans.sh,ftplugin/c/doc}

%files
%doc changelog-cpp after/template/lie-dans.sh ftplugin/c/doc/c.html
%vim_after_plugin_dir/*
%vim_after_dir/template
%vim_doc_dir/*
%vim_ftplugin_dir/*
%vim_plugin_dir/*
%vim_syntax_dir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin