]> git.pld-linux.org Git - SPECS.git/blob - vim-plugin-cvim.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / vim-plugin-cvim.spec
1 Summary:        C/C++ IDE --  Write and run programs. Insert statements, idioms, comments etc.
2 Name:           vim-plugin-cvim
3 Version:        5.11
4 Release:        0.3
5 License:        vim
6 Group:          Applications/Editors/Vim
7 Source0:        http://carme.pld-linux.org/~uzsolt/sources/%{name}-%{version}.zip
8 # Source0-md5:  bfad20328d13d74941519c609ab60817
9 Source1:        http://lug.fh-swf.de/vim/vim-doc/csupport.html
10 # Source1-md5:  97bbdc566eade34ad6b3ad0f3e87325c
11 Source2:        http://lug.fh-swf.de/vim/vim-c/c-hotkeys.pdf
12 # Source2-md5:  c2f5859dfc567db1262b5f4f6ce3f36f
13 URL:            http://www.vim.org/scripts/script.php?script_id=213
14 BuildRequires:  unzip
15 Requires(post,postun):  /usr/bin/vim
16 Requires:       vim-rt >= 4:7.0
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _vimdatadir     %{_datadir}/vim/vimfiles
21
22 %description
23 C/C++ IDE -- Write and run programs. Insert statements, idioms,
24 comments etc.
25
26 %prep
27 %setup -qc
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT%{_vimdatadir}
32
33 install -d $RPM_BUILD_ROOT%{_vimdatadir}/ftplugin
34 cp -a ftplugin/c.vim $RPM_BUILD_ROOT%{_vimdatadir}/ftplugin
35
36 install -d $RPM_BUILD_ROOT%{_vimdatadir}/plugin
37 cp -a plugin/c.vim $RPM_BUILD_ROOT%{_vimdatadir}/plugin
38
39 install -d $RPM_BUILD_ROOT%{_vimdatadir}/doc
40 cp -a doc/csupport.txt $RPM_BUILD_ROOT%{_vimdatadir}/doc
41
42 install -d $RPM_BUILD_ROOT%{_vimdatadir}/c-support
43 cp -a c-support/{codesnippets,rc,scripts,templates,wordlists} \
44         $RPM_BUILD_ROOT%{_vimdatadir}/c-support
45
46 install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
47 cp -a %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %post
53 echo 'helptags %{_vimdatadir}/doc' | vim -e -s -V0 -R -n --noplugin
54
55 %postun
56 echo 'helptags %{_vimdatadir}/doc' | vim -e -s -V0 -R -n --noplugin
57
58 %files
59 %defattr(644,root,root,755)
60 %doc %{_docdir}/%{name}-%{version}
61 %{_vimdatadir}/ftplugin/*
62 %{_vimdatadir}/plugin/*
63 %{_vimdatadir}/doc/*
64 %{_vimdatadir}/c-support
This page took 0.04229 seconds and 3 git commands to generate.